1
0
mirror of https://github.com/phusion/baseimage-docker.git synced 2026-03-26 04:18:46 +00:00

Use tools/docker-ssh in make ssh and in test/runner.sh to connect to container via SSH, fix SSH connection by IP issue on Mac-OS

This commit is contained in:
Matyas Markovics
2019-04-08 09:49:13 +02:00
parent 36bd41108f
commit 89597c5bc5
3 changed files with 10 additions and 8 deletions

View File

@@ -33,8 +33,6 @@ docker exec $ID sv start /etc/service/sshd
sleep 1
echo " --> Logging into container and running tests"
cp image/services/sshd/keys/insecure_key /tmp/insecure_key
sleep 1 # Give container some more time to start up.
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
NAME=$NAME VERSION=$VERSION SSH_IDENTITY_FILE=/tmp/insecure_key \
SSH_COMMAND="'/bin/bash -s' < $DIR/test.sh" make ssh
tools/docker-ssh $ID < test/test.sh