Local Dev Environment not enabling Clair #1180
-
Got an issue trying to test Clair for a work project. I come from a Systems/Infrastructure background, so this has been a crash course in all things Git, containers, Quay, and Clair for me, and it's entirely possible (and likely!) I made a mistake somewhere. Goal: to get Clair running in Quay, and test its security scanning capabilities against a host of images as part of a larger project. Setup: Ubuntu 20.04 server LTS (HVM) on AWS EC2 w/ EBS storage. Issue: following the Clair documentation, the Quay repository starts normally (usually; sometimes Troubleshooting Performed:
Steps to reproduce: From a fresh, brand-new, never-used Ubuntu 20.04 LTS (HVM) Server on AWS EC2, this is the entirety of commands run from very first boot:
Add Go to my ~/.bashrc session, logoff, login via SSH, configure GitHub/SSH Key, do a
As you can see, the setup is quite literally as barebones and straightforward as possible. There literally shouldn't be anything in a basic Ubuntu server image that could be screwing this up. For what it's worth, I also tested this on a personal Ubuntu 20.04 desktop VM with the same results. I am almost certainly missing something obvious, but on the off chance I'm not, could I get some guidance on getting the full dev environment up and running beyond what the Clair book provides? The only additional configuration it specifies is creating an admin user and clairv4-org organization before pushing images to it, but no scanning occurs and there doesn't appear to be any options in the dev environment as-is. If additional configuration is required for the dev environment, might I suggest a link to the proper docs in either Clair or Quay? As Kubernetes and Containers expand into on-prem, there will be a lot more infrastructure people crawling through here to cut their teeth on it for the first time and could do with the extra nudge in the right direction. Thanks again for whatever assistance might be provided, I really appreciate it. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey there, The local dev environment is only for testing. There should not be additional setup required other then running "make local-dev-up-with-quay". When you push a container to the local Quay instance running, security status should show up on the "tags" UI page. You should not need to interact with Quay's config tool at all. The local dev env has all the necessary configurations baked into the ephemeral environment. |
Beta Was this translation helpful? Give feedback.
Hey there,
The local dev environment is only for testing. There should not be additional setup required other then running "make local-dev-up-with-quay". When you push a container to the local Quay instance running, security status should show up on the "tags" UI page.
You should not need to interact with Quay's config tool at all. The local dev env has all the necessary configurations baked into the ephemeral environment.