From 28190b6d4664508ad8b1cf88a82378b02f487cfa Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Mon, 9 Nov 2020 20:16:44 +0100 Subject: Support ssh server for remote debugging --- run/run.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'run/run.sh') diff --git a/run/run.sh b/run/run.sh index 5ebb075..0010e1d 100644 --- a/run/run.sh +++ b/run/run.sh @@ -2,4 +2,5 @@ set -o errexit -podman run --name "ccpi-run" -it --rm --hooks-dir /usr/share/containers/oci/hooks.d/ -v ~/ccpi/data:/ccpi/data localhost/ccpi bash +port="$(($(id -u) - 900))22" +podman run --name "ccpi-run" -it --rm --hooks-dir /usr/share/containers/oci/hooks.d/ -p $port:2222/tcp -v ~/ccpi/data:/ccpi/data localhost/ccpi bash -- cgit v1.2.3