blob: f3bdecb606d5e6fc3afe924d33605542ae991a29 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
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)
volumes="-v $home/ccpi/data:/ccpi/data -v $home/ccpi/repos:/ccpi/repos"
[ -d /mnt/fast/$user ] && volumes="$volumes -v /mnt/fast/$user:/ccpi/data/fast"
echo "Image: $image, Ports: $ssh_port, $web_port"
|