Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow configuring job overrides #34

Merged
merged 3 commits into from Nov 2, 2018

Conversation

zerebubuth
Copy link
Member

Allow overrides to be passed into cron.py (i.e: from CodeBuild) and which are passed through to the Batch job environment, which can override the configuration file built into the Docker container. For example, if we wanted to override the meta-batch S3 store name (i.e: bucket), then we could set the JOB_ENV_OVERRIDES environment variable to:

META_BATCH__TILEQUEUE__STORE__NAME=whatever

This allows us to make some small config changes on a run-by-run basis, and means that we don't have to fork the tileops repo to do it.

This means that setting an environment variable at Codebuild can override the environment in the Batch job definition, and hence the configuration file in the Batch jobs which run various stages.

For example, if we wanted to override the S3 bucket name used for the meta-batch stage, then we could set:

`META_BATCH__TILEQUEUE__STORE__NAME=whatever`

This allows for lightweight tweaking of the configuration for a particular run, without the heavyweight approach of forking the whole `tileops` repo to change a few variables.
@zerebubuth zerebubuth merged commit 2ed3522 into master Nov 2, 2018
@zerebubuth zerebubuth deleted the zerebubuth/allow-configuring-job-overrides branch November 2, 2018 18:25
@zerebubuth zerebubuth restored the zerebubuth/allow-configuring-job-overrides branch November 7, 2018 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants