summaryrefslogtreecommitdiffstats
path: root/run
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@ipecompute2.ands.kit.edu>2020-11-11 06:30:49 +0100
committerSuren A. Chilingaryan <csa@ipecompute2.ands.kit.edu>2020-11-11 06:30:49 +0100
commit4db96282d126e10c691474264fcdbeca2398555e (patch)
tree0c5e6991e532e4716db7372ab9e63adbc5a3284d /run
parentb363c63d44eef05a06f8f7ff7c471ac4392cc4e9 (diff)
downloadccpi-4db96282d126e10c691474264fcdbeca2398555e.tar.gz
ccpi-4db96282d126e10c691474264fcdbeca2398555e.tar.bz2
ccpi-4db96282d126e10c691474264fcdbeca2398555e.tar.xz
ccpi-4db96282d126e10c691474264fcdbeca2398555e.zip
Add supervisord to run ssh and jupyter in parallel
Diffstat (limited to 'run')
-rw-r--r--run/run-bash.sh7
-rw-r--r--run/run.sh2
2 files changed, 8 insertions, 1 deletions
diff --git a/run/run-bash.sh b/run/run-bash.sh
new file mode 100644
index 0000000..bdfade3
--- /dev/null
+++ b/run/run-bash.sh
@@ -0,0 +1,7 @@
+#! /bin/bash
+
+set -o errexit
+
+. config.sh
+
+podman run --name "ccpi-run" -it --rm --hooks-dir /usr/share/containers/oci/hooks.d/ -p ${web_port}:8888/tcp -p $ssh_port:2222/tcp -v ~/ccpi/data:/ccpi/data localhost/${image} bash
diff --git a/run/run.sh b/run/run.sh
index bdfade3..55b5b21 100644
--- a/run/run.sh
+++ b/run/run.sh
@@ -4,4 +4,4 @@ set -o errexit
. config.sh
-podman run --name "ccpi-run" -it --rm --hooks-dir /usr/share/containers/oci/hooks.d/ -p ${web_port}:8888/tcp -p $ssh_port:2222/tcp -v ~/ccpi/data:/ccpi/data localhost/${image} bash
+podman run --name "ccpi-run" -it --rm --hooks-dir /usr/share/containers/oci/hooks.d/ -p ${web_port}:8888/tcp -p $ssh_port:2222/tcp -v ~/ccpi/data:/ccpi/data localhost/${image} sh -c '[ -f /usr/bin/supervisord ] && python2 /usr/bin/supervisord; /bin/bash'