<#18843 Add {source_root} parameter option to Dock...
# github-notifications
c
#18843 Add {source_root} parameter option to Docker repository name field Issue created by danny-todd-oxb Is your feature request related to a problem? Please describe. We use root directories in our repo utilizing Pants Build as "projects". In other words, each of the
[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.:
Copy code
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