... | ... | @@ -52,4 +52,18 @@ This command will download the latest Docker Image named *forecaster_toolbox* fr |
|
|
sudo docker run -it --name forecaster-toolbox-test -p 5000:5000 forecaster_toolbox
|
|
|
```
|
|
|
This command will generate and run a Docker Container named *forecaster-toolbox-test* in interactive session mode, i.e. it will open a command promt inside the Container.
|
|
|
- **Step 3**: To start the server, use the command promt inside the running Container and execute the commands described in section [Run Server](Forecaster Toolbox Run Server). |
|
|
\ No newline at end of file |
|
|
- **Step 3**: To start the server, use the command promt inside the running Container and execute the commands described in section [Run Server](Forecaster Toolbox Run Server).
|
|
|
|
|
|
## Installation of the Database
|
|
|
|
|
|
Since the TD, Energy and Dependability forecasts are produced "on the fly", the Forecasting Toolbox does not require a running database instance to be functional. However, in case you require access to previously produced forecasting results, a database dedicated to store the output of the Forecasting web services might be of help. In that case, MongoDB is a well-suited option for the purposes of the Forecasting Toolbox.
|
|
|
|
|
|
To quickly install a MongoDB using Docker, open cmd and execute the following command:
|
|
|
```bash
|
|
|
sudo docker run --detach \
|
|
|
-p 27017:27017 \
|
|
|
--name mongodb \
|
|
|
--volume /home/<user_name>/Desktop/mongo_data:/data/db \
|
|
|
mongo
|
|
|
```
|
|
|
This command will generate and run a MongoDB Docker Container named *mongodb*, which will serve as the Forecasting Toolbox dedicated DB. |
|
|
\ No newline at end of file |