Skip to content

Commit cce5dfe

Browse files
committed
Jenkinsfile: modprobe br_netfilter
Make sure the module is loaded, as we're not able to load it from within the dev-container; time="2024-11-29T20:40:42Z" level=error msg="Running modprobe br_netfilter failed with message: modprobe: WARNING: Module br_netfilter not found in directory /lib/modules/5.15.0-1072-aws\n" error="exit status 1" Also moving these steps _before_ the "print info" step, so that docker info doesn't show warnings that bridge-nf-call-iptables and bridge-nf-call-ip6tables are not loaded. Signed-off-by: Sebastiaan van Stijn <[email protected]>
1 parent 24fd633 commit cce5dfe

1 file changed

Lines changed: 9 additions & 3 deletions

File tree

Jenkinsfile

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,15 @@ pipeline {
6060
}
6161

6262
stages {
63+
stage("Load kernel modules") {
64+
steps {
65+
sh '''
66+
sudo modprobe ip6table_filter
67+
sudo modprobe -va br_netfilter
68+
sudo systemctl restart docker.service
69+
'''
70+
}
71+
}
6372
stage("Print info") {
6473
steps {
6574
sh 'docker version'
@@ -78,9 +87,6 @@ pipeline {
7887
}
7988
stage("Unit tests") {
8089
steps {
81-
sh '''
82-
sudo modprobe ip6table_filter
83-
'''
8490
sh '''
8591
docker run --rm -t --privileged \
8692
-v "$WORKSPACE/bundles:/go/src/github.com/docker/docker/bundles" \

0 commit comments

Comments
 (0)