Hack for resolv.conf is back, a bit different this time

This commit is contained in:
Aleksandr Didenko 2016-06-30 19:01:01 +02:00
parent f7f560de2e
commit 87856513c6

View file

@ -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