Fixes for pegleg.sh

Update image reference to quay.io/airshipit vs quay.io/attcomdev.

Set host networking for running pegleg container.
Recent Ubuntu releases are using 127.0.0.53 in /etc/resolv.conf,
and host networking mode is a way to work around local DNS.

Change-Id: Ib3e39e6f83e0bb7a50f92f85b791c8d0b59664d1
This commit is contained in:
Kaspars Skels 2018-08-23 16:36:42 -05:00
parent ad7e855cf8
commit 4245926e68
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
set -e
: ${WORKSPACE:=$(pwd)}
: ${IMAGE:=quay.io/attcomdev/pegleg:latest}
: ${IMAGE:=quay.io/airshipit/pegleg:latest}
echo
echo "== NOTE: Workspace $WORKSPACE is the execution directory in the container =="
@ -14,7 +14,7 @@ echo
container_workspace_path='/workspace'
docker run --rm -t \
--net=none \
--net=host \
--workdir="$container_workspace_path" \
-v "${WORKSPACE}:$container_workspace_path" \
"${IMAGE}" \