Pass environment variables to remote invocations
This commit is contained in:
1 parent
0c8d9e8c03
commit
019eeab896
1 file changed
+5
-3
@@ -53,7 +53,11 @@ TOOLS_IMAGE=$BASE_TOOLS_IMAGE:$IMAGE_VERSION
|
||||
exec_remote() {
|
||||
docker run -t --rm \
|
||||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v /proc:/hostproc \
|
||||
-v "$PROCFS":/hostproc \
|
||||
-e VERSION="$VERSION" \
|
||||
-e WEAVE_DOCKER_ARGS="$WEAVE_DOCKER_ARGS" \
|
||||
-e WEAVE_PASSWORD="$WEAVE_PASSWORD" \
|
||||
-e DOCKER_BRIDGE="$DOCKER_BRIDGE" \
|
||||
-e PROCFS=/hostproc --privileged --net=host \
|
||||
$BASE_TOOLS_IMAGE --local "$@"
|
||||
}
|
||||
@@ -78,8 +82,6 @@ MTU=65535
|
||||
PORT=6783
|
||||
HTTP_PORT=6784
|
||||
DNS_HTTP_PORT=6785
|
||||
DOCKER_BRIDGE=${DOCKER_BRIDGE:-docker0}
|
||||
PROCFS=${PROCFS:-/proc}
|
||||
|
||||
COMMAND=$1
|
||||
|
||||
|
||||
Reference in new issue
Block a user