-
Notifications
You must be signed in to change notification settings - Fork 16
Move root-level docker files into docker/ subdir #877
Conversation
@seanpreston Dockerfile.worker and Dockerfile.app seem to be practically identical, am I overlooking something? Otherwise I think they could be a single file and leverage build stages for the slight variation? |
nevermind I already compared by eye and did it, all seems working 🤷 |
@conceptualshark can you help me update the docs for this change? thank you! 🙏 |
mssql, mysql, maria and mongo all have tests that are failing. Trying to figure out what I did to break those |
sidenote that it takes a really long time to run tests, which definitely slows down dev time here |
@sanders41 this is ready for a review, I figure you're a good choice for this since its a lot of Docker/infra changes |
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.
Good find on the volume issue @ThomasLaPiana
@seanpreston once we have this ready do you want us to wait to merge until after the release today?
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.
I think most of the way these changes are referenced in the docs should stay the same - they're either referencing docker compose up
or various make
commands which haven't changed at that level. Did a brief sanity check making sure the commonly referenced commands do what they should and it looks good to me.
Is there anything else you think is missing?
Co-authored-by: Paul Sanders <[email protected]>
Co-authored-by: Paul Sanders <[email protected]>
nope! Just wanted to confirm I wasn't missing anything, thank you! |
@sanders41 ready for another check |
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.
lgtm
We'll just wait to merge until after today release goes out.
* Move root-level docker files into docker/ subdir * move all of the compose files * remove root aux compose files, refactor away the no-db and worker compose files * unify the app and worker dockerfiles into a single file that leverages build stages * move python scripts into a subdir, fix paths in compose integration files * fix the script tests * use python sleep instead of system sleep, fix script paths * remove the analytics_id that accicentally got committed * updated changelog * move the sample sql data to a subdir of docker/ so it can be mounted * update the teardown command and fix the integration files * fix more path typos * more desperate tweaks * fix mysql/mariadb/mongo tests * added an additional build step if mssql not there, all tests passing * fix an accidental lowercasing * Apply suggestions from code review Co-authored-by: Paul Sanders <[email protected]> * Update CHANGELOG.md Co-authored-by: Paul Sanders <[email protected]> Co-authored-by: Paul Sanders <[email protected]> Co-authored-by: Paul Sanders <[email protected]>
Purpose
I thought there were too many files at the root level. I also saw some opportunities for refactoring a few of the docker-related files
Changes
Dockerfile.app
andDockerfile.worker
into a single Dockerfile with different build targets for each purpose (they overlapped 99%)docker-compose.no-db.yml
file since the same thing can be accomplished using existing docker compose command line optionsdocker-compose.worker.yml
.py
scripts at the root level intoscripts/
scripts/
scripts/run_infrastructure.py
to use the pythonsleep
instead of the shellsleep
(windows interop)Checklist
CHANGELOG.md
fileCHANGELOG.md
file is being appended toUnreleased
section in an appropriate category. Add a new category from the list at the top of the file if the needed one isn't already there.Run Unsafe PR Checks
label has been applied, and checks have passed, if this PR touches any external servicesTicket
Fixes #