33 lines
764 B
Makefile
33 lines
764 B
Makefile
.PHONY: up-gentoo up-debian
|
|
|
|
include .env
|
|
|
|
up-gentoo: imagePackerBuilder image/assets/id_rsa_qemu
|
|
docker-compose up --build -d gentoo_packer
|
|
|
|
up-debian: imagePackerBuilder image/assets/id_rsa_qemu
|
|
docker-compose up --build -d debian_packer
|
|
|
|
exec-gentoo:
|
|
docker-compose exec gentoo_packer bash
|
|
|
|
exec-debian:
|
|
docker-compose exec debian_packer bash
|
|
|
|
test-debian:
|
|
./run-image.sh ./image/assets/output_qcow2/debian_packer.qcow2
|
|
|
|
test-gentoo:
|
|
./run-image.sh ./image/assets/output_qcow2/gentoo_packer.qcow2
|
|
|
|
down:
|
|
docker-compose down
|
|
|
|
imagePackerBuilder:
|
|
docker build -t $(REGISTRY_URL)/$(IMAGE_NAME):$(VERSION) ./image
|
|
|
|
image/assets/id_rsa_qemu:
|
|
@if [ ! -f "$@" ]; then \
|
|
ssh-keygen -a 100 -C antoinroux@hotmail.fr -t ed25519 -N "" -b 2048 -q -f $@; \
|
|
fi
|