mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2026-03-05 18:51:13 -03:30
Hack for resolv.conf is back, a bit different this time
This commit is contained in:
@@ -55,11 +55,12 @@ hack_images() {
|
|||||||
# useless, but let's keep it just in case we need to hack something else
|
# useless, but let's keep it just in case we need to hack something else
|
||||||
for dir in ~/microservices-repos/ms-{nova,neutron}*/docker/* ; do
|
for dir in ~/microservices-repos/ms-{nova,neutron}*/docker/* ; do
|
||||||
cp /root/resolv.conf $dir/
|
cp /root/resolv.conf $dir/
|
||||||
sed '/MAINTAINER/a COPY resolv.conf /etc/resolv.conf' -i $dir/Dockerfile.j2
|
sed '/MAINTAINER/a COPY resolv.conf /var/tmp/resolv.conf' -i $dir/Dockerfile.j2
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
create_mcp_conf
|
create_mcp_conf
|
||||||
create_registry
|
create_registry
|
||||||
create_resolvconf
|
create_resolvconf
|
||||||
|
hack_images
|
||||||
build_images
|
build_images
|
||||||
|
|||||||
Reference in New Issue
Block a user