Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
#windowsComputer
#windowsComputer


If you don't already have Docker Engine and Docker Compose, you need to install them before following these steps. 

...

Install Docker for Windows

1. Create and enter a directory

Create a directory with the name of your election.

Code Block
themeEclipse
mkdir NameOfFile

2. Get the docker-compose script

Download the docker compose script and copy it to the created directory.

...

Code Block
themeEclipse
curl -O https://code.linksmart.eu/projects/SPF/repos/optimization-framework/raw/profess/docker-compose-amd.yml

3. Run docker-compose script

The docker-compose script creates and runs containers for OFW, predictions and redisdb. By default, the containers store their data in a directory named docker in the current directory. 
Enter the following command from the current directory:

...

Code Block
themeEclipse
docker-compose -f docker-compose-amd.yml up -d

4.
Anchor
#logs
#logs
Reading the logs

If you want to read the logs from OFW, just enter the following command:

Code Block
themeEclipse
docker logs ofw

5. Stopping the containers

To stop all containers:

Code Block
themeEclipse
docker-compose -f docker-compose-amd.yml down

5. Getting started with OFW

The next steps are related to the registry of inputs and outputs and the start of the framework. You can find information in API description or in Tutorial.