jib-gradle-plugin v1.5.0
·
1296 commits
to master
since this release
Major Changes
- Can now set timestamps (last modified time) of the files in the built image with
jib.container.filesModificationTime
. The value should either beEPOCH_PLUS_SECOND
to set the timestamps to Epoch + 1 second (default behavior), or an ISO 8601 date time parsable withDateTimeFormatter.ISO_DATE_TIME
such as2019-07-15T10:15:30+09:00
or2011-12-03T22:42:05Z
- Can now set container creation timestamp with
jib.container.creationTime
. The value should beEPOCH
,USE_CURRENT_TIMESTAMP
, or an ISO 8601 date time - For Google Container Registry (gcr.io), Jib now tries Google Application Default Credentials (ADC) last when no credentials can be retrieved. ADC are available on many Google Cloud Platform (GCP) environments (such as Google Cloud Build, Google Compute Engine, Google Kubernetes Engine, and Google App Engine). Application Default Credentials can also be configured with
gcloud auth application-default login
locally or through theGOOGLE_APPLICATION_CREDENTIALS
environment variable. - When building to a registry, Jib now skips downloading and caching base image layers that already exist in the target registry. This feature will be particularly useful in CI/CD environments. However, if you want to force caching base image layers locally, set the system property
-Djib.alwaysCacheBaseImage=true
jib.container.useCurrentTimestamp
has been deprecated in favor ofjib.container.creationTime
withUSE_CURRENT_TIMESTAMP
See CHANGELOG.md for more details.