Set DOCKER_ARGS variable in codespace

This commit is contained in:
Ethan Dennis
2022-09-19 12:56:04 -07:00
parent d019e23f3f
commit f848c682f3
3 changed files with 3 additions and 8 deletions
+3
View File
@@ -13,6 +13,9 @@
"--privileged",
"--init"
],
"remoteEnv": {
"DOCKER_ARGS": "--network=host"
},
// Add the IDs of extensions you want installed when the container is created.
"extensions": [
"ms-azuretools.vscode-docker"
-4
View File
@@ -33,10 +33,6 @@ else
docker exec -it gitlab update-permissions &> /dev/null
fi
# allow valet to talk to GitLab by removing network isolation between containers
export DOCKER_ARGS="--network=host"
`grep -q "export DOCKER_ARGS=" ~/.bashrc || echo 'export DOCKER_ARGS="--network=host"' >> ~/.bashrc`
echo -e "Waiting for GitLab to be ready. This might take a while \U23F0"
until $(curl --output /dev/null --silent --head --fail http://localhost); do
printf '.'
-4
View File
@@ -18,10 +18,6 @@ else
docker run -d --name jenkins -p 8080:8080 --env JENKINS_ADMIN_ID=$username --env JENKINS_ADMIN_PASSWORD=$password jenkins:$container_name
fi
# allow valet to talk to Jenkins by removing network isolation between containers
export DOCKER_ARGS="--network=host"
grep -q "export DOCKER_ARGS=" ~/.bashrc || echo 'export DOCKER_ARGS="--network=host"' >> ~/.bashrc
echo -e "\nWaiting for Jenkins to start..."
while ! curl -s http://localhost:8080/ > /dev/null; do
printf "."