Is there a way to pre-hook into docker publishing....
# plugins
a
Is there a way to pre-hook into docker publishing. I would like to add some registry commands to ensure that the registry is created and has the correct configuration.
h
Might require a plugin, but @curved-television-6568 can say more
c
there’s not many docker specific hooks right now. One option is to create a
docker
binary shim in place of the regular docker client and have that intercept the
docker push
to do the pre-operations before handing it over to the real client. A perhaps more robust option could be to write a Pants plugin, but I’m not sure from the top of my head how that would work.
a
Right now just leaning towards a plugin with a separate goal to run before, but it would be nice to be able to just run publish and have this rule run before that other rule.
1