Skip to content

Support docker build arguments for tern sbom -f Dockerfile and tern lock #1248

@mtalexan

Description

@mtalexan

Describe the Feature

Support all/most of the docker buildx build CLI arguments when calling either tern sbom -f Dockerfile or tern lock -f Dockerfile.
tern builds the Dockerfile itself for most features to work, but doesn't support any of the arguments necessary to do so.

Use Cases

Almost all non-trivial builds using docker build or docker buildx build have CLI arguments to set things like --buildarg, --target, and --tag (among others). Currently tern requires it be the image builder for tern lock or tern sbom -f Dockerfile.

Implementation Changes

Presumably either all docker buildx build arguments need to be replicated so they can be captured and passed thru, or all unrecognized arguments to a tern command that's going to run a docker build need to be passed thru.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions