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.

40 lines
1.8KB

  1. version: "3.7"
  2. services:
  3. gentoo_packer:
  4. image: ${REGISTRY_URL}/${IMAGE_NAME}:${VERSION}
  5. privileged: true
  6. environment:
  7. - SOURCE_NAME=qemu.gentoo
  8. - SSH_LIVE_USERNAME=root
  9. - SSH_LIVE_PASSWORD=toortrort@orto0rTempPASSWORD
  10. - ANSIBLE_EXTRA_VARS=generated_user=antoine generated_group=users gentoo_version=20201111T214503Z
  11. - ANSIBLE_PLAYBOOK=/packer/ansible/playbook-gentoo.yml
  12. - ISO_CHECKSUM=file:http://distfiles.gentoo.org/releases/amd64/autobuilds/current-install-amd64-minimal/install-amd64-minimal-20201111T214503Z.iso.DIGESTS
  13. - ISO_URL=http://distfiles.gentoo.org/releases/amd64/autobuilds/current-install-amd64-minimal/install-amd64-minimal-20201111T214503Z.iso
  14. volumes:
  15. - "./image/assets:/packer"
  16. - "./image/cache:/packer-cache"
  17. ports:
  18. - "5900:5900"
  19. debian_packer:
  20. image: ${REGISTRY_URL}/${IMAGE_NAME}:${VERSION}
  21. privileged: true
  22. environment:
  23. - SOURCE_NAME=qemu.debian
  24. - SSH_LIVE_USERNAME=debian
  25. - SSH_LIVE_PASSWORD=debian
  26. - IMAGE_VERSION=10.7.0
  27. - ANSIBLE_EXTRA_VARS=generated_user=antoine generated_group=users enable_network=false
  28. - ANSIBLE_PLAYBOOK=/packer/ansible/playbook-debian.yml
  29. - ISO_CHECKSUM=file:https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/SHA512SUMS
  30. #- ISO_CHECKSUM=file:https://cdimage.debian.org/mirror/cdimage/archive/10.7.0/amd64/iso-cd/SHA512SUMS
  31. - ISO_URL=https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.7.0-amd64-netinst.iso
  32. #- ISO_URL=https://cdimage.debian.org/mirror/cdimage/archive/10.7.0/amd64/iso-cd/debian-10.7.0-amd64-netinst.iso
  33. volumes:
  34. - "./image/assets:/packer"
  35. - "./image/cache:/packer-cache"
  36. ports:
  37. - "5900:5900"