Public Repository

Last pushed: 2 years ago
Short Description
node server with vars to quick start and develop
Full Description

Image for quickstarting nodeapps from volume or GIT with regular "node" or "nodemon" . You can also choose a specific git release/tag to start.

Example 1:

docker run -it -e "APP_NAME=server.js" -e "GIT=https://github.com/mmbash/mops.io" -e "GIT_TAG=v0.6.1" -p 3000:3000 mikemichel/node-easy /bin/sh /tmp/gitmon.sh

This does:

Example 2:

docker run -it  -e "APP_NAME=app.js"  -v /media/apps/express-chat:/myapp mikemichel/node-easy /bin/sh /tmp/nodemon.sh

This does:

  • mounts your local volume /media/apps/express-chat to the containers /myapp directory
  • cd /myapp
  • npm install
  • nodemon app.js

ENV:

APP_NAME= which file to start with node/nodemon
GIT= GIT URL to clone when you use ./tmp/gitmon.sh
GIT_TAG= which git release you want to start

CMD

  • /tmp/node.sh: for "nodejs APP_NAME"
  • /tmp/nodemon.sh: for "nodemon APP_NAME"
  • /tmp/gitmon.sh: for git clone GIT and "nodemon APP_NAME"
  • /tmp/npmstart.sh: for "GIT Clone, npm install, npm start"
Docker Pull Command
Owner
mikemichel