mirror of
https://github.com/phusion/baseimage-docker.git
synced 2026-03-25 20:07:55 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user