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

Forward the dockerd socket ourself.

Using the forward script. It turns out to be much more reliable (and
faster).
parent 9a02b359
Branches
No related tags found
No related merge requests found
...@@ -12,9 +12,12 @@ _check() { ...@@ -12,9 +12,12 @@ _check() {
} }
_deploy() { _deploy() {
echo "Deploying to $1" >&2 host="$1"
export DOCKER_HOST="ssh://$1" echo "Deploying to $host" >&2
export RUNNER_NAME="$1" localsocket="$HOME/.ssh/docker_$host.sock"
forward "$host" "$localsocket:/var/run/docker.sock"
export DOCKER_HOST="unix://$localsocket"
export RUNNER_NAME="$host"
until _docker_compose up --detach --remove-orphans ; do true; done until _docker_compose up --detach --remove-orphans ; do true; done
# shellcheck disable=SC2034 # shellcheck disable=SC2034
for i in $(seq 12) for i in $(seq 12)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment