Skip to content

Commit

Permalink
[Tutorials and Agents Docs] Bump node LTS alpine docker image version…
Browse files Browse the repository at this point in the history
… to 18.18.0-alpine3.18 (jenkins-infra#6688)

* chore: Update the value of the node docker image in the 'Build a Node...

... .js and React app with npm' tutorial

Made with ❤️️ by updatecli

* chore: Update the value of the node docker image in the 'Jenkins Docu...

... mentation Style Guide' documentation

Made with ❤️️ by updatecli

* chore: Update the value of the node docker image in the 'Using Docker...

...  with Pipeline' documentation

Made with ❤️️ by updatecli

* chore: Update the value of the node docker image in the 'Build a Node...

... .js and React app with npm' tutorial

Made with ❤️️ by updatecli

* chore: Update the value of the node docker image for pipelines in the...

...  'Hello World!' tutorial

Made with ❤️️ by updatecli

* chore: Update the value of the node docker image in the 'Using Docker...

...  with Pipeline' documentation

Made with ❤️️ by updatecli

* chore: Update the value of the node docker image in the 'End-to-End M...

... ultibranch Pipeline Project Creation' tutorial

Made with ❤️️ by updatecli

* chore: Update the value of the node docker image in the 'Defining exe...

... cution environments' documentation

Made with ❤️️ by updatecli

* chore: Update the value of the node docker image for scripts in the '...

... Hello World!' tutorial

Made with ❤️️ by updatecli

---------

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Sep 22, 2023
1 parent a7ac624 commit c62ec00
Show file tree
Hide file tree
Showing 6 changed files with 16 additions and 16 deletions.
2 changes: 1 addition & 1 deletion STYLEGUIDE.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ node {
// Declarative //
pipeline {
agent { docker { image 'node:18.17.1-alpine3.18' } }
agent { docker { image 'node:18.18.0-alpine3.18' } }
stages {
stage('Build') {
sh 'npm install'
Expand Down
10 changes: 5 additions & 5 deletions content/doc/book/pipeline/docker.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Any tool that can be link:https://hub.docker.com[packaged in a Docker container]
// Declarative //
pipeline {
agent {
docker { image 'node:18.17.1-alpine3.18' }
docker { image 'node:18.18.0-alpine3.18' }
}
stages {
stage('Test') {
Expand All @@ -45,7 +45,7 @@ pipeline {
// Script //
node {
/* Requires the Docker Pipeline plugin to be installed */
docker.image('node:18.17.1-alpine3.18').inside {
docker.image('node:18.18.0-alpine3.18').inside {
stage('Test') {
sh 'node --version'
}
Expand Down Expand Up @@ -173,7 +173,7 @@ pipeline {
}
stage('Front-end') {
agent {
docker { image 'node:18.17.1-alpine3.18' }
docker { image 'node:18.18.0-alpine3.18' }
}
steps {
sh 'node --version'
Expand All @@ -192,7 +192,7 @@ node {
}
stage('Front-end') {
docker.image('node:18.17.1-alpine3.18').inside {
docker.image('node:18.18.0-alpine3.18').inside {
sh 'node --version'
}
}
Expand All @@ -210,7 +210,7 @@ Reusing an example from above, with a more custom `Dockerfile`:
.Dockerfile
[source]
----
FROM node:18.17.1-alpine3.18
FROM node:18.18.0-alpine3.18
RUN apk add -U subversion
----
Expand Down
4 changes: 2 additions & 2 deletions content/doc/pipeline/tour/agents.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ link:/doc/book/pipeline/syntax#agent[syntax reference].
// Declarative //
pipeline {
agent {
docker { image 'node:18.17.1-alpine3.18' }
docker { image 'node:18.18.0-alpine3.18' }
}
stages {
stage('Test') {
Expand All @@ -61,7 +61,7 @@ pipeline {
// Script //
node {
/* Requires the Docker Pipeline plugin to be installed */
docker.image('node:18.17.1-alpine3.18').inside {
docker.image('node:18.18.0-alpine3.18').inside {
stage('Test') {
sh 'node --version'
}
Expand Down
4 changes: 2 additions & 2 deletions content/doc/pipeline/tour/hello-world.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ node {
// Declarative //
/* Requires the Docker Pipeline plugin */
pipeline {
agent { docker { image 'node:18.17.1-alpine3.18' } }
agent { docker { image 'node:18.18.0-alpine3.18' } }
stages {
stage('build') {
steps {
Expand All @@ -96,7 +96,7 @@ pipeline {
/* Requires the Docker Pipeline plugin */
node {
stage('Build') {
docker.image('node:18.17.1-alpine3.18').inside {
docker.image('node:18.18.0-alpine3.18').inside {
sh 'node --version'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ process and a "Test" stage to check that the application renders satisfactorily.
pipeline {
agent {
docker {
image 'node:18.17.1-alpine3.18'
image 'node:18.18.0-alpine3.18'
args '-p 3000:3000 -p 5000:5000' // <1>
}
}
Expand Down Expand Up @@ -317,7 +317,7 @@ so that you end up with:
pipeline {
agent {
docker {
image 'node:18.17.1-alpine3.18'
image 'node:18.18.0-alpine3.18'
args '-p 3000:3000 -p 5000:5000'
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ process.
pipeline {
agent {
docker {
image 'node:18.17.1-alpine3.18' // <1>
image 'node:18.18.0-alpine3.18' // <1>
args '-p 3000:3000' // <2>
}
}
Expand All @@ -160,7 +160,7 @@ pipeline {
----
<1> This `image` parameter (of the link:/doc/book/pipeline/syntax#agent[`agent`]
section's `docker` parameter) downloads the
https://hub.docker.com/_/node/[`node:18.17.1-alpine3.18` Docker image] (if it's not
https://hub.docker.com/_/node/[`node:18.18.0-alpine3.18` Docker image] (if it's not
already available on your machine) and runs this image as a separate container.
This means that:
* You'll have separate Jenkins and Node containers running locally in Docker.
Expand Down Expand Up @@ -244,7 +244,7 @@ so that you end up with:
pipeline {
agent {
docker {
image 'node:18.17.1-alpine3.18'
image 'node:18.18.0-alpine3.18'
args '-p 3000:3000'
}
}
Expand Down Expand Up @@ -323,7 +323,7 @@ so that you end up with:
pipeline {
agent {
docker {
image 'node:18.17.1-alpine3.18'
image 'node:18.18.0-alpine3.18'
args '-p 3000:3000'
}
}
Expand Down

0 comments on commit c62ec00

Please sign in to comment.