Update the how-to-julia container
This commit is contained in:
parent
3f1ddddb23
commit
06901e90a8
2 changed files with 13 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'
|
Loading…
Reference in a new issue