aboutsummaryrefslogtreecommitdiff
path: root/centos7-aarch64
diff options
context:
space:
mode:
authorFathi Boudra <fathi.boudra@linaro.org>2016-02-23 15:25:32 +0200
committerFathi Boudra <fathi.boudra@linaro.org>2016-02-23 15:30:47 +0200
commit161841821b355849b4b76e6b873f3bbd5a5ba1ae (patch)
tree7c27b0dfcd55ed440f0978fd9877b9de0cbda42d /centos7-aarch64
parent736f45443a721777837e3098e98ae496b469cbfc (diff)
expose SSH port
With newer docker version 1.10.x, it becomes mandatory. It was implicit with older images. Change-Id: Ia06a35c5fabfda089571d53f24650bda9754cebf Signed-off-by: Fathi Boudra <fathi.boudra@linaro.org>
Diffstat (limited to 'centos7-aarch64')
-rw-r--r--centos7-aarch64/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/centos7-aarch64/Dockerfile b/centos7-aarch64/Dockerfile
index 2f1d1aa9..1ca4445f 100644
--- a/centos7-aarch64/Dockerfile
+++ b/centos7-aarch64/Dockerfile
@@ -12,5 +12,7 @@ RUN useradd -p '$6$7tSX2YU5Q$ydZwAuWtNPPBb1Fv/tzy3eFeEP/ThDBUjV/4vHVx6bVyfYMX6Q9
&& echo 'buildslave ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/jenkins \
&& chmod 0440 /etc/sudoers.d/jenkins \
&& mkdir -p /var/run/sshd \
- && /usr/sbin/sshd-keygen \
- && /usr/sbin/sshd
+ && /usr/sbin/sshd-keygen
+
+EXPOSE 22
+CMD ["/usr/sbin/sshd", "-D"]