donal
2018-04-19 529ebe73a2ccc0e09aca85237c5da2d2ee14e2e2
Dockerfile updates for scl
1 files added
1 files modified
11 ■■■■ changed files
docker/jenkins-slave-npm/Dockerfile 8 ●●●● patch | view | raw | blame | history
docker/jenkins-slave-npm/contrib/bin/scl_enable 3 ●●●●● patch | view | raw | blame | history
docker/jenkins-slave-npm/Dockerfile
@@ -1,11 +1,15 @@
#invoke npm in jenkinsfile: sh "scl enable rh-nodejs6 'npm run build'"
FROM openshift/jenkins-slave-nodejs-rhel7:latest
FROM registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7
USER root
ADD https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm google-chrome-stable_current_x86_64.rpm
RUN yum -y install redhat-lsb libXScrnSaver xdg-utils wget
RUN yum -y localinstall google-chrome-stable_current_x86_64.rpm
ENV CHROME_BIN /bin/google-chrome
ENV PROMPT_COMMAND=". /usr/local/bin/scl_enable"
COPY contrib/bin/scl_enable /usr/local/bin/scl_enable
RUN yum remove -y rh-nodejs4; \
    yum repolist > /dev/null && \
@@ -22,4 +26,4 @@
USER 1001
RUN git config --global user.email "jenkins@ci-cd.com" && \
    git config --global user.name "jenkins"
    git config --global user.name "jenkins"
docker/jenkins-slave-npm/contrib/bin/scl_enable
New file
@@ -0,0 +1,3 @@
# This will make scl collection binaries work out of box.
unset BASH_ENV PROMPT_COMMAND ENV
source scl_source enable rh-nodejs8