If you don't already have Docker Engine and Docker Compose, you need to install them before following these steps.
For installing docker engine and docker compose on a Raspberry Pi 3, you can use the following script:
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.
Download from here and copy to the current directory. It can also be downloaded with the following command:
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:
You should now be able to access the API of the OFW with http://raspberry_ip_address:8080/v1/ui.
To start the containers in background (detached mode), stop the containers with Ctrl+C (or
docker-compose down if that was aborted) and run the following instead:
4.Reading the logs
If you want to read the logs from OFW, just enter the following command:
5. Stopping the containers
To stop all containers: