2020-11-12 13:05:18 +00:00
|
|
|
.PHONY: up-gentoo up-debian
|
2020-02-09 14:30:03 +00:00
|
|
|
|
2020-11-12 12:56:43 +00:00
|
|
|
include .env
|
2020-02-10 07:40:08 +00:00
|
|
|
|
2020-11-12 12:56:43 +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
|
|
|
|
|
2020-11-12 12:56:43 +00:00
|
|
|
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:
|
|
|
|
./run-image.sh debian
|
|
|
|
|
|
|
|
test-gentoo:
|
|
|
|
./run-image.sh gentoo
|
|
|
|
|
2020-11-12 12:56:43 +00:00
|
|
|
down:
|
|
|
|
docker-compose down
|
|
|
|
|
2020-11-12 13:05:18 +00:00
|
|
|
imagePackerBuilder:
|
|
|
|
docker build -t $(REGISTRY_URL)/$(IMAGE_NAME):$(VERSION) ./image
|
|
|
|
|
2020-11-12 12:56:43 +00:00
|
|
|
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
|