aboutsummaryrefslogtreecommitdiff
path: root/jessie-armhf
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 /jessie-armhf
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 'jessie-armhf')
-rw-r--r--jessie-armhf/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/jessie-armhf/Dockerfile b/jessie-armhf/Dockerfile
index 7d5ebe1a..b530e029 100644
--- a/jessie-armhf/Dockerfile
+++ b/jessie-armhf/Dockerfile
@@ -54,5 +54,7 @@ RUN apt-key add /etc/apt/sources.list.d/*.key \
RUN useradd -m -p '$6$7tSX2YU5Q$ydZwAuWtNPPBb1Fv/tzy3eFeEP/ThDBUjV/4vHVx6bVyfYMX6Q9PYhdV/CyJg7uthSIqIyzlNF65NVB1xwGtt0/' buildslave \
&& echo 'buildslave ALL = NOPASSWD: ALL' > /etc/sudoers.d/jenkins \
&& chmod 440 /etc/sudoers.d/jenkins \
- && mkdir -p /var/run/sshd \
- && /usr/sbin/sshd
+ && mkdir -p /var/run/sshd
+
+EXPOSE 22
+CMD ["/usr/sbin/sshd", "-D"]