diff options
Diffstat (limited to 'run/config.sh')
-rw-r--r-- | run/config.sh | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/run/config.sh b/run/config.sh index 048ecfb..d2b01dd 100644 --- a/run/config.sh +++ b/run/config.sh @@ -1,8 +1,19 @@ +user="$(id -un)" +home="/home/$user" port="$(($(id -u)%100 + 100))" ssh_port="${port}22" web_port="${port}80" + image="$1" -[ -n "$image" ] || image="tomo-remote" # tomo-remote:latest tomo-remote:devel (also ccpi, ufo, tomo) +#tag="latest" +tag="22.04" + +[ -n "$image" ] || image="localhost/tomo-remote:$tag" # tomo-remote:latest tomo-remote:devel tomo-remote:evelina (also ccpi, ufo, tomo) + +options="--cap-add SYS_ADMIN --cap-add=SYS_PTRACE --hooks-dir /usr/share/containers/oci/hooks.d" + +volumes="-v $home/ccpi/build/setup:/root/setup -v $home/ccpi/data:/ccpi/data -v $home/ccpi/repos:/ccpi/repos -v /mnt/fast:/mnt/fast" +[ -d /mnt/fast/$user ] && volumes="$volumes -v /mnt/fast/$user:/ccpi/data/fast" echo "Image: $image, Ports: $ssh_port, $web_port" |