Skip to content

Add support for adding arbitrary docker build flags #21839

@kuza55

Description

@kuza55

Is your feature request related to a problem? Please describe.
Docker has a lot of different flags, most of which are not officially supported via pants, I'd like to be able to use them without needing code changes to pants.

extra_runs_args got added in #20440 but the build args version was never added.

Describe the solution you'd like
I'd like docker_image and pants.toml to get some extra parameters for extra_command_line_build_args to be passed to docker build..

Describe alternatives you've considered
Adding every flag to pants that does not need special handling seems wasteful.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions