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.

Jib should respect `—offline`

See original GitHub issue

Description of the issue:

Jib should respect the —offline flags for Gradle and Maven: jib should use the cached from image, erroring if it doesn’t exist, and :build should fail. This might help address some of the issues seen by users in high-latency zones (e.g. #648, #713).

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:7
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
PierreBessoncommented, Feb 11, 2019

I must stress the importance of this issue. This is currently a pain point for a lot of JHipster users, especially those who don’t have access to a private docker registry on their developer machines. Currently, we have a big warning in our jib usage docs to educate our users on this problem.

0reactions
tonylookcommented, May 19, 2022

I must stress the importance of this issue. This is currently a pain point for a lot of JHipster users, especially those who don’t have access to a private docker registry on their developer machines. Currently, we have a big warning in our jib usage docs to educate our users on this problem.

To solve this issue, you don’t need to use --offline, you need to put docker://imagename:tag at the <from><image> tag in the pom.xml

Read more comments on GitHub >

github_iconTop Results From Across the Web

google/jib - Gitter
With the recent 1.2.0, Jib now supports Maven and Gradle's --offline mode, so after a first build to populate Jib's image cache, you...
Read more >
Problem with using jib maven plugin offline for building docker ...
1 Answer 1 · Pass --offline to Maven on the command-line. Then, Jib will use the cached base image; there will be no...
Read more >
Building Java containers with Jib - Google Cloud
This tutorial shows how to use Jib to build an optimal Java container and deploy to Cloud Run.
Read more >
10 Signs You're in a Toxic Work Environment - Career Contessa
No human should be expected to be on the clock at all times. If your job requires that you be on-call at all...
Read more >
Jib work - Page 2 - Powerlineman
If we are moving phases with the jib we might have to touch the pole if we are changing insulators. We won't buy...
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