Skip to content
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

feat: use node v20.12.1 and node-slim image instead of alpine #205

Merged
merged 1 commit into from Apr 9, 2024

Conversation

codfish
Copy link
Owner

@codfish codfish commented Apr 9, 2024

Fixes #204

Description

https://www.google.com/search?q=Alpine+image+DNS+issues&oq=Alpine+image+DNS+issues&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIKCAEQABiABBiiBDIKCAIQABiABBiiBNIBBzE1OWowajeoAgCwAgA&sourceid=chrome&ie=UTF-8#ip=1

Been brought to my attention by devops coworkers that alpine comes with a lot of gotchas and we've seen DNS issues with self-hosted runners using alpine.

In an effort to mitigate the risk of any number of unknown edge cases while still achieving a large image size reduction, I'm updating the image to node's official slim variant instead of alpine (and bumping to 20.12.1 while I'm at it)

CC @rdash99

REPOSITORY SIZE
node-alpine-sans-git 281MB
node-alpine-git 292MB
node-slim-sans-git 348MB
node-slim-git-cleaned-up (using --no-install-recommends, rm -rf /var/lib/apt/lists/* 442MB
node-slim-git 472MB
node-full 1.24GB

The two main dependencies needed are the node runtime and git, so a bit larger than alpine but still seeing a 2.8x (64.4%) size reduction with slim (1.24GB -> 439MB).

@codfish codfish force-pushed the node-version branch 4 times, most recently from 8920bc0 to b754611 Compare April 9, 2024 18:47
@codfish codfish merged commit b0e57c9 into main Apr 9, 2024
1 check passed
@codfish codfish deleted the node-version branch April 9, 2024 19:15
Copy link

github-actions bot commented Apr 9, 2024

🎉 This PR is included in version 3.3.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@codfish codfish changed the title feat: use node v20.12.1 and slim image > alpine feat: use node v20.12.1 and node-slim image instead of alpine Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alpine image DNS issues
1 participant