diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0772645..42cba72 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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 diff --git a/22/Dockerfile b/22/Dockerfile new file mode 100644 index 0000000..61f26a6 --- /dev/null +++ b/22/Dockerfile @@ -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"]