danhuawang opened a new pull request, #13611:
URL: https://github.com/apache/gravitino/pull/13611

   ### What changes were proposed in this pull request?
   
   Add generic OCI labels when `dev/docker/build-docker.sh` builds images:
   
   - `org.opencontainers.image.version` (from `OCI_IMAGE_VERSION`, or the image 
tag)
   - `org.opencontainers.image.revision` (from `OCI_IMAGE_REVISION`, or this 
checkout's HEAD)
   - `org.opencontainers.image.source` (from `OCI_IMAGE_SOURCE`, default 
`https://github.com/apache/gravitino`)
   
   Labels are omitted if version or revision is empty.
   
   ### Why are the changes needed?
   
   Published images should point at the commit they were built from so license 
lists and vulnerability triage can recover the exact source.
   
   After this merges, the gravitino-enterprise sync **must** change the default 
`OCI_IMAGE_SOURCE` from `https://github.com/apache/gravitino` to 
`https://github.com/datastrato/gravitino-enterprise`.
   
   ### Does this PR introduce _any_ user-facing change?
   
   No API or property-key change. Images built by this script may include the 
OCI labels above.
   
   ### How was this patch tested?
   
   Inspected the `docker buildx build` invocations and the default/override 
paths for the three `OCI_IMAGE_*` variables.
   
   Made with [Cursor](https://cursor.com)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to