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
Support typical enterprise proxy and internal mirrors setup #821
Comments
I thought I had replied to this... Images are typically declared including the hostname. A format such as If I'm understanding of how this would work with something like Artifactory's virtual repos or Nexus's proxy... If a Ultimately we'd be removing the original Does that sound right? Additional references: |
Another relevant conversation about being able to push to these proxies/mirrors. I suspect this may or may not work depending on the service (artifactory, nexus, harbor). |
@jromero Yes. I was hoping this to be independent of the Container Runtime. I was hoping for pack to mutate the image name, before it's sent down to "docker pull" command. If my builder.tom file has
|
This issue was brought up during our working group meeting today. The question as to whether a lower level support already existing came up. After another quick search, it doesn't appear like there is a pre-existing solution for this specific use case within the docker daemon or within GGCR.
|
Thank You @jromero. I am not sure if I followed the Slack discussion on namespace and additional complexity. Was it related to this ticket? |
@dfreilich let's sync up on this |
https://github.com/buildpacks/pack/pull/1088/files might help with this |
in addition, I think there is two strategies of registry proxy:
I am feeling that we will need a config file called registries-proxy:
docker.io: nexus.mycompany.local
gcr.io: nexus.mycompany.local
mounts:
~/.m2:~/.m2
# .... |
@abdennour Interesting point! For a config file, we would probably just use the existing pack config, if need be, but that's definitely food for thought. |
Description
It would be nice (and increase adoption) if pack cli can support typical enterprise proxy and mirror setup.
Proposed solution
Without changing the toml files or re-building images, pack cli should be able to update the URL to download docker images used in buildpacks and stack settings.
For example, http_proxy environment variables are inherited during the build process - but not everything would have to go via http_proxy. It's common for an enterprise to have internal mirrors using Artifactory or Nexus, so that engineers don't have to fiddle with proxy settings for different types of applications used across different tech stacks.
Similar to --env, if we have --docker-mirror-registry or --docker-proxy-registry, which would allow us to provide the prefix that can be used when downloading images.
Describe alternatives you've considered
Re-build sample applications by adding our docker registry.
Additional context
The text was updated successfully, but these errors were encountered: