From c9eb5a28c5bc4a3bd61e9f7025b7f55d3eda52e4 Mon Sep 17 00:00:00 2001 From: Roman Date: Mon, 2 Nov 2020 11:55:20 +0300 Subject: [PATCH] Update docker-entrypoint.sh Co-authored-by: Al-Waleed Shihadeh --- docker-entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index fa41346..a9fdcbd 100755 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -9,6 +9,10 @@ execute_ssh(){ -o StrictHostKeyChecking=no "$INPUT_REMOTE_DOCKER_HOST" "$@" } +if [ -z "$INPUT_REMOTE_DOCKER_PORT" ]; then + INPUT_REMOTE_DOCKER_PORT=22 +fi + if [ -z "$INPUT_REMOTE_DOCKER_HOST" ]; then echo "Input remote_docker_host is required!" exit 1