Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mtalexan opened this issue Feb 6, 2024 · 0 comments
Open

Comments

@mtalexan
Copy link

mtalexan commented Feb 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant