ci: force IPv4 DNS in dind
This commit is contained in:
parent
8ac65a9ab0
commit
ef02f91c93
15
Jenkinsfile
vendored
15
Jenkinsfile
vendored
@ -21,9 +21,20 @@ spec:
|
||||
env:
|
||||
- name: DOCKER_TLS_CERTDIR
|
||||
value: ""
|
||||
command:
|
||||
- /bin/sh
|
||||
- -c
|
||||
args:
|
||||
- --mtu=1400
|
||||
- --dns=10.43.0.10
|
||||
- |
|
||||
set -euo pipefail
|
||||
apk add --no-cache dnsmasq
|
||||
cat > /etc/dnsmasq.conf <<'EOF'
|
||||
filter-aaaa
|
||||
server=10.43.0.10
|
||||
EOF
|
||||
dnsmasq
|
||||
echo "nameserver 127.0.0.1" > /etc/resolv.conf
|
||||
exec dockerd-entrypoint.sh --mtu=1400
|
||||
volumeMounts:
|
||||
- name: dind-storage
|
||||
mountPath: /var/lib/docker
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user