packer-qemu/Makefile

33 lines
764 B
Makefile
Raw Normal View History

2020-11-12 13:05:18 +00:00
.PHONY: up-gentoo up-debian
2020-02-09 14:30:03 +00:00
include .env
2020-02-10 07:40:08 +00:00
up-gentoo: imagePackerBuilder image/assets/id_rsa_qemu
docker-compose up --build -d gentoo_packer
2020-11-12 13:05:18 +00:00
up-debian: imagePackerBuilder image/assets/id_rsa_qemu
docker-compose up --build -d debian_packer
exec-gentoo:
2020-02-10 07:40:08 +00:00
docker-compose exec gentoo_packer bash
2020-11-12 13:05:18 +00:00
exec-debian:
docker-compose exec debian_packer bash
test-debian:
2020-11-13 15:09:22 +00:00
./run-image.sh ./image/assets/output_qcow2/debian_packer.qcow2
2020-11-12 13:05:18 +00:00
test-gentoo:
2020-11-13 15:09:22 +00:00
./run-image.sh ./image/assets/output_qcow2/gentoo_packer.qcow2
2020-11-12 13:05:18 +00:00
down:
docker-compose down
2020-11-12 13:05:18 +00:00
imagePackerBuilder:
docker build -t $(REGISTRY_URL)/$(IMAGE_NAME):$(VERSION) ./image
image/assets/id_rsa_qemu:
2020-02-12 06:47:36 +00:00
@if [ ! -f "$@" ]; then \
ssh-keygen -a 100 -C antoinroux@hotmail.fr -t ed25519 -N "" -b 2048 -q -f $@; \
2020-02-10 07:40:08 +00:00
fi