summaryrefslogtreecommitdiffstats
path: root/run/config.sh
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2022-09-01 01:34:15 +0200
committerSuren A. Chilingaryan <csa@suren.me>2022-09-01 01:34:15 +0200
commit4616a04086c1f9248008add524a9cf74ffecca33 (patch)
treed977ff2cd316e797579c2280ad836ef4887a8544 /run/config.sh
parent0ae9593171f8315c7e4d22e0d3abd48c3fe6d968 (diff)
downloadccpi-4616a04086c1f9248008add524a9cf74ffecca33.tar.gz
ccpi-4616a04086c1f9248008add524a9cf74ffecca33.tar.bz2
ccpi-4616a04086c1f9248008add524a9cf74ffecca33.tar.xz
ccpi-4616a04086c1f9248008add524a9cf74ffecca33.zip
CAP_ADD SYS_ADMIN to enable use of perf, etc.
Diffstat (limited to 'run/config.sh')
-rw-r--r--run/config.sh2
1 files changed, 2 insertions, 0 deletions
diff --git a/run/config.sh b/run/config.sh
index 9685daf..299219c 100644
--- a/run/config.sh
+++ b/run/config.sh
@@ -8,6 +8,8 @@ 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)
+options="--cap-add SYS_ADMIN --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"