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
No related branches found
No related tags found
No related merge requests found
......@@ -12,9 +12,12 @@ _check() {
}
_deploy() {
echo "Deploying to $1" >&2
export DOCKER_HOST="ssh://$1"
export RUNNER_NAME="$1"
host="$1"
echo "Deploying to $host" >&2
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
# shellcheck disable=SC2034
for i in $(seq 12)
......
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