Allows REST access to the docker image information. This plugin exposes one execution:
dockerInfo
returns a JSON representation of the current info of a given docker image.
The parameters of the request are as follows:
dockerImage
: The image name to be querieddockerTag
: The image tag to be queried (default: latest)dockerRepo
: The docker repo where the image is stored (default: docker-local)
The returned JSON string has the following fields:
sha256
: The sha256 hash of the docker image.digest
: The digest of the docker image.tag
: The tag of the docker image.
For example:
$ curl -u admin:password 'http://localhost:8081/artifactory/api/plugins/execute/dockerInfo?params=dockerImage=myPath/myImage|dockerTag=publish|dockerRepo=docker-custom
{
"sha256": "asdfghjkl",
"digest": "sha256:asdfghjkl",
"tag": "publish"
}
Copy dockerInfo.groovy
to ${ARTIFACTORY_HOME}/etc/plugins
directory. Then reload your plugins (see Reloading Plugins)
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
- Peter Kreidermacher - HealthPartners
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details