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
Loading
Loading
Loading
Loading
+6 −3
Original line number Diff line number Diff line
@@ -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)