summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartek Grzybowski <b.grzybowski@partner.samsung.com>2019-04-09 10:21:16 +0200
committerBartek Grzybowski <b.grzybowski@partner.samsung.com>2019-04-09 10:21:16 +0200
commitab94ea5d82dadd18f892d3a45fd380473758a4ae (patch)
treee07943f8fac27b306f2eac1b1b30cbe306560fcc
parent21c39f054da6f656719a9ae076d08f2363bf40aa (diff)
Improve dockerfile for Centos7
All packages are upgraded and '/run' volume is being created. Change-Id: I9a7056cf4615932b322c1c5b073ab60787ac54e0 Issue-ID: OOM-1774 Signed-off-by: Bartek Grzybowski <b.grzybowski@partner.samsung.com>
-rw-r--r--ansible/test/images/docker/centos7/Dockerfile5
1 files changed, 5 insertions, 0 deletions
diff --git a/ansible/test/images/docker/centos7/Dockerfile b/ansible/test/images/docker/centos7/Dockerfile
index 289ee8c6..b36d58cb 100644
--- a/ansible/test/images/docker/centos7/Dockerfile
+++ b/ansible/test/images/docker/centos7/Dockerfile
@@ -1,8 +1,13 @@
FROM centos/systemd
+RUN yum -y update && yum clean all
+
RUN yum -y install openssh-server sudo openssh-clients \
epel-release python-docker-py iproute
RUN systemctl enable sshd.service
+
+VOLUME ["/run"]
+
EXPOSE 22
CMD ["/usr/sbin/init"]