Skip to content
This repository has been archived by the owner on Aug 22, 2024. It is now read-only.

AMI build should download Conjur Image directly #5

Open
jvanderhoof opened this issue Aug 10, 2017 · 5 comments
Open

AMI build should download Conjur Image directly #5

jvanderhoof opened this issue Aug 10, 2017 · 5 comments

Comments

@jvanderhoof
Copy link
Contributor

The AMI build process works by downloading and saving the Conjur image locally before uploading the gzipped tar file to the AMI. This is super inefficient.

A better approach would be to download the Conjur image directly to the EC2 instance before saving it off as an AMI. Our registry credentials would need to be injected onto the instance prior to docker pull ...., then removed from the instance after the image has been pulled.

@apotterri
Copy link

FWIW, I've been experimenting with using DockerInDocker to log in and pull an image without landing the credentials on the host.

I'm currently doing the docker pull, docker save, scp dance to the get image to the remote instance, but this is inspiring me to see I can pull it directly.

@dustinmm80
Copy link
Contributor

That's great Alan! Yeah I think removing steps in our AMI creation process will pay dividends across our projects.

@apotterri
Copy link

I've found that DockerInDocker can be made to work this way. Definitely check with me before you move forward on implement this.

@brikelly
Copy link

Can we close this issue now? @dustinmm80 @apotterri

@dustinmm80
Copy link
Contributor

Are we using this project to build v5 AMIs, or something else? If this project, I think we should fix this issue for v5.

@brikelly brikelly removed the ready label Jul 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants