Skip to content

Use the Docker image

Michal Migurski edited this page Mar 3, 2017 · 29 revisions

CA-Alerts has been deployed into a Docker container. Follow these instructions to run the application from the container.

Dependencies:

  • A Github account
  • Docker for your appropriate platform
  • A funded and appropriately configured Twilio account to support sending SMS messages
  • A funded and appropriately configured Mailgun account to support sending emails
  1. Git clone VeryLittleGravitas/CDTADPQ to a local directory:

     $ git clone https://github.com/VeryLittleGravitas/CDTADPQ
     $ cd CDTADPQ
    
  2. Create a Docker image:

     $ docker build -t ca-alerts .
    
  3. Check that the image exists:

     $ docker images
    
  4. The command should return something like this:

     REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE  
     ca-alerts           latest              25442027c068        1 minute ago        469 MB
    
  5. Rename the docker-env-vars file in the root of the repo to env-vars, with configuration settings described here.

  6. Run the docker image

     $ docker run --env-file env-vars ca-alerts honcho start