From c31b35f4ac4cb681eb01228f149e32b447d7cc59 Mon Sep 17 00:00:00 2001 From: "Jian Zhang (James)" <6593865@qq.com> Date: Mon, 22 May 2023 12:59:52 -0700 Subject: [PATCH] [Fix] revert --ssh-port to SSH_PORT (#187) *Issue #, if available:* *Description of changes:* fix the error of --ssh-port in Dockerfile.local. By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. --------- Co-authored-by: Ubuntu Co-authored-by: xiang song(charlie.song) --- docker/Dockerfile.local | 4 ++-- docker/build_docker_oss4local.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docker/Dockerfile.local b/docker/Dockerfile.local index 26bca56c74..a6078d4835 100644 --- a/docker/Dockerfile.local +++ b/docker/Dockerfile.local @@ -39,9 +39,9 @@ COPY code/training_scripts /graphstorm/training_scripts # Set up SSH RUN apt-get install -y openssh-client openssh-server -ENV --ssh-port=2222 +ENV SSH_PORT=2222 RUN cat /etc/ssh/sshd_config > /tmp/sshd_config && \ - sed "0,/^#Port 22/s//Port ${--ssh-port}/" /tmp/sshd_config > /etc/ssh/sshd_config + sed "0,/^#Port 22/s//Port ${SSH_PORT}/" /tmp/sshd_config > /etc/ssh/sshd_config ENV SSHDIR $HOME/.ssh RUN mkdir -p ${SSHDIR} RUN ssh-keygen -t rsa -f ${SSHDIR}/id_rsa -N '' diff --git a/docker/build_docker_oss4local.sh b/docker/build_docker_oss4local.sh index 2ecf29492a..749946b173 100644 --- a/docker/build_docker_oss4local.sh +++ b/docker/build_docker_oss4local.sh @@ -35,7 +35,7 @@ cp -r $GSF_HOME"training_scripts" $GSF_HOME"docker/code/training_scripts" DOCKER_FULLNAME="${IMAGE_NAME}:${TAG}" echo "Build a local docker image ${DOCKER_FULLNAME}" -docker build -f $GSF_HOME"docker/Dockerfile.local" . -t $DOCKER_FULLNAME +docker build --no-cache -f $GSF_HOME"docker/Dockerfile.local" . -t $DOCKER_FULLNAME # remove the temporary code folder rm -rf $GSF_HOME"docker/code"