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

"must provide a -conf flag or set "CLAIR_CONF" in the environment" instead of "File not found" #1605

Closed
PipeItToDevNull opened this issue Jul 21, 2022 · 0 comments · Fixed by #1606
Labels
triaged The maintainers have seen this issue

Comments

@PipeItToDevNull
Copy link

Description of Problem / Feature Request

In this example my config is actually config.yml so when config.yaml is called in the podman command the file will be "not found" but Clair says I am missing an env var or flag instead.

sudo podman run --rm -it --pod clair --name clair_scanner -e "CLAIR_CONF=/clair/config.yaml" -e "CLAIR_MODE=combo" -v ./clair/:/clair:Z 'quay.io/projectquay/clair:4.4.4'

2022/07/21 17:43:30 must provide a -conf flag or set "CLAIR_CONF" in the environment
@hdonnay hdonnay added the triaged The maintainers have seen this issue label Jul 21, 2022
hdonnay added a commit to hdonnay/clair that referenced this issue Jul 22, 2022
This replaces the custom flag values with just visiting the flags and
processing the string argument at that time.

Closes: quay#1605
Signed-off-by: Hank Donnay <hdonnay@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged The maintainers have seen this issue
Development

Successfully merging a pull request may close this issue.

2 participants