-
Notifications
You must be signed in to change notification settings - Fork 273
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
Discussion: Garden Core Docker Image Lifecycle #3993
Comments
Thanks for writing this up! Just one note: I somehow had in mind that we'd end up dropping all the repos except |
@edvald the repos and the tags are two different stories – we can drop the Cloud provider tools containers, but even if we do that the current tags in I think the tags wouldn't be that long– some examples:
Some of them will be pretty long but they won't be the most commonly used:
While it is a hassle to maintain the cloud provider tools variants, they are very handy for example when building a GitLab CI pipeline. My personal opinion is that we should actually keep them for this reason. But we should definitely make them easier to maintain– for example by making sure that we do not duplicate the installation procedures in our code and have some test coverage. |
@stefreak has this been completely done via #4239? If so, then feel free to close this :) This is also marked as a breaking change. Please put the necessary comments to the breaking changes list in the Bonsai migration guide. |
@vvagaytsev No, this is not fully finished yet; it is just the first step. Will mention this 👍 Thank you |
Ok, thank you! |
Improved docker image building and tagging for 0.12, analogous to the 0.13 PR #4239 Addresses #3993 Co-authored-by: Tim Beyer <[email protected]>
Improved docker image building and tagging for 0.12, analogous to the 0.13 PR #4239 Addresses #3993 BREAKING CHANGE: The images at [hub.docker.com/gardendev/garden-full](https://hub.docker.com/r/gardendev/garden-full) are no longer receiving updates from this release on. The repository will be removed in the future. BREAKING CHANGE: The way we tag images at [hub.docker.com/gardendev/garden](https://hub.docker.com/r/gardendev/garden), [hub.docker.com/gardendev/garden-gcloud](https://hub.docker.com/r/gardendev/garden-gcloud), [hub.docker.com/gardendev/garden-azure](https://hub.docker.com/r/gardendev/garden-azure), [hub.docker.com/gardendev/garden-aws](https://hub.docker.com/r/gardendev/garden-aws), [hub.docker.com/gardendev/garden-aws-gcloud](https://hub.docker.com/r/gardendev/garden-aws-gcloud) and [hub.docker.com/gardendev/garden-aws-gcloud-azure](https://hub.docker.com/r/gardendev/garden-aws-gcloud-azure) changed according to [#3993](#3993). Old tags will continue to work, but won't receive further updates. Co-authored-by: Tim Beyer <[email protected]>
All done, only thing missing is "Verify all the downloads in Dockerfiles using sha hashes" |
@stefreak any plans to implement the last step soon? |
@vvagaytsev Yeah it's only a minor change of the Dockerfiles actually 👍 |
@stefreak, cool, thanks! Let's try to get it done soon :) |
@vvagaytsev you can find the PR at #4826 |
This is a request for comments on a new Garden Docker container tagging scheme – if you see something that could be improved, please comment and I'll try to incorporate the feedback.
Discord link: https://discord.com/channels/817392104711651328/1088795679159222292/1088890739569729666
Problem description
The gardendev/garden image tags on dockerhub and the build process are currently a little bit hard to understand.
Here are some of the problems with it:
latest
tag – but what does it refer to? Themain
branch? The latest stable release? Bonsai? Alpine or Debian?gardendev/k8s-util:0.5.6@sha256:dce403dc7951e3f714fbb0157aaa08d010601049ea939517957e46ac332073ad
instead of justgardendev/k8s-util:0.5.6
– this guarantees that if the garden binary has not been tampered with, then the containers have not been tampered with either.Proposed Solution
support/
directory unparametrized, so that Dependabot can update base images. Also refer to base images by sha hash there, so we have an audit trail of all the changes. Dependabot will take care of managing the sha hashes like we already do in Platforme.g.
install_aws.sh
,install_azure.sh
etc.acorn-{flavor}
,0.12-{flavor}
,0.12.{patch-version}-{flavor}
acorn-{flavor}-unprivileged
,0.12-{flavor}-unprivileged
,0.12.{patch-version}-{flavor}-unprivileged
acorn-edge-{flavor}
,0.12-edge-{flavor}
acorn-edge-{flavor}-unprivileged
,0.12-edge-{flavor}-unprivileged
bonsai-{flavor}
,0.13-{flavor}
,0.13.{patch-version}-{flavor}
bonsai-{flavor}-unprivileged
,0.13-{flavor}-unprivileged
,0.13.{patch-version}-{flavor}-unprivileged
bonsai-edge-{flavor}
,0.13-edge-{flavor}
bonsai-edge-{flavor}-unprivileged
,0.13-edge-{flavor}-unprivileged
{flavor}
is one ofalpine
,debian-buster
,debian-bullseye
and then we apply this tagging scheme to the following images:
gardendev/garden
gardendev/garden-gcloud
gardendev/garden-aws
gardendev/garden-azure
gardendev/garden-gcloud-aws
gardendev/garden-gcloud-aws-azure
etc…
I propose that we remove the older tags once 0.12 is EOL
The text was updated successfully, but these errors were encountered: