... | @@ -5,9 +5,28 @@ Initially, information is provided on how to deploy a Docker Container, using th |
... | @@ -5,9 +5,28 @@ Initially, information is provided on how to deploy a Docker Container, using th |
|
|
|
|
|
# Installation
|
|
# Installation
|
|
|
|
|
|
### Prerequisite
|
|
|
|
|
|
|
|
The only prerequisite for the installation of the VP mechanism is to have the latest version of [Docker](https://www.docker.com/) installed and running on your local machine.
|
|
The only prerequisite for the installation of the VP mechanism is to have the latest version of [Docker](https://www.docker.com/) installed and running on your local machine.
|
|
|
|
|
|
|
|
The VP Docker image is available for download on [DockerHub](https://hub.docker.com/repository/docker/iliakalo/vp-tool). In order to install it locally, you need to pull it from DockerHub and then to create a Docker Container from this image.
|
|
|
|
|
|
|
|
In order to pull it from DockerHub you need to execute (with sudo) the following command on your terminal:
|
|
|
|
|
|
|
|
~~~
|
|
|
|
docker pull iliakalo/vp-tool:latest
|
|
|
|
~~~
|
|
|
|
|
|
|
|
In order to create a Docker Container, you need to execute the following command on your terminal:
|
|
|
|
|
|
|
|
~~~
|
|
|
|
sudo docker run -it --name vp-tool -p 5002:5002 iliakalo/vp-tool 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
|
|
|
|
~~~
|
|
|
|
|
|
|
|
|