Skip to content

jameeters/active-flood-viz

 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 56.1%
  • JavaScript 30.8%
  • HTML 8.6%
  • CSS 2.9%
  • Nginx 1.6%