Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 1.44 KB

README.md

File metadata and controls

26 lines (19 loc) · 1.44 KB

active-flood-viz

Build Status

Configuration Files

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.

Docker Instructions

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:

  1. Navigate to your project directory.
  2. Copy DOIRootCA2.cer into this directory.
  3. 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 it flood. 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:

  1. docker run --rm -dp 80:80 -t flood:latest. This will create a docker container from the flood image

Once this is done, 127.0.0.1 should take you to the example page.