summaryrefslogtreecommitdiffstats
path: root/run/devel.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@ipecompute2.ands.kit.edu>2020-11-09 20:16:44 +0100
committerSuren A. Chilingaryan <csa@ipecompute2.ands.kit.edu>2020-11-09 20:16:44 +0100
commit28190b6d4664508ad8b1cf88a82378b02f487cfa (patch)
tree8bb6f21b9feb1013f67a4c1a147c95c4ff976fc4 /run/devel.sh
parent8fb3c0a3f96024786305a1234fe5cfb70e6f00c0 (diff)
downloadccpi-28190b6d4664508ad8b1cf88a82378b02f487cfa.tar.gz
ccpi-28190b6d4664508ad8b1cf88a82378b02f487cfa.tar.bz2
ccpi-28190b6d4664508ad8b1cf88a82378b02f487cfa.tar.xz
ccpi-28190b6d4664508ad8b1cf88a82378b02f487cfa.zip
Support ssh server for remote debugging
Diffstat (limited to 'run/devel.sh')
-rw-r--r--run/devel.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/run/devel.sh b/run/devel.sh
index 57ec7f0..ad8fa15 100644
--- a/run/devel.sh
+++ b/run/devel.sh
@@ -6,4 +6,6 @@ if [ ! -d ../repos ]; then
buildah unshare bash ../build/extract.sh
fi
-podman run --name "ccpi-devel" -it --rm --hooks-dir /usr/share/containers/oci/hooks.d/ -v ~/ccpi/data:/ccpi/data -v ~/ccpi/repos:/ccpi/repos localhost/ccpi bash -c "bash /root/setup/provision.sh; bash"
+port="$(($(id -u) - 900))22"
+
+podman run --name "ccpi-devel" -it --rm --hooks-dir /usr/share/containers/oci/hooks.d/ -p $port:2222/tcp -v ~/ccpi/data:/ccpi/data -v ~/ccpi/repos:/ccpi/repos localhost/ccpi bash -c "bash /root/setup/provision.sh; bash"