diff options
Diffstat (limited to 'run')
-rw-r--r-- | run/run-bash.sh | 7 | ||||
-rw-r--r-- | run/run.sh | 2 |
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 @@ -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' |