diff --git a/cucumber-selenium-grid/README1.md b/cucumber-selenium-grid/README1.md index 4d42a769..c0707a2e 100644 --- a/cucumber-selenium-grid/README1.md +++ b/cucumber-selenium-grid/README1.md @@ -1,5 +1,5 @@ oc new-project selenium oc new-app registry.access.redhat.com/rhoar-nodejs/nodejs-8~https://github.com/raffaelespazzoli/todomvc --context-dir examples/angularjs --name todomvc -oc new-build --strategy=docker --binary=true --name=jenkins-slave-protractor +oc new-build --strategy=docker --name=jenkins-slave-nodejs8 oc start-build -F jenkins-slave-protractor --from-dir=. \ No newline at end of file diff --git a/cucumber-selenium-grid/nodejs-slave/Dockerfile b/cucumber-selenium-grid/nodejs-slave/Dockerfile new file mode 100644 index 00000000..f3ee5876 --- /dev/null +++ b/cucumber-selenium-grid/nodejs-slave/Dockerfile @@ -0,0 +1,39 @@ +FROM registry.access.redhat.com/openshift3/jenkins-slave-base-rhel7 + +MAINTAINER Gabe Montero + +# Labels consumed by Red Hat build service +LABEL com.redhat.component="jenkins-agent-nodejs-8-rhel7-docker" \ + name="openshift3/jenkins-agent-nodejs-8-rhel7" \ + version="3.6" \ + architecture="x86_64" \ + release="4" \ + io.k8s.display-name="Jenkins Agent Nodejs" \ + io.k8s.description="The jenkins agent nodejs image has the nodejs tools on top of the jenkins slave base image." \ + io.openshift.tags="openshift,jenkins,agent,nodejs" + +ENV NODEJS_VERSION=8 \ + 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-config-manager --enable rhel-server-rhscl-7-rpms && \ + yum-config-manager --enable rhel-7-server-optional-rpms && \ + yum-config-manager --enable rhel-server-rhscl-8-rpms && \ + yum-config-manager --enable rhel-8-server-optional-rpms && \ + yum-config-manager --disable epel >/dev/null || : && \ + INSTALL_PKGS="rh-nodejs${NODEJS_VERSION} rh-nodejs${NODEJS_VERSION}-nodejs-nodemon make gcc-c++" && \ + 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 + +RUN chown -R 1001:0 $HOME && \ + chmod -R g+rw $HOME + +USER 1001 \ No newline at end of file