Difference between revisions of "Docker Image for developing"

From ESS-WIKI
Jump to: navigation, search
Line 1: Line 1:
= Setup a Docker Image for developing NodeJS RESTfful API =
+
= MQTT BUS =
 +
<pre>sudo docker pull advigw4x86/mqtt-bus   
  
mkdir a folder ex: EISRestfulAPI
+
sudo docker run -d -it --name advigw-mqtt-bus -p 1883:1883 advigw4x86/mqtt-bus</pre>
git clone [https://github.com/ericliang12345/EISRestfulAPI_Dockerfile.git 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
+
= API-Gateway =
 +
<pre>sudo docker pull advigw4x86/api-gw
  
= Check Version of NPM & NodeJS =
+
sudo docker run -d -it --name advigw-api-gw -p 3000:3000 advigw4x86/api-gw</pre>
 
 
$nodejs -v
 
v4.6.0
 
$npm -v
 
2.15.9
 
 
 
= Enter to bash =
 
 
 
sudo docker exec -it eis_api_dev bash
 

Revision as of 05:51, 29 November 2016

MQTT BUS

sudo docker pull advigw4x86/mqtt-bus    

sudo docker run -d -it --name advigw-mqtt-bus -p 1883:1883 advigw4x86/mqtt-bus

API-Gateway

sudo docker pull advigw4x86/api-gw

sudo docker run -d -it --name advigw-api-gw -p 3000:3000 advigw4x86/api-gw