packer-qemu/docker-compose.yml

40 linhas
1.8 KiB
YAML

version: "3.7"
services:
gentoo_packer:
image: ${REGISTRY_URL}/${IMAGE_NAME}:${VERSION}
privileged: true
environment:
- SOURCE_NAME=qemu.gentoo
- SSH_LIVE_USERNAME=root
- SSH_LIVE_PASSWORD=toortrort@orto0rTempPASSWORD
- ANSIBLE_EXTRA_VARS=generated_user=antoine generated_group=users gentoo_version=20201111T214503Z
- ANSIBLE_PLAYBOOK=/packer/ansible/playbook-gentoo.yml
- ISO_CHECKSUM=file:http://distfiles.gentoo.org/releases/amd64/autobuilds/current-install-amd64-minimal/install-amd64-minimal-20201111T214503Z.iso.DIGESTS
- ISO_URL=http://distfiles.gentoo.org/releases/amd64/autobuilds/current-install-amd64-minimal/install-amd64-minimal-20201111T214503Z.iso
volumes:
- "./image/assets:/packer"
- "./image/cache:/packer-cache"
ports:
- "5900:5900"
debian_packer:
image: ${REGISTRY_URL}/${IMAGE_NAME}:${VERSION}
privileged: true
environment:
- SOURCE_NAME=qemu.debian
- SSH_LIVE_USERNAME=debian
- SSH_LIVE_PASSWORD=debian
- IMAGE_VERSION=10.7.0
- ANSIBLE_EXTRA_VARS=generated_user=antoine generated_group=users enable_network=false
- ANSIBLE_PLAYBOOK=/packer/ansible/playbook-debian.yml
- ISO_CHECKSUM=file:https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/SHA512SUMS
#- ISO_CHECKSUM=file:https://cdimage.debian.org/mirror/cdimage/archive/10.7.0/amd64/iso-cd/SHA512SUMS
- ISO_URL=https://cdimage.debian.org/debian-cd/current/amd64/iso-cd/debian-10.7.0-amd64-netinst.iso
#- ISO_URL=https://cdimage.debian.org/mirror/cdimage/archive/10.7.0/amd64/iso-cd/debian-10.7.0-amd64-netinst.iso
volumes:
- "./image/assets:/packer"
- "./image/cache:/packer-cache"
ports:
- "5900:5900"