Any thoughts on using a different docker repositor...
# general
b
Any thoughts on using a different docker repository for a given registry? E.g. for registry A use
foo
but for registry B we want to use
ibm-foo
build_args.ARG_NAME
hmmmm
c
Lemme know if that doesn't work out. ;)
b
I dont think so
Because AFAICT I can't make the name based on registry.
And so even if I could hack it, I'd need 2 publish commands
Is this pluggable? I'm down for more in repo plugins
c
Not pluggable.. yet. We could add that.
Or just fix the configurability for this case.. ;)
There are per registry extra image tags. Could easily add per registry repository setting in there.
b
Let's do that. We're tagging on the CLI now so not blocked, but eventually I just want one command
I'm not sure how the design would look to be dlexible. I think ideally we allow a mapping of registry to additional context key/value pairs? Then I can interpolate:
repository="{registry.PREFIX}{name}"
c
Sorry, my Mac is so broken since yesterday. I have a fix, just waiting to get it committed and pushed.
b
Take your time, lol We're a ways a way from upgrading anywho
c
I’ve been forced to use MS Defender, and it’s service has broken down and making my I/O supere sluggish and something eats my disk at a rate of Gb/minutes…
b
Oh yeah, I remember all sorts of nightmares about antivirus at my last job
c
I still have 17% free disk left… so I think I hav time to push this before calling it the night. company support tells me they have a fix for me tomorrow…
b
Well dont try too hard 😛
c
hehe, oh yes!
just running
./pants version
can take well over a minute… 😉
Now you can have a registry repository setting like
"ibm-{target_repository}"
take a close look at the test case for image_ref formatting… 🙂
b
Yup! Makes sense to me! I'll let @hundreds-father-404 review the contents of the change when they are back, but seems like it'd work flawlessly ❤️
👀 1
👍 1