Skip to content

Upgrade node-app-1, node-app-2 and caching-app to node:20-alpine - #387

Merged
shukitchan merged 1 commit into
apache:masterfrom
shukitchan:fix-node-app-base-image
Oct 26, 2026
Merged

shukitchan merged 1 commit into
apache:masterfrom
shukitchan:fix-node-app-base-image

Conversation

@shukitchan

Copy link
Copy Markdown
Contributor

Express 5.2.1 and body-parser 2.3.0 (bumped in #379 and #381) require Node >= 18, and body-parser uses optional chaining that Node 8 cannot parse. The app pods crashed on startup with "SyntaxError: Unexpected token .", which has failed the Build and Integrate workflow since #378.

Align the three images with node-app-3 and node-app-4, which already build from node:20-alpine.

Express 5.2.1 and body-parser 2.3.0 (bumped in apache#379 and apache#381) require
Node >= 18, and body-parser uses optional chaining that Node 8 cannot
parse. The app pods crashed on startup with "SyntaxError: Unexpected
token .", which has failed the Build and Integrate workflow since apache#378.

Align the three images with node-app-3 and node-app-4, which already
build from node:20-alpine.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@shukitchan
shukitchan merged commit 9d1c9c1 into apache:master Oct 26, 2026
7 checks passed
shukitchan added a commit that referenced this pull request Oct 26, 2026
The integration test setup runs curl inside the app1 and app2 pods to
smoke-test the backends before the suite starts. node:20-alpine does
not ship curl, unlike the Debian-based node:8 image used before #387,
so kubectl exec failed with 'executable file not found in $PATH' and
all 31 tests errored in setup_module.

Add curl to every Node image under k8s/images so the apps behave the
same way regardless of which one the tests exec into.

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant