From e69891ce630b7f4d6ea1ee7b2abde0cdf942f6c1 Mon Sep 17 00:00:00 2001 From: startxfr Date: Sun, 23 Jul 2017 14:32:04 +0200 Subject: update openshift bomb for user issue --- Bombs/cpu/Dockerfile | 5 ++++- Bombs/mem/Dockerfile | 5 ++++- OS/Dockerfile | 3 ++- 3 files changed, 10 insertions(+), 3 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 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 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/OS/Dockerfile b/OS/Dockerfile index f04434e..1237603 100644 --- a/OS/Dockerfile +++ b/OS/Dockerfile @@ -3,7 +3,8 @@ MAINTAINER Christophe LARUE COPY sx.sh /bin/sx RUN chmod 775 /bin/sx -RUN useradd startx && echo "startx" | passwd --stdin startx && usermod -aG wheel startx +RUN useradd startx && echo "startx" | passwd --stdin startx USER startx + CMD [ "/bin/sx" ] -- cgit v1.2.3