-
Notifications
You must be signed in to change notification settings - Fork 254
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
Proposal: Immutable image tags #35
Comments
Hi @loozhengyuan! I fully agree with you, the current tagging system is a bit barebones, and yes it really should be immutable. Unless you're using An alternative would be And then each release would get documented as well. I'll be looking into it, just not immediately. Will keep you posted! |
@jflambert Thanks for looking into this! Although I no longer work with |
For now I'll manually tag patches as such:
where Y is pgbouncer itself and X is docker-pgbouncer |
Context
As seen in #33, some of us were caught off guard by a recent commit that made changes to the container's behaviour while keeping the same image tag. Issue #33 discusses the actual problem that caused the pgbouncer to crash but this issue focuses on preventing such changes from making its way into our production systems even though we've pinned the image tags.
Proposal
Currently, the project already provides semver-compliant image tags mapped to the specific pgbouncer versions (e.g.
1.15.0
,1.14.0
). However, sinceedoburu/pgbouncer
is a project that provides container images for the upstream pgbouncer project, changes (sometimes breaking) may be occasionally required.One way we can do this is to roll our own semver-compliant versioning scheme but this can be confusing to new users (thinking that these are the corresponding pgbouncer versions) and they do not allow us to track a specific pgbouncer version, say
1.14.0
for example.As such, I'm proposing to use a modified, 4-component versioning format:
X.Y.Z.V
X.Y.Z
is the regular semver of the pgbouncer version.V
is the incremental version used byedoburu/pgbouncer
for any changes to the Dockerfile.For example, whenever a change is made to the Dockerfile or the entrypoint script, we will bump the last component of the version:
1.15.0.1
->1.15.0.2
1.14.0.1
->1.13.0.2
1.13.0.1
->1.13.0.2
1.12.0.1
->1.12.0.2
Using this proposed versioning scheme, at least we can ensure that all
edoburu/pgbouncer
image tags are immutable.Limitations
The text was updated successfully, but these errors were encountered: