Closed iros closed 6 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.
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.
@iros Sorry for the delay on this. LGTM!
Please review Here to keep track of progress and todo items.
Making many deployment improvements such as:
cred.json
and then just use it, but it seems inconsistent (plus once we move it once, we never remove it).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.