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.17.0-alpine3.18 (jenkins-infra#6588)

* chore: Updated to content "" in file "content/doc/pipeline/tour/hello...

... -world.adoc"

Made with ❤️️ by updatecli

* chore: Updated to content "" in file "content/doc/tutorials/build-a-n...

... ode-js-and-react-app-with-npm.adoc"

Made with ❤️️ by updatecli

* chore: Updated to content "" in file "content/doc/pipeline/tour/hello...

... -world.adoc"

Made with ❤️️ by updatecli

* chore: Updated to content "" in file "content/doc/book/pipeline/docke...

... r.adoc"

Made with ❤️️ by updatecli

* chore: Updated to content "" in file "content/doc/tutorials/build-a-m...

... ultibranch-pipeline-project.adoc"

Made with ❤️️ by updatecli

* chore: Updated to content "" in file "content/doc/pipeline/tour/agent...

... s.adoc"

Made with ❤️️ by updatecli

* chore: Updated to content "" in file "content/doc/tutorials/build-a-n...

... ode-js-and-react-app-with-npm.adoc"

Made with ❤️️ by updatecli

* chore: Updated to content "" in file "STYLEGUIDE.adoc"

Made with ❤️️ by updatecli

* chore: Updated to content "" in file "content/doc/book/pipeline/docke...

... r.adoc"

Made with ❤️️ by updatecli

---------

Co-authored-by: GitHub Actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] authored Aug 4, 2023
1 parent f731997 commit a21bd0f
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.16.0-alpine' } }
agent { docker { image 'node:18.17.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.16.0-alpine' }
docker { image 'node:18.17.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.16.0-alpine').inside {
docker.image('node:18.17.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.16.0-alpine' }
docker { image 'node:18.17.0-alpine3.18' }
}
steps {
sh 'node --version'
Expand All @@ -192,7 +192,7 @@ node {
}
stage('Front-end') {
docker.image('node:18.16.0-alpine').inside {
docker.image('node:18.17.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.16.0-alpine
FROM node:18.17.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.16.0-alpine' }
docker { image 'node:18.17.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.16.0-alpine').inside {
docker.image('node:18.17.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.16.0-alpine' } }
agent { docker { image 'node:18.17.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.16.0-alpine').inside {
docker.image('node:18.17.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:lts-alpine'
image 'node:18.17.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:lts-alpine'
image 'node:18.17.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:lts-bullseye-slim' // <1>
image 'node:18.17.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:lts-bullseye-slim` Docker image] (if it's not
https://hub.docker.com/_/node/[`node:18.17.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:lts-bullseye-slim'
image 'node:18.17.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:lts-buster-slim'
image 'node:18.17.0-alpine3.18'
args '-p 3000:3000'
}
}
Expand Down

0 comments on commit a21bd0f

Please sign in to comment.