This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: uncomment git submodule handling.
- Loading branch information
Showing
4 changed files
with
51 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
FROM openshift/jenkins-slave-maven-centos7 | ||
|
||
ENV NODEJS_VERSION=4.4 \ | ||
NPM_CONFIG_PREFIX=$HOME/.npm-global \ | ||
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" | ||
|
||
COPY contrib/bin/scl_enable /usr/local/bin/scl_enable | ||
|
||
|
||
# Install NodeJS | ||
RUN yum install -y centos-release-scl-rh && \ | ||
INSTALL_PKGS="rh-nodejs4 rh-nodejs4-npm rh-nodejs4-nodejs-nodemon" && \ | ||
ln -s /usr/lib/node_modules/nodemon/bin/nodemon.js /usr/bin/nodemon && \ | ||
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \ | ||
rpm -V $INSTALL_PKGS && \ | ||
yum clean all -y | ||
|
||
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 && \ | ||
mkdir /.cache /.config && chmod 777 /.cache /.config && \ | ||
dbus-uuidgen > /etc/machine-id | ||
|
||
|
||
RUN chown -R 1001:0 $HOME && \ | ||
chmod -R g+rw $HOME | ||
|
||
USER 1001 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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-nodejs4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[google-chrome] | ||
name=google-chrome - \$basearch | ||
baseurl=http://dl.google.com/linux/chrome/rpm/stable/\$basearch | ||
enabled=1 | ||
gpgcheck=1 | ||
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub |