packer qemu vm builder with gentoo os.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
764B

  1. .PHONY: up-gentoo up-debian
  2. include .env
  3. gentoo-up: imagePackerBuilder image/assets/id_rsa_qemu
  4. docker-compose up --build -d gentoo_packer
  5. debian-up: imagePackerBuilder image/assets/id_rsa_qemu
  6. docker-compose up --build -d debian_packer
  7. exec-gentoo:
  8. docker-compose exec gentoo_packer bash
  9. exec-debian:
  10. docker-compose exec debian_packer bash
  11. test-debian:
  12. ./run-image.sh ./image/assets/output_qcow2/debian_packer.qcow2
  13. test-gentoo:
  14. ./run-image.sh ./image/assets/output_qcow2/gentoo_packer.qcow2
  15. down:
  16. docker-compose down
  17. imagePackerBuilder:
  18. docker build -t $(REGISTRY_URL)/$(IMAGE_NAME):$(VERSION) ./image
  19. image/assets/id_rsa_qemu:
  20. @if [ ! -f "$@" ]; then \
  21. ssh-keygen -a 100 -C antoinroux@hotmail.fr -t ed25519 -N "" -b 2048 -q -f $@; \
  22. fi