Page MenuHomePhabricator

docker-registry.wikimedia.org/nodejs10-devel container after 0.0.3 does not include `npm`
Closed, ResolvedPublicBUG REPORT

Description

  • The docker-registry.wikimedia.org/nodejs10-devel:0.0.3 container includes the npm command as expected.
  • The 0.0.3-20210704 tagged container does not.

@Legoktm poked around a bit after I asked about this on IRC and it looks like the upstream nodejs v10 package from nodesource may have changed and removed npm as an included binary.

The before and after brokenness can be seen in CI tests for https://gerrit.wikimedia.org/r/c/wikimedia/toolhub/+/702451/ on PS4

Event Timeline

For some reason it's now installing nodejs from stretch-wikimedia (6.11.0~dfsg-1+wmf5) instead of nodesource. Should be fixable with some apt pinning.

Legoktm renamed this task from docker-registry.wikimedia.org/nodejs10-devel container after 0.0.2 does not include `npm` to docker-registry.wikimedia.org/nodejs10-devel container after 0.0.3 does not include `npm`.Jul 5 2021, 5:04 PM
Legoktm updated the task description. (Show Details)

Change 703221 had a related patch set uploaded (by BryanDavis; author: Bryan Davis):

[wikimedia/toolhub@main] HACK: work around nodejs10-devel image problems with pinning

https://gerrit.wikimedia.org/r/703221

bd808 moved this task from Backlog to Radar on the Toolhub board.

Change 703222 had a related patch set uploaded (by Legoktm; author: Legoktm):

[operations/docker-images/production-images@master] nodejs10-devel/stretch: Pin apt so nodejs is installed from nodesource

https://gerrit.wikimedia.org/r/703222

Change 703221 merged by jenkins-bot:

[wikimedia/toolhub@main] HACK: work around nodejs10-devel image problems with pinning

https://gerrit.wikimedia.org/r/703221

Change 703222 merged by Legoktm:

[operations/docker-images/production-images@master] nodejs10-devel/stretch: Pin apt so nodejs is installed from nodesource

https://gerrit.wikimedia.org/r/703222

Mentioned in SAL (#wikimedia-operations) [2021-07-05T17:40:42Z] <legoktm> published fixed docker-registry.discovery.wmnet/nodejs10-devel:0.0.4 image (T286212)

Change 703230 had a related patch set uploaded (by Legoktm; author: Legoktm):

[wikimedia/toolhub@main] Revert "HACK: work around nodejs10-devel image problems with pinning"

https://gerrit.wikimedia.org/r/703230

km@cashew ~> podman run --rm -it --entrypoint=bash docker-registry.wikimedia.org/nodejs10-devel:latest
Trying to pull docker-registry.wikimedia.org/nodejs10-devel:latest...
Getting image source signatures
Copying blob 29565bcd8f38 skipped: already exists  
Copying blob 498c9ca409d0 done  
Copying blob 10394a432ff5 done  
Copying blob b98c91482f12 done  
Copying config f272f68524 done  
Writing manifest to image destination
Storing signatures
root@6ebc727b662c:/# nodejs --version
v10.24.1
root@6ebc727b662c:/# npm --version
6.14.12

Change 703230 merged by jenkins-bot:

[wikimedia/toolhub@main] Revert "HACK: work around nodejs10-devel image problems with pinning"

https://gerrit.wikimedia.org/r/703230

For the record, the pinning preferring wikimedia packages was fixed last year, causing this effect.