aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPau Espin Pedrol <pespin@sysmocom.de>2024-01-17 19:34:29 +0100
committerPau Espin Pedrol <pespin@sysmocom.de>2024-01-22 13:46:17 +0100
commit27a8a92debf03e8880100a9950690c1035b1413c (patch)
tree49cb1d94fd9318fd5855b519ca1757e03f6d304e
parent26d9e95c1111f89ad8d8b0b2b6547fc1e06a34f1 (diff)
ttcn3-epdg: Run osmo-epdg with CAP_NET_ADMIN
This will be needed since soon osmo-epdg will start creating tunnel devices througth gtp_u_kmod, which requires CAP_NET_ADMIN, plus it will need probably need to set up local IP addresses. Change-Id: I48eea0e8d7969cc0a3ad2ed08f696decf064c474
-rwxr-xr-xttcn3-epdg-test/jenkins.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/ttcn3-epdg-test/jenkins.sh b/ttcn3-epdg-test/jenkins.sh
index df445fc..eb596dc 100755
--- a/ttcn3-epdg-test/jenkins.sh
+++ b/ttcn3-epdg-test/jenkins.sh
@@ -22,7 +22,10 @@ network_replace_subnet_in_configs
echo Starting container with osmo-epdg
docker run --rm \
$(docker_network_params $SUBNET 20) \
+ -u root \
--ulimit core=-1 \
+ --cap-add=NET_ADMIN \
+ --device /dev/net/tun:/dev/net/tun \
-v $VOL_BASE_DIR/epdg:/data \
--name ${BUILD_TAG}-epdg -d \
$DOCKER_ARGS \