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

Move mounting of ebs into instance / docker start script in packer #6

Open
benjaminleighton opened this issue Oct 22, 2019 · 0 comments

Comments

@benjaminleighton
Copy link
Collaborator

Current solution uses a terraform provisioner to mount the ebs after it is associated with the ec2 but this isn't great because timing is a problem vs docker coming up. The docker start logic in instance.sh packer script that runs on ec2 start waits for /certs to exist preventing docker from running before the certs directory is mounted. It isn't a reliable check though because the creation of /certs happens just before it is mounted and theoretically docker could start prior to the mount having completed. A colleague points out that a solution would be to mount the ebs device as part of the docker start logic in instance.sh and avoid the terraform provisioner approach all together.

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