summaryrefslogtreecommitdiffstats
path: root/run/config.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run/config.sh')
-rw-r--r--run/config.sh8
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"