-
Notifications
You must be signed in to change notification settings - Fork 162
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
Use pre-built images for nginx & service containers #895
base: next
Are you sure you want to change the base?
Conversation
This reverts commit 1fc807b.
Nice! We can automate substituting in the tagged version in the docker compose file and then tag that commit. 👍 @matthew-white what do you think about running a script to release? The tag would then show up in Github and we could write the release notes there as usual. I thought briefly about moving that functionality to the release Github action but that won't quite work -- we want to tag the commit that makes the change to the yml file. I think we'll want to add some documentation on how to make code edits to frontend and backend since that will now require changes to the docker compose file as well. It's not something we highly recommend but it was easy in the past and we know some people do it. We'll need to build from local source for the staging server. Maybe we could consider conditionally building or using an image based on a setting (could be a follow-up PR)? |
I'd be OK with running a script. 👍 However, I don't understand yet the intended release process as a whole. Very possibly I'm just missing something. From the script, it looks like we'd run the script on the |
I think this is also something that we'd need to do on the QA/test server during regression testing. |
Related to #677
What's changed?
docker-compose.yml
now referencesservice
andnginx
containers by specific version numberdocker-compose.yml
. If preferred, this could be converted to documentationWhat has been done to verify that this works as intended?
docker compose build
locally, and watched the results:Why is this the best possible solution? Were any other approaches considered?
The obvious alternative was to keep the GHCR workflow in its own YAML file. It should then be possible to control the triggering of that workflow via "workflow dispatch" (https://docs.github.com/en/actions/writing-workflows/choosing-when-your-workflow-runs/events-that-trigger-workflows#workflow_run). However, this approach is very hard to reason about and debug, and I did not get it working. The main benefit seems to be keeping code separate, but this doesn't seem worth the effort of getting it working. If modularising the build yml become a priority, alternative approaches can be reconsidered.
How does this change affect users? Describe intentional changes to behavior and behavior that could have accidentally been affected by code changes. In other words, what are the regression risks?
Does this change require updates to documentation? If so, please file an issue here and include the link below.
I don't think so?
Before submitting this PR, please make sure you have:
next
branch OR only changed documentation/infrastructure (master
is stable and used in production)