jib:build is not reproducible due to directory timestamps not being set
See original GitHub issueDescription 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:
- clone https://github.com/GoogleContainerTools/jib.git , cd to
examples/spring-boot
- 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>
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:
- Created 4 years ago
- Comments:9 (8 by maintainers)
Top 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 >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
@eisig thanks again for reporting this. We just released 1.1.2 with the fix.
Great 👍