Skip to content

Commit

Permalink
Merge pull request #659 from opendevstack/bugfix/GH-656-jenkins-nodej…
Browse files Browse the repository at this point in the history
…s12-agent-build-failing-due-to-incompatible-chrome-package-with-centos7-backport-3.x

backport 3.x bugfix jenkins nodejs12 agent build failing due to incompatible chrome package with centos7 backport 3.x
  • Loading branch information
stitakis authored Oct 25, 2021
2 parents bce2872 + 45fc67b commit 9f4993d
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

### Fixed

- jenkins nodejs12 agent build failing due to incompatible chrome package with centos 7 ([#656](https://github.com/opendevstack/ods-quickstarters/pull/656))
- Fix Ionic quickstarter by adding Nodejs 12 as requirement for ODS 3.x ([#595](https://github.com/opendevstack/ods-quickstarters/issues/595))
- Fix Ionic quickstarter build after provisioning, proper npm install command ([#595](https://github.com/opendevstack/ods-quickstarters/issues/595))
- ds-rshiny cleanup cloudera dependency ([#540](https://github.com/opendevstack/ods-quickstarters/pull/540))
Expand Down
11 changes: 6 additions & 5 deletions common/jenkins-agents/nodejs10-angular/docker/Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,21 @@ ENV NODEJS_VERSION=10 \
PATH=$HOME/node_modules/.bin/:$HOME/.npm-global/bin/:$PATH \
BASH_ENV=/usr/local/bin/scl_enable \
ENV=/usr/local/bin/scl_enable \
PROMPT_COMMAND=". /usr/local/bin/scl_enable"
PROMPT_COMMAND=". /usr/local/bin/scl_enable" \
CHROME_VERSION=94.0.4606.81

# install google-chrome (for angular)
RUN yum-config-manager --enable rhel-7-server-extras-rpms && \
yum-config-manager --enable rhel-7-server-optional-rpms && \
yum makecache

ADD https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm /root/google-chrome-stable_current_x86_64.rpm
ADD https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-${CHROME_VERSION}-1.x86_64.rpm /root/google-chrome.rpm
RUN yum -y install redhat-lsb libXScrnSaver
RUN yum -y install /root/google-chrome-stable_current_x86_64.rpm && \
RUN yum -y install /root/google-chrome.rpm && \
ln -s /usr/lib64/libOSMesa.so.8 /opt/google/chrome/libosmesa.so && \
yum clean all && \
dbus-uuidgen > /etc/machine-id

dbus-uuidgen > /etc/machine-id && \
rm /root/google-chrome.rpm

# Install cypress dependencies
# Please note: xorg-x11-server-Xvfb is not available on RHEL via yum anymore, so "RUN yum install -y xorg-x11-server-Xvfb" won't work.
Expand Down
11 changes: 6 additions & 5 deletions common/jenkins-agents/nodejs12/docker/Dockerfile.rhel7
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,20 @@ ENV NODEJS_VERSION=12 \
ENV=/usr/local/bin/scl_enable \
PROMPT_COMMAND=". /usr/local/bin/scl_enable" \
LANG=en_US.UTF-8 \
LC_ALL=en_US.UTF-8
LC_ALL=en_US.UTF-8 \
CHROME_VERSION=94.0.4606.81

# install google-chrome (for angular)
RUN yum-config-manager --enable rhel-7-server-extras-rpms && \
yum-config-manager --enable rhel-7-server-optional-rpms

ADD https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm /root/google-chrome-stable_current_x86_64.rpm
ADD https://dl.google.com/linux/chrome/rpm/stable/x86_64/google-chrome-stable-${CHROME_VERSION}-1.x86_64.rpm /root/google-chrome.rpm
RUN yum -y install redhat-lsb libXScrnSaver
RUN yum -y install /root/google-chrome-stable_current_x86_64.rpm && \
RUN yum -y install /root/google-chrome.rpm && \
ln -s /usr/lib64/libOSMesa.so.8 /opt/google/chrome/libosmesa.so && \
yum clean all && \
dbus-uuidgen > /etc/machine-id

dbus-uuidgen > /etc/machine-id && \
rm /root/google-chrome.rpm

# Install cypress dependencies
# Please note: xorg-x11-server-Xvfb is not available on RHEL via yum anymore, so "RUN yum install -y xorg-x11-server-Xvfb" won't work.
Expand Down

0 comments on commit 9f4993d

Please sign in to comment.