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:
parent
ad7e855cf8
commit
4245926e68
|
@ -3,7 +3,7 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
: ${WORKSPACE:=$(pwd)}
|
: ${WORKSPACE:=$(pwd)}
|
||||||
: ${IMAGE:=quay.io/attcomdev/pegleg:latest}
|
: ${IMAGE:=quay.io/airshipit/pegleg:latest}
|
||||||
|
|
||||||
echo
|
echo
|
||||||
echo "== NOTE: Workspace $WORKSPACE is the execution directory in the container =="
|
echo "== NOTE: Workspace $WORKSPACE is the execution directory in the container =="
|
||||||
|
@ -14,7 +14,7 @@ echo
|
||||||
container_workspace_path='/workspace'
|
container_workspace_path='/workspace'
|
||||||
|
|
||||||
docker run --rm -t \
|
docker run --rm -t \
|
||||||
--net=none \
|
--net=host \
|
||||||
--workdir="$container_workspace_path" \
|
--workdir="$container_workspace_path" \
|
||||||
-v "${WORKSPACE}:$container_workspace_path" \
|
-v "${WORKSPACE}:$container_workspace_path" \
|
||||||
"${IMAGE}" \
|
"${IMAGE}" \
|
||||||
|
|
Loading…
Reference in New Issue