summaryrefslogtreecommitdiffstats
path: root/run/config.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@ipecompute4.ands.kit.edu>2022-09-07 03:04:26 +0200
committerSuren A. Chilingaryan <csa@ipecompute4.ands.kit.edu>2022-09-07 03:04:26 +0200
commitdeb9c6115a0b60d0be7ee5306be4a1c794ea6399 (patch)
tree91f57d18e600eee23de65ec95db794ee818a0057 /run/config.sh
parentefa4313aa57e4c3511eb1d5d88edc37e99f899fa (diff)
downloadccpi-deb9c6115a0b60d0be7ee5306be4a1c794ea6399.tar.gz
ccpi-deb9c6115a0b60d0be7ee5306be4a1c794ea6399.tar.bz2
ccpi-deb9c6115a0b60d0be7ee5306be4a1c794ea6399.tar.xz
ccpi-deb9c6115a0b60d0be7ee5306be4a1c794ea6399.zip
Enable gdb (ptrace) in the containers
Diffstat (limited to 'run/config.sh')
-rw-r--r--run/config.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/run/config.sh b/run/config.sh
index 299219c..bc1d6c5 100644
--- a/run/config.sh
+++ b/run/config.sh
@@ -6,9 +6,10 @@ web_port="${port}80"
image="$1"
-[ -n "$image" ] || image="localhost/tomo-remote:latest" # tomo-remote:latest tomo-remote:devel tomo-remote:evelina (also ccpi, ufo, tomo)
+tag="latest"
+[ -n "$image" ] || image="localhost/tomo-remote:$tag" # tomo-remote:latest tomo-remote:devel tomo-remote:evelina (also ccpi, ufo, tomo)
-options="--cap-add SYS_ADMIN --hooks-dir /usr/share/containers/oci/hooks.d"
+options="--cap-add SYS_ADMIN --cap-add=SYS_PTRACE --hooks-dir /usr/share/containers/oci/hooks.d"
volumes="-v $home/ccpi/build/setup:/root/setup -v $home/ccpi/data:/ccpi/data -v $home/ccpi/repos:/ccpi/repos -v /mnt/fast:/mnt/fast"
[ -d /mnt/fast/$user ] && volumes="$volumes -v /mnt/fast/$user:/ccpi/data/fast"