This is a very simple, bare-bones NodeJS project created for you to use with Docker and setup a Continous Integration pipeline with Travis-CI. We also learn how to specify environment variables (Docker Username, Password, and custom env. variables)
- Install dependencies:
npm install
- Run server:
node server.js
- Build image:
docker build .
- Run container with image:
docker run {image_id}
whereimage_id
can be retrieved by runningdocker images
and found under the columnIMAGE ID
- Remove container:
docker kill {container_id}
wherecontainer_id
can be retrieved by runningdocker ps
and found under the columnCONTAINER ID