aboutsummaryrefslogtreecommitdiff
path: root/trusty-arm64-openjdk
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 /trusty-arm64-openjdk
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 'trusty-arm64-openjdk')
-rw-r--r--trusty-arm64-openjdk/Dockerfile6
1 files changed, 4 insertions, 2 deletions
diff --git a/trusty-arm64-openjdk/Dockerfile b/trusty-arm64-openjdk/Dockerfile
index 6e9530cc..ed0baa2b 100644
--- a/trusty-arm64-openjdk/Dockerfile
+++ b/trusty-arm64-openjdk/Dockerfile
@@ -20,5 +20,7 @@ RUN echo 'deb http://ports.ubuntu.com/ubuntu-ports trusty main universe' > /etc/
RUN useradd -m -p '$6$7tSX2YU5Q$ydZwAuWtNPPBb1Fv/tzy3eFeEP/ThDBUjV/4vHVx6bVyfYMX6Q9PYhdV/CyJg7uthSIqIyzlNF65NVB1xwGtt0/' buildslave \
&& echo 'buildslave ALL = NOPASSWD: ALL' > /etc/sudoers.d/jenkins \
&& chmod 0440 /etc/sudoers.d/jenkins \
- && mkdir -p /var/run/sshd \
- && /usr/sbin/sshd
+ && mkdir -p /var/run/sshd
+
+EXPOSE 22
+CMD ["/usr/sbin/sshd", "-D"]