... | @@ -15,27 +15,14 @@ In order to pull it from DockerHub you need to execute the following command on |
... | @@ -15,27 +15,14 @@ In order to pull it from DockerHub you need to execute the following command on |
|
sudo docker pull iliakalo/vp-tool:latest
|
|
sudo docker pull iliakalo/vp-tool:latest
|
|
~~~
|
|
~~~
|
|
|
|
|
|
In order to create a Docker Container, you need to execute the following command on your terminal:
|
|
In order to create a Docker Container named *vp-tool* and run it, you need to execute the following command on your terminal:
|
|
|
|
|
|
~~~
|
|
~~~
|
|
sudo docker run -it --name vp-tool -p 5002:5002 iliakalo/vp-tool bash
|
|
sudo docker run -it --name vp-tool -p 5002:5002 iliakalo/vp-tool:latest bash -c "python vp_service.py DB_IP DB_PORT; bash"
|
|
~~~
|
|
|
|
|
|
|
|
This command will generate and run a Docker Container named *vp-tool* in interactive session mode, i.e. it will open a command prompt inside the Container.
|
|
|
|
|
|
|
|
To start the server, use the command prompt inside the running Container and execute the following command:
|
|
|
|
|
|
|
|
~~~
|
|
|
|
python vp_service.py DB_IP DB_PORT
|
|
|
|
~~~
|
|
~~~
|
|
|
|
|
|
,where DB_IP= IP of the MongoDB and DB_PORT= PORT of the MongoDB.
|
|
,where DB_IP= IP of the MongoDB and DB_PORT= PORT of the MongoDB.
|
|
|
|
|
|
These two steps could embed into the following one:
|
|
|
|
~~~
|
|
|
|
sudo docker run -it --name vp-tool -p 5002:5002 iliakalo/vp-tool:latest bash -c "python vp_service.py DB_IP DB_PORT; bash"
|
|
|
|
~~~
|
|
|
|
|
|
|
|
The services will reside at the following end point:
|
|
The services will reside at the following end point:
|
|
~~~
|
|
~~~
|
|
<your_local_host_ip>:5002
|
|
<your_local_host_ip>:5002
|
... | | ... | |