ekristen / npme-docker

A docker container for npm Enterprise.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npme Docker Image

run npm Enterprise in a Docker container.

Running npm Enterprise as a container

  1. clone this repo.
  2. visit https://www.npmjs.org/enterprise, and signup for a license.
  3. 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.
  1. build the docker image: docker build -t npme ..
  2. 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!

Running npm Enterprise as an Interactive Container

  1. rather than running docker run -p 8080:8080 -t npme, run:

docker run -i -p 8080:8080 -t npme bash

  1. to start up npm Enterprise, run:
  2. cd /etc/npme
  3. run: service redis-server start | service nginx start | couchdb | npme restart | tail -f ./logs/*
  4. to experiment with configuration changes:
  5. edit /etc/npme/service.json.
  6. run generate-scripts.
  7. start npm Enterprise (service redis-server start | service nginx start | couchdb | npme restart | tail -f ./logs/*).

Tips and Tricks

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.

License

(c) 2014 - npm, Inc. See LICENSE.txt for details.

About

A docker container for npm Enterprise.

License:Other


Languages

Language:JavaScript 67.1%Language:Shell 32.9%