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

Use Docker Daemon to pull images instead of querying via HTTP call #148

Open
RiceBowlJr opened this issue Mar 29, 2019 · 2 comments
Open

Comments

@RiceBowlJr
Copy link

Hi,

I am using (trying to at least) Klar/Clair in Jenkins X (in AWS EKS).
I made a Klar image with DinD and the ECR helper tool.
With this image I am able to build Docker images and push them to an ECR repository via an IAM role set on the EC2 instance and the ECR credential helper directly called by the Docker daemon via the ~/.docker/config.json (have a look at the README.md.
But Klar isn't using the Docker Daemon to pull the image from ECR so I cannot pull the images except if I set a dirty login script to pass the credentials in the env var.

After looking a bit into the code, I see that you implemented your own Docker library, wouldn't it easier/better to use the Docker/Moby library instead ? This might make my CI work 😃

I am far from being a developer, but I took a look at this and I think this is the way to do it: https://gist.github.com/miguelmota/4980b18d750fb3b1eb571c3e207b1b92

I would be happy to help with my little knowledge.

@hashmap
Copy link
Contributor

hashmap commented Apr 1, 2019

One of the initial requirements for Klar was ability to run on a machine without docker. Reusing docker codebase might be a good idea.

@sergitei
Copy link

sergitei commented Apr 3, 2019

Another very useful feature would be to make the latest build available with the name "klar-latest-linux-amd64". We could apply automation (e.g. curl) making sure we are always working with the latest image. I wonder if this is something being considered in the short term?

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

3 participants