-
Notifications
You must be signed in to change notification settings - Fork 537
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
Upgrade base image to Debian bookworm #22044
Conversation
Weird, it built just fine locally... |
I ran into this error previously due to the way we are installing the mysql packages. |
This was solved on Mac by changing to |
I expected |
Interestingly enough, pkg-config is not installed in either buster or bookworm. I determined this by running container-diff analyze python:3.10-slim-buster --type=apt If you change the image to Tried it for both, and did not find it. So it must be getting installed via one of the other packages we install. You've changed the mysql package target. |
Since |
We'll need to add a test to our verify docker image step that tries to run
|
Our theory is that locally, we're using dependencies from |
Proposal:
This should
This means if you run initialize_docker or clean_docker you kill your cache and the next run should be totally fresh. |
I agree, but that wouldn't have been enough here, I wanted to keep my database contents so I wouldn't have run |
We could have the docker clean part skip the database? You could also say that the expectation is you try update_docker, if that doesn't work you can try nuking with initialize_docker. I would actually have expected initialize_docker to run "fresh" by default. |
Yeah, something along those lines sound good. As a rule anyway, when we upgrade the base image, we should clean deps completely... I am not sure this is a use-case worth automating though. |
That's why I think it should just be a command you can run arbitrarily. If you run clean_docker it will blow up everything, but for now at least we can not automatically trigger it. |
Can you rebase. |
Rebased (now contains mozilla/addons#9512 debug-toolbar fix as well) |
@diox can you include how we should consider verifying this locally? I'm sure you have established a set of steps after going over and over yourself. How do I know this is working? |
custom_setup = 'setup' | ||
|
||
|
||
@register(CustomTags.custom_setup) |
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.
Just to clarify, this check is going to be executed when we run
./manage.py check
Probably worth specifying that in the PR description as it is less than obvious, and I'm not 100% sure it is true even now.
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 added a docstring in c8c6a3f - the test I had added before should prove it's ran as part of manage.py check
, which we trigger in the verify docker image GitHub Action. I've also made sure the check does fail if uwsgi
isn't rebuilt.
Added instructions. |
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.
Verified locally.
Fixes mozilla/addons#9507
Description
This PR updates the base docker image addons-server from Debian buster to bookworm
Context
Debian buster is in long-term support mode, but that will end soon. On top of this, the python docker images for buster are not longer receiving updates. We could switch to bullseye but bookworm is the current stable version and will be supported for longer
Testing
make clean_docker
or equivalent to make sure you're rebuilding your depsmake build_docker_image
mozilla/addons-server
make shell
followed bycat /etc/debian_version
should return12.5