npm/npmo-docker-compose

Name: npmo-docker-compose

Owner: npm

Description: run npm on-site using docker compose.

Created: 2015-11-11 17:13:21.0

Updated: 2018-02-23 15:45:34.0

Pushed: 2016-09-07 21:09:54.0

Homepage: null

Size: 56

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

npmo-docker

A docker setup for npmo, split into three main components:

Note: Only works locally, very WIP.

Requirements

License Setup

Install with Node.js/NPM

If you have node.js installed in your environment, then you can setup as follows:

m install
m run configure
Install with Docker

If your host has access to the internet and registry.npmjs.com.

cker build -t configure -f ./Dockerfile.configure .
cker build --build-arg HTTP_PROXY=$HTTP_PROXY -t licensesetup -f ./Dockerfile.configure .
Run Configuration
cker run --name license_verify -ti --rm -e HTTP_PROXY=$HTTP_PROXY licensesetup bash
@050a2795bc15:/usr/src/app#

At this point, you are placed at the container terminal where you can run npm run configure to setup the license.

@050a2795bc15:/usr/src/app# npm run configure
info it worked if it ends with ok
info using npm@2.14.7
info using node@v4.2.2
info preconfigure npmo-docker@1.0.0
info configure npmo-docker@1.0.0

mo-docker@1.0.0 configure /usr/src/app
bin/npme-docker-compose.js configure

ter your billing email TYPE_YOUR_EMAIL
ter your license key PASTE_YOUR_LICENSE
e full front-facing URL of your registry REGISTRY_URL
oxy URL for outbound requests (optional) HTTP_PROXY
you can now go ahead and run `npm run up`
info postconfigure npmo-docker@1.0.0
info ok

After you finish, you can detach from the container pressing CTRL+P and CTRL+Q.

Copy License

You confirm and copy the license.

cker diff license_verify
sr
sr/src
sr/src/app
sr/src/app/roles
sr/src/app/roles/registry
sr/src/app/roles/registry/files
sr/src/app/roles/registry/files/.license.json
sr/src/app/.env
sr/src/app/npm-debug.log

cker cp license_verify:/usr/src/app/roles/registry/files/.license.json roles/registry/files/

This will copy the license to the appropriate directory. You can now run the services!

cker-compose up

This will start the docker instances.

You should now be able to login:

m login --registry=http://$(docker-machine ip $DOCKER_MACHINE_NAME):8080 --scope=local

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.