ReleaseEngineering/How To/Mirror NPM Packages

From MozillaWiki
Jump to: navigation, search

http://npm-mirror.pub.build.mozilla.org is a mirror of NPM packages that are used in build and test automation.

When the time comes to add more files to this mirror, you'll need to know which package's dependencies need to be mirrored. The requester should point you at a package.json file (a manifest).

login to the releng web cluster admin host (relengwebadm.private.scl3.mozilla.com), sudo to root, and

 cd /data/releng/src/npm-mirror
 # download the manifest the requester pointed you at
 curl -o /tmp/package.json https://raw.github.com/mozilla-b2g/gaia/master/package.json
 ./mirror.sh /tmp/package.json

You should see it downloading a mess of packages. That's it!