CeNDR
is the code used to run the Caenorhabditis elegans Natural Diversity Resource website.
docker build -t cendr .
GAE_VERSION=`cat .travis.yml | grep 'export VERSION' | cut -f 2 -d '=' | sed 's/version-//g' | awk '{gsub("-", ".", $0); print}'`
# Doesn't require rebuilding
docker run -it -v $PWD:/home/vmagent/app -e GOOGLE_APPLICATION_CREDENTIALS=client-secret.json -e APP_CONFIG=debug -e GAE_VERSION=${GAE_VERSION} --publish $PORT:$PORT cendr /bin/bash
gunicorn -b :$PORT main:app