Compare commits
3 commits
67b0c4a5ad
...
bfd552d5d1
Author | SHA1 | Date | |
---|---|---|---|
bfd552d5d1 | |||
06901e90a8 | |||
3f1ddddb23 |
3 changed files with 22 additions and 1 deletions
|
@ -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
|
||||
|
|
12
containers/how-2-julia/how-2-julia.fish
Executable file
12
containers/how-2-julia/how-2-julia.fish
Executable 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
9
scripts/update.fish
Executable 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
|
Loading…
Reference in a new issue