summaryrefslogtreecommitdiffstats
path: root/Bombs
diff options
context:
space:
mode:
Diffstat (limited to 'Bombs')
-rw-r--r--Bombs/cpu/Dockerfile5
-rw-r--r--Bombs/mem/Dockerfile5
2 files changed, 8 insertions, 2 deletions
diff --git a/Bombs/cpu/Dockerfile b/Bombs/cpu/Dockerfile
index f289832..eb3c668 100644
--- a/Bombs/cpu/Dockerfile
+++ b/Bombs/cpu/Dockerfile
@@ -1,8 +1,11 @@
-FROM startx/openshift-centos:latest
+FROM centos/s2i-core-centos7:latest
MAINTAINER Christophe LARUE <dev@startx.fr>
COPY sx.sh /bin/sx
COPY bomb.sh /bin/bomb
RUN chmod 775 /bin/sx /bin/bomb
+RUN useradd startx && echo "startx" | passwd --stdin startx
+USER startx
+
CMD [ "/bin/sx" ]
diff --git a/Bombs/mem/Dockerfile b/Bombs/mem/Dockerfile
index f289832..eb3c668 100644
--- a/Bombs/mem/Dockerfile
+++ b/Bombs/mem/Dockerfile
@@ -1,8 +1,11 @@
-FROM startx/openshift-centos:latest
+FROM centos/s2i-core-centos7:latest
MAINTAINER Christophe LARUE <dev@startx.fr>
COPY sx.sh /bin/sx
COPY bomb.sh /bin/bomb
RUN chmod 775 /bin/sx /bin/bomb
+RUN useradd startx && echo "startx" | passwd --stdin startx
+USER startx
+
CMD [ "/bin/sx" ]