Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Deploy node.js apps on docker hosts.
Before you start, you may want to read about the motives behind Dockship in my recent blogpost:
http://braindump.ghost.io/meet-dockship/
npm install dockship -g
$ dockship
Usage: dockship command [options]
Options:
-h, --help output usage information
-V, --version output the version number
status Status of running applications
list List deployed applications
push <appname> Push a new application
start <appname> Start the application
stop <appname> Stop the application, also takes --all
purge <appname> Purge application
-p, --port <port> Optional host port, defaults to 4243
-h, --host <host> Optional host address, defaults to http://127.0.0.1
┌──────────────┬────────────────────────────────────────┐
│ id │ name │
├──────────────┼────────────────────────────────────────┤
│ 34d81953888c │ superapp:latest │
└──────────────┴────────────────────────────────────────┘
$ dockship start superapp:latest
Started: 5e9f186e931e
$ dockship stop superapp:latest
Stopped: 5e9f186e931e
$ dockship push superapp
a .
a ./app.js
a ./Dockerfile
a ./package.json
Step 1 : FROM ubuntu:precise
---> 8dbd9e392a96
Step 2 : MAINTAINER Sascha Reuter
---> Using cache
---> 1a479c14b8bf
Step 3 : RUN apt-get install -y python-software-properties python
---> Using cache
---> f4791bc909d3
Step 4 : RUN add-apt-repository ppa:chris-lea/node.js
---> Using cache
---> e660eec930ec
Step 5 : RUN echo "deb http://us.archive.ubuntu.com/ubuntu/ precise universe" >> /etc/apt/sources.list
---> Using cache
---> 6e0b66f1073d
Step 6 : RUN apt-get update
---> Using cache
---> d9fc6ff57980
Step 7 : RUN apt-get install -y nodejs
---> Using cache
---> 3eacec1174ba
Step 8 : RUN mkdir /var/www
---> Using cache
---> 93b969629608
Step 9 : EXPOSE 8080
---> Running in 2b897219c3a4
---> 62eb23aeffaa
Step 10 : ADD ./ /var/www/
---> 2277aa64d91f
Step 11 : CMD ["/usr/bin/node", "/var/www/app.js"]
---> Running in d69128319942
---> bd08be6ae92f
Successfully built bd08be6ae92f
FAQs
Deploy node.js apps on docker hosts
The npm package dockship receives a total of 1 weekly downloads. As such, dockship popularity was classified as not popular.
We found that dockship demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.