-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Question on base images #11705
Comments
Unfortunately, |
As an alternative, can we help maintain the |
Hi @tianon - sorry for the delay. We are going to instead move the contents of the existing (docker official) dockerfile to the other dockerfile in our product repo(s) and make it the default target. That way we can easily share the entrypoint.sh (between targets) and make it easier for teams to maintain. This works fine with Bashbrew and I can see nothing in the docs to say we shouldn't do this.. |
It's not a hard requirement for the Dockerfiles to be in a separate repo, but a quick warning about putting the Dockerfile in the root of the upstream repo: #11100 (comment). As noted in that comment, there are a few issues that could crop up: |
Thanks @yosifkit. We are only doing a We're building all of our release artifacts on every commit now from the product repo (including the docker image that we push to hashicorp/vault) so we're trying to avoid having to maintain an almost identical dockerfile (and identical entrypoint.sh) in a separate repo (for the official image). A product engineer could make an update to the dockerfile or entrypoint.sh in the product repo but forget to do it in the docker-vault repo for example. We could have automation to try to keep them in sync but this would introduce overhead and complexity that we're trying to avoid if possible. |
Unfortunately, since we don't have any configuration points to just build a single target within a multistage build, I think that Dockerfile would fail to build for us (since our process would attempt to build the first stage and fail to |
Thanks, it seemed that Bashbrew just built the default target when I tried this locally so I thought it would be ok - but we can move it into a separate dockerfile and use |
The information above is still correct and answers the questions about being Given the transition to deprecate the Hashicorp images in DOI, I'll go ahead and close this issue. (docker-library/docs#2283, docker-library/docs#2291) |
Hi
HashiCorp Release Engineering here.
We had a question on some changes that we are hoping to make to the dockerfiles for our official images (Consul and Vault).
Is it possible for us to derive our official images from the images that we push to hashicorp/consul hashicorp/vault?
e.g
FROM hashicorp/vault:4.3.2
Due to the way we currently build our docker images, this would help significantly and avoid us having to maintain two separate dockerfiles for each product.
I notice that here it states that official images can only be derived from other official images with a few notable exceptions. However I see elasticsearch are doing what we would like to do and rebundling images that they maintain (https://github.com/docker-library/elasticsearch/blob/master/7/Dockerfile).
Thanks for any clarity you can give us
The text was updated successfully, but these errors were encountered: