run npm Enterprise in a Docker container.
- clone this repo.
- visit https://www.npmjs.org/enterprise, and signup for a license.
- run
npm install; npm run-script configure
.
- enter the the appropriate configuration info, including the license you just validated.
- if you'd like a more specialized installation, edit
service.json
manually.
- build the docker image:
docker build -t npme .
. - run the docker container:
docker run -p 8080:8080 -t npme
.
You should now have a functional private registry, that's all there is to it!
- rather than running
docker run -p 8080:8080 -t npme
, run:
docker run -i -p 8080:8080 -t npme bash
- to start up npm Enterprise, run:
cd /etc/npme
- run:
service redis-server start | service nginx start | couchdb | npme restart | tail -f ./logs/*
- to experiment with configuration changes:
- edit
/etc/npme/service.json
. - run
generate-scripts
. - start npm Enterprise (
service redis-server start | service nginx start | couchdb | npme restart | tail -f ./logs/*
).
On OSX I needed to open up port :8080
:
VBoxManage modifyvm "boot2docker-vm" --natpf1 "tcp-port8080,tcp,,8080,,8080";
To start a shell in a running npm Enterprise container, you can run docker exec -t -i <container-id> bash
.
(c) 2014 - npm, Inc. See LICENSE.txt for details.