33 lines
682 B
Makefile
33 lines
682 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 debian
|
|
|
|
test-gentoo:
|
|
./run-image.sh gentoo
|
|
|
|
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
|