Docker Image for npm
Docker Versions: >=0.6.5 <0.8.0
This image can be built by running the following docker command:
docker build -t npmjs github.com/terinjokes/docker-npmjs
You can build from a git tag by appending a ref to the above URL. For example
After building the image, a container can be spawned.
Providing the vhost (via the
-h) options, as well as exposing the ports (
-p) is required to use this image.
docker run -d -h npmjs.intranet -p=5984:5984 -p=1337:1337 npmjs
Kappa is exposed on port 1337, and will delegate requests to either your local registry or the public fallback. You'll want to change your default registry via:
npm config set registry http://npmjs.intranet:1337/
Kappa is configured to be read-write to the local registry. To use the public registry use the
--registry flag to npm.
npm --registry https://registry.npmjs.org/ adduser npm --registry https://registry.npmjs.org/ publish