question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Consider removing Docker context generator

See original GitHub issue

If 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:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
axiopistycommented, Feb 6, 2019

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?

0reactions
briandealwiscommented, Feb 15, 2019

@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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found