Difference between revisions of "Docker Image for developing"

From ESS-WIKI
Jump to: navigation, search
Line 16: Line 16:
 
  2.15.9
 
  2.15.9
  
= Run into bash =
+
= Enter to bash =
  
 
  sudo docker exec -it eis_api_dev bash
 
  sudo docker exec -it eis_api_dev bash

Revision as of 06:49, 4 November 2016

Setup a Docker Image for developing NodeJS RESTfful API

mkdir a folder ex: EISRestfulAPI
git clone https://github.com/ericliang12345/EISRestfulAPI_Dockerfile.git
sudo docker build -t eis/restapi_dev .

Run a Docker Container

sudo docker run -it --name eis_api_dev -v $PWD:/home/adv:rw -p 3000:3000 eis/restapi_dev

Check Version of NPM & NodeJS

$nodejs -v
v4.6.0
$npm -v
2.15.9

Enter to bash

sudo docker exec -it eis_api_dev bash