GithubHelp home page GithubHelp logo

npme-docker's Introduction

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.

npme-docker's People

Contributors

bcoe avatar ekristen avatar linclark avatar mmalecki avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.