From 9124db46bf6c753442282bd7c6f5c8e3ef49a99f Mon Sep 17 00:00:00 2001 From: root Date: Wed, 25 Mar 2020 10:09:20 -0400 Subject: [PATCH 1/4] modified the dockerfile to support power server --- test/Dockerfile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/test/Dockerfile b/test/Dockerfile index 570bd16..273a030 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -1,11 +1,14 @@ -FROM centos/ruby-22-centos7 +FROM rhscl/ruby-25-rhel7 USER default EXPOSE 8080 ENV RACK_ENV production ENV RAILS_ENV production -COPY . /opt/app-root/src/ -RUN scl enable rh-ruby22 "bundle install" -CMD ["scl", "enable", "rh-ruby22", "./run.sh"] +RUN mkdir -p /opt/app-root/src +RUN chmod og+rw /opt/app-root/src +ADD . /opt/app-root/src/. +ENV GEM_HOME ~/.gem +RUN scl enable rh-ruby25 "bundle install" +CMD ["scl", "enable", "rh-ruby25", "./run.sh"] USER root RUN chmod og+rw /opt/app-root/src/db From 02b7dcc335b3bfb93f05df6ae439d7e6841ef0b3 Mon Sep 17 00:00:00 2001 From: prashanthhat <62415509+prashanthhat@users.noreply.github.com> Date: Mon, 30 Mar 2020 13:09:22 +0530 Subject: [PATCH 2/4] Update Dockerfile --- test/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Dockerfile b/test/Dockerfile index 273a030..29834b5 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -1,4 +1,4 @@ -FROM rhscl/ruby-25-rhel7 +FROM registry.redhat.io/rhscl/ruby-25-rhel7:latest USER default EXPOSE 8080 ENV RACK_ENV production From 43812962cb8f246d1357caffb61c074cb5874c1e Mon Sep 17 00:00:00 2001 From: prashanthhat <62415509+prashanthhat@users.noreply.github.com> Date: Wed, 1 Apr 2020 11:23:30 +0530 Subject: [PATCH 3/4] Update Dockerfile --- test/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Dockerfile b/test/Dockerfile index 29834b5..2630a25 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -1,4 +1,4 @@ -FROM registry.redhat.io/rhscl/ruby-25-rhel7:latest +FROM rhscl/ruby-25-rhel7:latest USER default EXPOSE 8080 ENV RACK_ENV production From 541fe13f4777d448fc71899929932e7565e443ca Mon Sep 17 00:00:00 2001 From: prashanthhat <62415509+prashanthhat@users.noreply.github.com> Date: Wed, 1 Apr 2020 12:21:51 +0530 Subject: [PATCH 4/4] Update Dockerfile --- test/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Dockerfile b/test/Dockerfile index 2630a25..29834b5 100644 --- a/test/Dockerfile +++ b/test/Dockerfile @@ -1,4 +1,4 @@ -FROM rhscl/ruby-25-rhel7:latest +FROM registry.redhat.io/rhscl/ruby-25-rhel7:latest USER default EXPOSE 8080 ENV RACK_ENV production