Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
fix: tag replacement regex for Dockerbuilds. tune jenkins-slave-full …
Browse files Browse the repository at this point in the history
…Dockerfile.
  • Loading branch information
iocanel committed Oct 31, 2017
1 parent 4070f59 commit 0c8505d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion bin/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ function dockerbuild() {
cp $DOCKERFILE ${DOCKERFILE}.original
from=$(fromimagename $DOCKERFILE)
echo "Replace image FROM: $from with $from:$BUILDER_TAG"
sed -E "s|FROM ([a-zA-Z0-9\.\/:]+)|FROM ${from}:${BUILDER_TAG}|g" $DOCKERFILE > ${DOCKERFILE}.${BUILDER_TAG}
sed -E "s|FROM ([a-zA-Z0-9\.\/\:]+)|FROM ${from}:${BUILDER_TAG}|g" $DOCKERFILE > ${DOCKERFILE}.${BUILDER_TAG}
cp ${DOCKERFILE}.${BUILDER_TAG} $DOCKERFILE
fi

Expand Down
8 changes: 4 additions & 4 deletions images/jenkins-slave-full-centos7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM openshift/jenkins-slave-maven-centos7
FROM openshift/jenkins-slave-maven-centos7:latest-slave-maven-centos7:latest

ENV NODEJS_VERSION=4.4 \
NPM_CONFIG_PREFIX=$HOME/.npm-global \
Expand All @@ -7,6 +7,8 @@ ENV NODEJS_VERSION=4.4 \
ENV=/usr/local/bin/scl_enable \
PROMPT_COMMAND=". /usr/local/bin/scl_enable"

USER root

COPY contrib/bin/scl_enable /usr/local/bin/scl_enable


Expand All @@ -22,12 +24,10 @@ COPY contrib/google-chrome.repo /etc/yum.repos.d/google-chrome.repo

# Install Yarn and Xvfb
RUN curl https://dl.yarnpkg.com/rpm/yarn.repo > /etc/yum.repos.d/yarn.repo && \
curl --silent --location https://rpm.nodesource.com/setup_8.x | bash - && \
yum install -y google-chrome-stable xorg-x11-server-Xvfb liberation-mono-fonts liberation-narrow-fonts liberation-sans-fonts liberation-serif-fonts yarn nodejs gcc-c++ make && \
yum install -y google-chrome-stable xorg-x11-server-Xvfb liberation-mono-fonts liberation-narrow-fonts liberation-sans-fonts liberation-serif-fonts yarn gcc-c++ make && \
mkdir /.cache /.config && chmod 777 /.cache /.config && \
dbus-uuidgen > /etc/machine-id


RUN chown -R 1001:0 $HOME && \
chmod -R g+rw $HOME

Expand Down

0 comments on commit 0c8505d

Please sign in to comment.