|
|
# Dependability Toolbox - Execution as a Microservice
|
|
|
|
|
|
In this wiki page we describe how the Dependability Toolbox can be used as an individual Microservice. More specifically, we describe how the three services that it provides (i.e., Quantitative Security Assessment, Vulnerability Prediction, and Optimum Checkpoint Interval Recommendation) can be invoked, whereas intuitive examples are also provided, in an attempt to facilitate the understanding.
|
|
|
|
|
|
## Execution of the Docker Container
|
|
|
|
|
|
Having the Docker Container of the Dependability Toolbox previously installed on your local machine (see the [Installation](dependability-toolbox-instllation) page for more information), it can be started, paused, and stopped using common Docker commands. or your convenience, some indicative commands are provided in this section. First of all, in order to start the Dependability Toolbox docker container, you need to execute the following commands on your terminal:
|
|
|
|
|
|
~~~
|
|
|
docker start dependability-toolbox
|
|
|
docker exec -it dependability-toolbox ./startup.sh
|
|
|
~~~
|
|
|
|
|
|
The first command starts the docker container of the Dependability Toolbox, whereas the second one starts the Tomcat Server that hosts the three services of the toolbox. As described in the previous section, if it is necessary to view the console of the Tomcat Server (e.g., for debugging purposes), in the second command you need to replace the "./startup.sh" parameter with "./catalina.sh run".
|
|
|
|
|
|
In order to stop the Dependability Toolbox container, you need to execute the following command:
|
|
|
|
|
|
~~~
|
|
|
docker stop dependability-toolbox
|
|
|
~~~
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|