-
Notifications
You must be signed in to change notification settings - Fork 0
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
mrc-6066 Initial deploy tool #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unless there's something specific in here to check, this looks reasonable and tidy and should be straightforward to update as we expand things.
packit_servers: | ||
reside: | ||
url: https://packit.dide.ic.ac.uk/reside/ | ||
datasets: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this looks great
Python deploy tool which downloads tile database files from configured packit files, and runs the grout container. Does not include a proxy. See the README for further implementation details.
I've included quite a basic
refresh-all
flag, instructing the tool to re-download all data files, even the ones it thinks it already has. Without the flag, it only downloads files which are missing. It would probably be more usual to want to replace particular datasets - in that case you'd probably just delete the local files in question before running the deployment.I've also taken the somewhat cautious approach of replacing the files one-by-one when refreshing all rather than just blitzing the whole data directory from the start, so if things all go wrong at least you'll still have some data available.
Integration test and incomplete unit tests included, but not coverage.
This branch has been deployed to bots, replacing the poc container that was running there. The metadata endpoint can be accessed here: https://mrcdata.dide.ic.ac.uk/grout/metadata
The single dataset configured here is the arbomap countries dataset - a future branch will add the full gadm41 country set.