3 ms·
If we assume there's a way to quickly build an image for a vm (like docker build), are there workflows to quickly spin up and throw away those images?
by greyskull 7y ago
If we assume there's a way to quickly build an image for a vm (like docker build), are there workflows to quickly spin up and throw away those images?
- scarface74 7y agoFargate.
- greyskull 7y ago1. That's docker. 2. I should have specified "in local development".
- scaryclam 7y agoI think Packer (https://www.packer.io/ https://www.packer.io/) might what you want there.
- eatonphil 7y agoFrom a thread a while ago I know of these that work on Dockerfiles but build fully bootable disk images: https://godarch.com/ https://godarch.com/ https://github.com/imc-trading/dock2box https://github.com/imc-trading/dock2box https://buildroot.org/ https://buildroot.org/ https://github.com/ottomatica/slim https://github.com/ottomatica/slim
- takeda 7y agoThere is packer I highly recommend to use it together with salt module to do all the configuration. There is also NixOS together with NixOps it has some steep learning curve, but I think it is worth it. You edit configuration.nix which is like Dockerfile, and then you can either use standard AMI and provide the configuration, that will result in setup similar to salt, ansible, chef etc. You can also use NixOps to provision such machine, you can then place /etc/NIXOS_LUSTRATE file which removes state after next reboot, stop it and generate AMI that essentially emulates what packer is doing. You can also use nix build to generate an image file and upload that to AWS. NixOps is also a great tool to test, you can deploy your configuration to local virtual box, or public cloud provider.