Skip to content

Commit

Permalink
Add Node.js 22
Browse files Browse the repository at this point in the history
  • Loading branch information
pcvolkmer committed May 9, 2024
1 parent c7dbc61 commit 8636607
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18, 19, 20, 21]
node-version: [18, 19, 20, 21, 22]

steps:
- uses: actions/checkout@v4
Expand Down
23 changes: 23 additions & 0 deletions 22/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This Dockerfile is used to build an image containing a node jenkins slave

FROM node:22

LABEL org.opencontainers.image.source=https://github.com/pcvolkmer/docker-jenkins-slave-nodejs
LABEL org.opencontainers.image.licenses=MIT
LABEL org.opencontainers.image.description="NodeJS image to use with Jenkins Docker Plugin"

# Upgrade and Install packages
RUN apt-get update && apt-get -y upgrade && apt-get install -y git openssh-server openjdk-17-jdk

# Add user and group for jenkins
RUN groupadd -g 10000 jenkins
RUN useradd -m -u 10000 -g 10000 jenkins
RUN echo "jenkins:jenkins" | chpasswd

# Prepare container for ssh
RUN mkdir /var/run/sshd

ENV CI=true
EXPOSE 22

CMD ["/usr/sbin/sshd", "-D"]

0 comments on commit 8636607

Please sign in to comment.