Skip to content

feat: adds Node.js 22 (Jod) support #226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 23, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions .github/workflows/buildx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,14 @@ jobs:
matrix:
docker-file:
- path: 18
tags: "18 hydrogen latest"
tags: "18 hydrogen"
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7,linux/arm/v6
- path: 20
tags: "20 iron"
tags: "20 iron latest"
platforms: linux/amd64,linux/arm64,linux/ppc64le,linux/s390x,linux/arm/v7,linux/arm/v6
- path: 22
tags: "22 jod"
platforms: linux/amd64,linux/arm64,linux/s390x,linux/arm/v7,linux/arm/v6

steps:
- name: Checkout
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/dockerimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ jobs:
run: |
docker run -i $(docker build -q 18) /bin/sh -c "node --version && npm --version && git --version"
docker run -i $(docker build -q 20) /bin/sh -c "node --version && npm --version && git --version"
docker run -i $(docker build -q 22) /bin/sh -c "node --version && npm --version && git --version"

auto-merge:
runs-on: ubuntu-latest
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/hadolint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:

- run: brew install hadolint

- run: hadolint {18,20}/Dockerfile
- run: hadolint {18,20,22}/Dockerfile
2 changes: 1 addition & 1 deletion 20/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:20-alpine
FROM node:iron-alpine
LABEL maintainer "Tim Brust <github@timbrust.de>"

ARG REFRESHED_AT
Expand Down
10 changes: 10 additions & 0 deletions 22/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:22-alpine
LABEL maintainer "Tim Brust <github@timbrust.de>"

ARG REFRESHED_AT
ENV REFRESHED_AT $REFRESHED_AT

RUN apk -U upgrade \
&& apk add --no-cache \
git \
openssh
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
[![buildx Status](https://github.com/timbru31/docker-node-alpine-git/workflows/buildx/badge.svg)](https://github.com/timbru31/docker-node-alpine-git/actions?query=workflow%3Abuildx)
[![Lint Dockerfiles](https://github.com/timbru31/docker-node-alpine-git/workflows/Lint%20Dockerfiles/badge.svg)](https://github.com/timbru31/docker-node-alpine-git/actions?query=workflow%3A%22Lint+Dockerfiles%22)

A minimal Dockerfile based on Node.js 18 LTS (Hydrogen) or Node.js 20 (Iron) alpine with Git and ssh installed.
A minimal Dockerfile based on Node.js 18 LTS (Hydrogen), Node.js 20 LTS (Iron) or Node.js 22 (Jod) alpine with Git and ssh installed.

## What's included

- Node.js 18 LTS (Hydrogen) or 20 (Iron)
- Node.js 18 LTS (Hydrogen), 20 LTS (Iron) or 22 (Jod)
- npm 9
- yarn
- Git
Expand All @@ -22,7 +22,7 @@ These Dockerfiles leverage the new `buildx` functionality and offer the followin
- linux/arm64
- linux/arm/v7
- linux/arm/v6
- linux/ppc64le
- linux/ppc64le (not for Node.js 22 (Jod))
- linux/s390x

---
Expand Down
Loading