Settings specific to a single event are stored in an instance/ directory which is not tracked by git.
Create this directory in the root project directory and then create the file instance/config.py.
This will store any event-specific settings.
The examples/ directory contains files for example event settings.
Copy and paste the contents of one of these files into instance/config.py to use these settings.
Currently, our dockerfile creates an image for a container that freezes the basic flask app and then runs a server using the frozen files.
To build the image:
- Navigate to your project directory.
- Copy
DOIRootCA2.cerinto this directory. - Run
docker build --build-arg config=examples/iowa.py --build-arg ref=examples/reference.json --build-arg thumbnail=true -t flood:latest -f Dockerfile-DOI .. This will create the docker image and name itflood. If you are building the image off of the DOI network, you will need to specify Dockerfile rather than Dockerfile-DOI in the above command
To run a container based on the image:
docker run --rm -dp 80:80 -t flood:latest. This will create a docker container from thefloodimage
Once this is done, 127.0.0.1 should take you to the example page.