/Travis_CI_Demo

Configure Travis with Git and Docker - Exerise

Primary LanguageDockerfile

Overview

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)

Local Setup

  • Install dependencies: npm install
  • Run server: node server.js

Container Setup

  • Build image: docker build .
  • Run container with image: docker run {image_id} where image_id can be retrieved by running docker images and found under the column IMAGE ID

Container teardown

  • Remove container: docker kill {container_id} where container_id can be retrieved by running docker ps and found under the column CONTAINER ID