diff --git a/job_templates/ci_job.xml.em b/job_templates/ci_job.xml.em index 7a94e6d3..29f6d1a8 100644 --- a/job_templates/ci_job.xml.em +++ b/job_templates/ci_job.xml.em @@ -228,7 +228,7 @@ export CONTAINER_NAME=ros2_batch_ci_aarch64 # This prevents cross-talk between builds running in parallel on different executors on a single host. # It may have already been created. docker network create -o com.docker.network.bridge.enable_icc=false isolated_network || true -docker run --rm --net=isolated_network --privileged -e UID=`id -u` -e GID=`id -g` -e CI_ARGS="$CI_ARGS" -e CCACHE_DIR=/home/rosbuild/.ccache -i --workdir=`pwd` -v `pwd`:`pwd` -v $HOME/.ccache:/home/rosbuild/.ccache $CONTAINER_NAME +docker run --rm --net=isolated_network --cap-add NET_ADMIN -e UID=`id -u` -e GID=`id -g` -e CI_ARGS="$CI_ARGS" -e CCACHE_DIR=/home/rosbuild/.ccache -i --workdir=`pwd` -v `pwd`:`pwd` -v $HOME/.ccache:/home/rosbuild/.ccache $CONTAINER_NAME echo "# END SECTION" @[ else]@ echo "# BEGIN SECTION: Run script" diff --git a/job_templates/packaging_job.xml.em b/job_templates/packaging_job.xml.em index 8c2d0e32..511c5c01 100644 --- a/job_templates/packaging_job.xml.em +++ b/job_templates/packaging_job.xml.em @@ -225,7 +225,7 @@ export CONTAINER_NAME=ros2_packaging_rhel # This prevents cross-talk between builds running in parallel on different executors on a single host. # It may have already been created. docker network create -o com.docker.network.bridge.enable_icc=false isolated_network || true -docker run --rm --net=isolated_network --privileged -e BUILD_URL="$BUILD_URL" -e UID=`id -u` -e GID=`id -g` -e CI_ARGS="$CI_ARGS" -e CCACHE_DIR=/home/rosbuild/.ccache -i --workdir=`pwd` -v `pwd`:`pwd` -v $HOME/.ccache:/home/rosbuild/.ccache $CONTAINER_NAME +docker run --rm --net=isolated_network --cap-add NET_ADMIN -e BUILD_URL="$BUILD_URL" -e UID=`id -u` -e GID=`id -g` -e CI_ARGS="$CI_ARGS" -e CCACHE_DIR=/home/rosbuild/.ccache -i --workdir=`pwd` -v `pwd`:`pwd` -v $HOME/.ccache:/home/rosbuild/.ccache $CONTAINER_NAME echo "# END SECTION" @[ else]@ echo "# BEGIN SECTION: Run packaging script"