mirror of
https://github.com/kubernetes-sigs/kubespray.git
synced 2025-12-14 22:04:43 +03:00
No need to hack resolv.conf in dockerfiles
This commit is contained in:
@@ -52,6 +52,7 @@ build_images() {
|
||||
}
|
||||
|
||||
hack_images() {
|
||||
# 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
|
||||
cp /root/resolv.conf $dir/
|
||||
sed '/MAINTAINER/a COPY resolv.conf /etc/resolv.conf' -i $dir/Dockerfile.j2
|
||||
@@ -61,5 +62,4 @@ hack_images() {
|
||||
create_mcp_conf
|
||||
create_registry
|
||||
create_resolvconf
|
||||
hack_images
|
||||
build_images
|
||||
|
||||
Reference in New Issue
Block a user