diff options
author | Suren A. Chilingaryan <csa@ipecompute2.ands.kit.edu> | 2020-11-11 05:29:12 +0100 |
---|---|---|
committer | Suren A. Chilingaryan <csa@ipecompute2.ands.kit.edu> | 2020-11-11 05:29:12 +0100 |
commit | b363c63d44eef05a06f8f7ff7c471ac4392cc4e9 (patch) | |
tree | bc95b45f56aed16e3ed005e01a762dad29fad205 /run/config.sh | |
parent | 28190b6d4664508ad8b1cf88a82378b02f487cfa (diff) | |
download | ccpi-b363c63d44eef05a06f8f7ff7c471ac4392cc4e9.tar.gz ccpi-b363c63d44eef05a06f8f7ff7c471ac4392cc4e9.tar.bz2 ccpi-b363c63d44eef05a06f8f7ff7c471ac4392cc4e9.tar.xz ccpi-b363c63d44eef05a06f8f7ff7c471ac4392cc4e9.zip |
Support for ufo & jupyter notebooks
Diffstat (limited to 'run/config.sh')
-rw-r--r-- | run/config.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/run/config.sh b/run/config.sh new file mode 100644 index 0000000..048ecfb --- /dev/null +++ b/run/config.sh @@ -0,0 +1,8 @@ +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) + +echo "Image: $image, Ports: $ssh_port, $web_port" |