Our great sponsors
-
Packer
Packer is a tool for creating identical machine images for multiple platforms from a single source configuration.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
I have faced this locking problem while trying to use packer for building out AMIs. It was a flaky process. I used to google it always and not figure out a solution and continue rerunning the builds for a long time.
But one of my colleagues figured out that it is probably because the apt-get is getting locked due to cloud-init and removed the flakiness by making packer wait[1] for cloud-init to complete before running the installation scripts that involved apt-get locking.
We too wished that there were more docs to help us, especially explaining how apt-get worked.
[1] https://github.com/hashicorp/packer/issues/2639#issuecomment...
Related posts
- Building Scalable GraphQL Microservices With Node.js and Docker: A Comprehensive Guide
- Building Llama as a Service (LaaS)
- Data API for Amazon Aurora Serverless v2 with AWS SDK for Java - Part 5 Basic cold and warm starts measurements
- Choosing a Name for Your Computer
- Kubernetes and back – Why I don't run distributed systems