From 25a14e98abb5427f25af57bbc61277bd992ba600 Mon Sep 17 00:00:00 2001 From: Andrey Meshkov Date: Mon, 29 Jun 2020 20:34:26 +0300 Subject: [PATCH] add dns to docker run --- build_snap.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build_snap.sh b/build_snap.sh index 13dae65f..c324fc5a 100755 --- a/build_snap.sh +++ b/build_snap.sh @@ -122,6 +122,7 @@ build_snap_docker() { prepare docker run ${INTERACTIVE} --rm \ + --dns 8.8.8.8 \ -v $(pwd):/build \ -v $(pwd)/launchpad_credentials:/root/${LAUNCHPAD_CREDENTIALS_DIR}/credentials:ro \ ${BUILDER_IMAGE} \ @@ -182,6 +183,7 @@ publish_snap_docker() { # Login and publish the snap docker run ${INTERACTIVE} --rm \ + --dns 8.8.8.8 \ -v $(pwd):/build \ ${BUILDER_IMAGE} \ sh -c "snapcraft login --with=/build/snapcraft_login && snapcraft push --release=${CHANNEL} /build/${snapFile}"