Skip to content
Open
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
4 changes: 4 additions & 0 deletions 24/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ARG ARCH=amd64
FROM sykescottages/node:base-$ARCH

RUN getnode v24.11.1
6 changes: 6 additions & 0 deletions 24/docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
sut:
build: .
command: /tests/run_tests.sh
volumes:
- ./run_tests.sh:/tests/run_tests.sh
29 changes: 29 additions & 0 deletions 24/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh

itShouldCheckThatAllInstalledSoftwareExists() {
doesCommandExist node
doesCommandExist npm
}

itShouldMatchTheDesiredVersions() {
doesMatchVersion node v24.11.1
doesMatchVersion npm 11.6.2
}

doesCommandExist() {
if ! [ -x "$(command -v $1)" ]; then
echo "Error: $1 is not installed." >&2
exit 1
fi
}

doesMatchVersion() {
VERSION=$($1 -v|grep -i "$2")
if [ -z "$VERSION" ]; then
echo "Error: $1 version $2 is not found, found $($1 -v) instead." >&2
exit 1
fi
}

itShouldCheckThatAllInstalledSoftwareExists
itShouldMatchTheDesiredVersions
4 changes: 4 additions & 0 deletions 25/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ARG ARCH=amd64
FROM sykescottages/node:base-$ARCH

RUN getnode v25.2.1
6 changes: 6 additions & 0 deletions 25/docker-compose.test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
services:
sut:
build: .
command: /tests/run_tests.sh
volumes:
- ./run_tests.sh:/tests/run_tests.sh
29 changes: 29 additions & 0 deletions 25/run_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
#!/bin/sh

itShouldCheckThatAllInstalledSoftwareExists() {
doesCommandExist node
doesCommandExist npm
}

itShouldMatchTheDesiredVersions() {
doesMatchVersion node v25.2.1
doesMatchVersion npm 11.6.2
}

doesCommandExist() {
if ! [ -x "$(command -v $1)" ]; then
echo "Error: $1 is not installed." >&2
exit 1
fi
}

doesMatchVersion() {
VERSION=$($1 -v|grep -i "$2")
if [ -z "$VERSION" ]; then
echo "Error: $1 version $2 is not found, found $($1 -v) instead." >&2
exit 1
fi
}

itShouldCheckThatAllInstalledSoftwareExists
itShouldMatchTheDesiredVersions
10 changes: 6 additions & 4 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,14 @@ docker run -it --platform=<ARCHITECTURE> sykescottages/node:<VERSION> arch
- v15.14.0 (Deprecated) - `sykescottages/node:15`
- v16.20.2 (Deprecated) - `sykescottages/node:16`
- v17.9.1 (Deprecated) - `sykescottages/node:17`
- **v18.20.7 (LTS Active EOL 2025-04-30)** - `sykescottages/node:18`
- v18.20.7 (Deprecated) - `sykescottages/node:18`
- v19.9.0 (Deprecated) - `sykescottages/node:19`
- **v20.18.3 (LTS Current EOL 2026-04-30)** - `sykescottages/node:20`
- **v20.18.3 (LTS Active EOL 2026-04-30)** - `sykescottages/node:20`
- v21.7.3 (Deprecated) - `sykescottages/node:21`
- **v22.14.0 (Current EOL 2027-04-30)** - `sykescottages/node:22`
- **v23.9.0 (Current EOL 2025-04-30)** - `sykescottages/node:23`
- **v22.14.0 (LTS Active EOL 2027-04-30)** - `sykescottages/node:22`
- v23.9.0 (Deprecated) - `sykescottages/node:23`
- **v24.11.1 (LTS Current EOL 2028-04-30)** - `sykescottages/node:24`
- **v25.2.1 (Current)** - `sykescottages/node:25`

## Image Itinerary

Expand Down