Page MenuHomePhabricator

install Node.js in the base image used by the MW chart
Closed, ResolvedPublic2 Estimated Story Points

Assigned To
Authored By
jnuche
Feb 18 2025, 12:11 PM
Referenced Files
F58476563: image.png
Feb 24 2025, 12:25 PM
F58416165: image.png
Feb 18 2025, 12:11 PM
Subscribers

Description

Running an MW env installation we can see that the step that installs node takes a significant amount of time (around 1 minute on my local machine).

Moving this installation to the base image that the init container uses, should make our installs much faster. I could verify this locally:

image.png (51×978 px, 16 KB)

Related to T384059

Event Timeline

jnuche set the point value for this task to 2.Feb 19 2025, 3:39 PM

The image publishing didn't work. By using an image that's not in docker-registry.wikimedia.org it triggered a bug in the buildkitd version we are using: T386947

None of the node18 images available in the official registry is usable by us (they are based off bookworm and we need buster). So in the end probably we'll have to resort to creating an image with docker-pkg ala https://gitlab.wikimedia.org/repos/releng/dev-images/-/tree/main

Deployed to prod. With just these change, a Wikimedia preset env got created in 2m 35s:

image.png (120×568 px, 11 KB)