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:build is not reproducible due to directory timestamps not being set

See original GitHub issue

Description of the issue: When I build the code in container, it will rebuild all the layer every time.

Expected behavior: I don’t have to wait for Docker to rebuild your entire Java application - just deploy the layers that changed. Steps to reproduce:

  1. clone https://github.com/GoogleContainerTools/jib.git , cd to examples/spring-boot
  2. build with:
docker run -v `pwd`:/tmp/build -w /tmp/build -v $HOME/.m2:/root/.m2 maven:3-jdk-8 mvn clean compile jib:build -Djib.from.image=openjdk:8-alpine -Dimage=<myimage>
  1. docker pull the new image. I have to pull all the 3 layers, include the 14.38MB dependency layer every time .

Environment: macos 10.14.3, docker Version 2.0.0.3

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
loosebazookacommented, Apr 19, 2019

@eisig thanks again for reporting this. We just released 1.1.2 with the fix.

0reactions
eisigcommented, Apr 19, 2019

Great 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

google/jib - Gitter
Hi, while using jib-maven-plugin when I run mvn jib:build goal the image ... the blob downloaded is not correct/corrupted or the server sent ......
Read more >
Problem with using jib maven plugin offline for building docker ...
If not, Jib will download the updated image. This is why you are getting the error when you're offline. You have two options....
Read more >
Tutorial: Local troubleshooting of a Cloud Run service
Replace PROJECT_ID with the name of the project you created for this tutorial. ... If the problem is not reproducible locally, it may...
Read more >
Home of Quarkus Cheat-Sheet - GitHub Pages
By default there is no timeout but can be set by using the ... Due the nature of Quarkus to calculate correctly the...
Read more >
Apache Geronimo Arthur Maven
Native Image Mojo configuration ; classpath. List. custom pre-built classpath, if not set it defaults on the project dependencies. Default value: -. User ......
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