Skip to content
Snippets Groups Projects
Commit 5f46fedb authored by nimrod's avatar nimrod
Browse files

Bind mount /builds.

The issue I'm trying to address here is that because of the Docker
volume, /builds/foo is really /var/lib/docker/volumes/123/_data/foo.
This causes some interesting issues with addressing files with Docker
from inside a Docker container. Do it just on ns4 (for now, if it works
and needed I may do it on host01 too). Also, deploy to the kodi host
last because it has issues right now.
parent 024c47e5
No related branches found
No related tags found
No related merge requests found
Pipeline #307 passed
......@@ -5,7 +5,7 @@ deploy() {
echo "Deploying to $1" >&2
export DOCKER_HOST="ssh://$1"
export RUNNER_NAME="$1"
until docker-compose up --detach --remove-orphans 2>/dev/null; do true; done
until docker-compose up --detach --remove-orphans ; do true; done
# shellcheck disable=SC2034
for i in $(seq 12)
do
......@@ -25,8 +25,10 @@ then
exit 1
fi
export REGISTER_RUN_UNTAGGED="true"
export BUILDS='/builds'
deploy "ns4.shore.co.il"
export REGISTER_RUN_UNTAGGED="false"
unset BUILDS
deploy "host01.shore.co.il"
deploy "kodi.shore.co.il"
export REGISTER_RUN_UNTAGGED="true"
deploy "ns4.shore.co.il"
......@@ -14,7 +14,7 @@ services:
image: adarnimrod/gitlab-runner
restart: always
volumes:
- builds:/builds
- "${BUILDS:-builds}:/builds"
- config:/etc/gitlab-runner
- /var/run/docker.sock:/var/run/docker.sock
crond:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment