Hey! Can I set docker default repository to be "{f...
# general
a
Hey! Can I set docker default repository to be "{full_path}/{target_name}"? Currently i'm doing this in every
docker_image
target -
Copy code
docker_image(
    ...
    repository=f"{'.'.join(build_file_dir().parts}/" + "{name}",
    ...
)
but this is not something i can transfer to
pants.toml
as
[docker].default_repository
g
perhaps a macro could be useful? or the field default values ?
c
Yes, seems you've figured it out. A macro you call would work. The defaults would likely not work, as they're not dynamic.
a
thank you!