cool-easter-32542
04/27/2023, 3:25 PM[source].root_patterns related to a single project in our repo. In trying to implement docker_image build targets I noticed their were no parameter options for source roots. This could be an issue in cases where a root directory could contain either a single Dockerfile or multiple docker_image targets, each with separate Dockerfiles potentially in nested directories e.g.:
source_root/
docker/
image1/
Dockerfile
image2/
Dockerfile
Describe the solution you'd like
It would be very useful if we could set a default Docker repository name in the style of: {code_repo_name}/{source_root}/{docker_image_name} - using a source_root parameter. This would mean no mandating of folder structure, also.
Describe alternatives you've considered
I think this could be done with root directory-level defaults but that would require one for each root directory.
pantsbuild/pants