Skip to content
This repository has been archived by the owner on Nov 12, 2023. It is now read-only.

Commit

Permalink
nodejs 16 stable
Browse files Browse the repository at this point in the history
  • Loading branch information
clouless committed Nov 2, 2021
1 parent 7a9295f commit ab5972b
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ RUN rm -rf /var/lib/apt/lists/* /var/cache/apt/* && \
#
# NODEJS
#
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash - && \
RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - && \
apt-get update -qqy && apt-get -qqy install -y nodejs && \
rm -rf /var/lib/apt/lists/* /var/cache/apt/*

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ Use with [Kubernetes Jenkins Plugin](https://github.com/jenkinsci/kubernetes-plu

```groovy
podTemplate(
name: 'nodejs-xvfb-chrome-v34',
label: 'k8s-jenkins-slave-nodejs-xvfb-chrome-v34',
name: 'nodejs-xvfb-chrome-v35',
label: 'k8s-jenkins-slave-nodejs-xvfb-chrome-v35',
cloud: 'mycloud',
nodeSelector: 'failure-domain.beta.kubernetes.io/zone=eu-west-1a',
containers: [
containerTemplate(
name: 'jnlp',
image: 'cloutainer/k8s-jenkins-slave-nodejs-xvfb-chrome:v34',
image: 'cloutainer/k8s-jenkins-slave-nodejs-xvfb-chrome:v35',
privileged: false,
command: '/opt/docker-entrypoint.sh',
args: '',
Expand All @@ -54,7 +54,7 @@ podTemplate(
)
]
) {
node('k8s-jenkins-slave-nodejs-xvfb-chrome-v34') {
node('k8s-jenkins-slave-nodejs-xvfb-chrome-v35') {
stage('build and test') {
sh 'mvn -version'
sh 'git clone https://github.com/clouless/angular-4-unit-test-dummy.git'
Expand Down
13 changes: 13 additions & 0 deletions docker-entrypoint-hook.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,19 @@

set -e

#
# VERSION OUTPUT
#
VERSION_NODE=$(node -v)
echo "DOCKER-ENTRYPOINT-HOOK >> node version : "$VERSION_NODE
VERSION_YARN=$(yarn -v)
echo "DOCKER-ENTRYPOINT-HOOK >> yarn version : "$VERSION_YARN
VERSION_NPM=$(npm -v)
echo "DOCKER-ENTRYPOINT-HOOK >> npm version : "$VERSION_NPM
VERSION_CHROME=$(google-chrome --version)
echo "DOCKER-ENTRYPOINT-HOOK >> google-chrome version : "$VERSION_CHROME


#
# XVFB
#
Expand Down

0 comments on commit ab5972b

Please sign in to comment.