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.
2. Get the docker-compose script
Download the docker compose script and copy it to the created directory.
curl -O https://code.linksmart.eu/projects/SPF/repos/optimization-framework/raw/profess/docker-compose-amd.yml
3. Run docker-compose script
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:
docker-compose -f docker-compose-amd.yml up -d
4. Reading the logs
If you want to read the logs from OFW, just enter the following command:
docker logs ofw
5. Stopping the containers
To stop all containers:
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.