Compare commits

...

3 commits

Author SHA1 Message Date
bfd552d5d1 Fix rebooting 2024-05-15 03:03:32 +02:00
06901e90a8 Update the how-to-julia container 2024-05-15 03:03:18 +02:00
3f1ddddb23 Add an update script 2024-05-04 02:00:33 +02:00
3 changed files with 22 additions and 1 deletions

View file

@ -3,7 +3,7 @@ Image=docker.io/library/nginx:1
AutoUpdate=registry
Network=traefik.network
Volume=%h/sync/volumes/nginx.conf:/etc/nginx/nginx.conf:z,ro
Volume=%h/code/how_2_julia:/usr/share/nginx/html:Z,ro
Volume=%h/volumes/how-2-julia:/usr/share/nginx/html:Z,ro
[Service]
Restart=always

View file

@ -0,0 +1,12 @@
#!/usr/bin/env fish
mkdir -p ~/volumes/how-to-julia
podman run --rm --pull newer -v ~/volumes/how-to-julia:/volumes/export:Z docker.io/library/julia:1 bash -c 'apt update
apt install git -y
git clone --depth 1 https://codeberg.org/mo8it/how-2-julia.git
cd how-2-julia
julia --project -e "import Pkg; Pkg.instantiate()"
julia --project export.jl
rm -rf /volumes/export/*
mv export/* /volumes/export'

9
scripts/update.fish Executable file
View file

@ -0,0 +1,9 @@
rustup update; or return 1
cargo install-update -a; or return 1
sudo dnf upgrade -y; or return 1
sudo dnf autoremove; or return 1
podman auto-update; or return 1
sudo dnf needs-restarting -r; or sudo systemctl reboot