-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Image Age wrong #1158
Comments
docker image inspect gives interesting details: the creation date is somehow not acurate. Seems like this could have something to do with this issue, although we are not using maven/docker plugin at all. |
I am using Jib's maven-plugin. And I solved the same kind of problem by setting |
As far as I know ,not only the Image , but also the resources classes and other things related to your app are having the 1970-01-01 timestamp. |
@zy475459736 bazelbuild/rules_docker#52 Or is as designed? |
As far as I know ,yes. It is designed to be that way. |
As mentioned above, this is intended behavior, as we wipe timestamps to maintain reproducibility. You can use the It's also worth noting that we are tracking the ability to add a custom timestamp in this issue: #1079 |
Description of the issue:
When I run gradle build with jib, the images which get produced are 48 years old.
Does not matter if i build on windows, unix or jenkins
$ date
Thu Oct 18 12:50:57 CEST 2018
$ docker images | grep 19.100
registry.eu-de.bluemix.net/XXXXXXX/testservice 19.100.01-SNAPSHOT 46359d31bb35 48 years ago 491MB
Expected behavior:
Image age should be properly set.
Steps to reproduce:
This happens when executing "gradle jib" and "gradle jibDockerBuild"
It does not matter if the image gets pubished locally or in private registry
Environment:
$ ./gradlew -version
Gradle 4.10
Build time: 2018-08-27 18:35:06 UTC
Revision: ee3751ed9f2034effc1f0072c2b2ee74b5dce67d
Kotlin DSL: 1.0-rc-3
Kotlin: 1.2.60
Groovy: 2.4.15
Ant: Apache Ant(TM) version 1.9.11 compiled on March 23 2018
JVM: 1.8.0_181 (Oracle Corporation 25.181-b13)
OS: Linux 4.9.0-8-amd64 amd64
jib-maven-plugin
Configuration:Log output:
Additional Information:
The text was updated successfully, but these errors were encountered: