diff --git a/containers/how-2-julia/how-2-julia.container b/containers/how-2-julia/how-2-julia.container index b117d45..cbbe5f4 100644 --- a/containers/how-2-julia/how-2-julia.container +++ b/containers/how-2-julia/how-2-julia.container @@ -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 diff --git a/containers/how-2-julia/how-2-julia.fish b/containers/how-2-julia/how-2-julia.fish new file mode 100755 index 0000000..b107b70 --- /dev/null +++ b/containers/how-2-julia/how-2-julia.fish @@ -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'