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

Separate competition setup from base provisioning #10

Open
slifty opened this issue Mar 26, 2021 · 1 comment
Open

Separate competition setup from base provisioning #10

slifty opened this issue Mar 26, 2021 · 1 comment

Comments

@slifty
Copy link
Contributor

slifty commented Mar 26, 2021

Lets allow a developer to choose which competitions to set up, using provisioning script tags.

This way someone who only needs a specific competition (or no competition) doesn't have to wait for everything.

This also will make it possible to set up new competitions without having to blow away the existing local build.

@slifty
Copy link
Contributor Author

slifty commented Mar 31, 2021

Instead of requiring a code change for setting up new competitions I think we should have a "setup_competition" provisioning script which takes in a named parameter -- maybe using https://stackoverflow.com/questions/14124234/how-to-pass-parameter-on-vagrant-up-and-have-it-in-the-scope-of-vagrantfile

We should also have a "run_etl" which also takes in a --competition=??? parameter

This way we can run something like vagrant provision --provision-with competition_setup --competition=Climate2030

I may discover that best practice is for things like etl happening inside the guest with a shell script instead of as a provisioning script, but at the very least I think competition setup makes sense as a named provisioning script

slifty added a commit that referenced this issue Mar 31, 2021
This adds two new competitions.

As discussed in #10 we need to move this logic out of the provisioning
script and into a more generic script, but in the mean time this will
do.
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

No branches or pull requests

1 participant