packer-qemu/Makefile

21 lines
444 B
Makefile
Raw Normal View History

.PHONY: up-gentoo
2020-02-09 14:30:03 +00:00
include .env
2020-02-10 07:40:08 +00:00
imagePackerBuilder:
docker build -t $(REGISTRY_URL)/$(IMAGE_NAME):$(VERSION) ./image
2020-02-10 07:40:08 +00:00
up-gentoo: imagePackerBuilder image/assets/id_rsa_qemu
docker-compose up --build -d gentoo_packer
exec-gentoo:
2020-02-10 07:40:08 +00:00
docker-compose exec gentoo_packer bash
down:
docker-compose down
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