Consider removing Docker context generator
See original GitHub issueIf you continue to use jibExportDockerContext
or jib:exportDockerContext
, thumbs up this issue and/or leave a comment describing your use case.
With the addition of Jib’s build to docker daemon/build tarball functions, the docker context generator is becoming less and less useful, while it becomes more of a pain to maintain as we add new features (some of which are difficult to make compatible with Dockerfiles). If this isn’t a popular feature, it may be best to remove it.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:2
- Comments:8 (4 by maintainers)
Top Results From Across the Web
docker context rm
docker context inspect, Display detailed information on one or more contexts ; docker context ls, List contexts ; docker context rm, Remove one...
Read more >Docker error cannot delete docker container, conflict: unable ...
Firstly, run docker container ls -a to list all the containers you have and pinpoint the want you want to delete. ... Thirdly,...
Read more >Do not ignore .dockerignore (it's expensive and potentially ...
The .dockerignore file is the tool, that can help you to define the Docker build context you really need.
Read more >Client API — docker-py 1.10.6 documentation
Returns (generator or str): The logs or output for the image ... If you have a tar file for the Docker build context...
Read more >Try the new System.Text.Json source generator - .NET Blog
Json source generator helps us to remove this warm-up phase by shifting the ... To set the generation mode for the entire context...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It’s unfortunate I didn’t see this ticket before the goal was removed. Our organization is using Pipeline Jenkins builds. Access to uploading/installing new docker images into the image repository is restricted to a proprietary corporate artifact as part of the build. My project currently uses the
exportDockerContext
goal, and then the location of that context is passed to our corporate artifact which then builds and publishes the image to the corporate repository.As far as I am aware, I can’t upgrade to 1.0.0 without this goal.
What are the reasons (value add) to removing the goal? Is it possible to get it back?
@liqweed just to be clear, Jib is docker-less: it constructs images itself. Jib never invokes docker.
It looks like codefresh.io provides much of the useful metadata you describe as environment variables, and you could configure Jib in your pom/buildscript and to create corresponding labels with those values. And it looks like they provide a container registry at
r.cfcr.io
; providing they have a docker config for obtaining credentials, then Jib should should be able to push there directly.