Hello! I'm trying to follow the instructions for c...
# plugins
a
Hello! I'm trying to follow the instructions for creating a custom docker tag but the example might be a little outdated. I've setup a little test plugin but it doesn't seem to be getting invoked by
docker_image
. Is there a working example somewhere? https://www.pantsbuild.org/2.20/docs/docker/tagging-docker-images https://www.pantsbuild.org/2.20/docs/writing-plugins/overview
c
Hi 👋 Not sure of any examples out in the wild (you could try this out adding it over in https://github.com/pantsbuild/example-docker as a learning exercise also benefitting the next guy 😉 ) . But those docs should be OK fwict. You can run a sanity check to verify your plugin is picked up properly with:
Copy code
❯ pants DockerImageTagsRequest --help
You should see your union member class listed in the output here:
Copy code
`pants.backend.docker.target_types.DockerImageTagsRequest` api type
-------------------------------------------------------------------

A request to provide additional image tags.

activated by : pants.backend.docker
union members:
👍 1