m-lab / mlab-vis-api

API component of New and Exciting visualization collaboration with Measurement Lab
MIT License
2 stars 4 forks source link

Deployment improvements #29

Closed iros closed 6 years ago

iros commented 7 years ago

Please review Here to keep track of progress and todo items.

Making many deployment improvements such as:

README.md is updated as I go. You can setup and run a local server more easily now using Docker. Changed from local run environment to Docker due to challenges deploying a flex python environment (which now requires a Dockerfile). Switched to custom runtime.

iros commented 7 years ago

Examples: Deployment:

KEY_FILE=../mlab-keys/mlab-sandbox-pipeline-bigtable\@mlab-sandbox.iam.gserviceaccount.com-creds.json ./deploy.sh sandbox

Local run:

docker build -t mlab-vis-api .
docker run -p 8080:8080 -e API_MODE=production mlab-vis-api

Note that your cred.json file should match the API_MODE (for project id etc.)

I'd really love to get rid of this cred.json file, so I'm going to investigate that next time.

iros commented 6 years ago

Simplified the credential passing. Now mounting a volume for local docker running/testing, and copying KEY_FILE temporarily for deployment. Also changed local test routine to use a test docker container.

critzo commented 6 years ago

@iros Sorry for the delay on this. LGTM!