2021-02-08 14:13:40 +07:00
|
|
|
.POSIX:
|
2022-04-22 07:53:34 +07:00
|
|
|
.PHONY: *
|
2022-05-14 20:06:57 +07:00
|
|
|
.EXPORT_ALL_VARIABLES:
|
|
|
|
|
|
|
|
KUBECONFIG = $(shell pwd)/metal/kubeconfig.yaml
|
|
|
|
KUBE_CONFIG_PATH = $(KUBECONFIG)
|
2021-02-08 14:13:40 +07:00
|
|
|
|
2022-10-22 13:47:56 +07:00
|
|
|
default: metal bootstrap external smoke-test post-install clean
|
2021-12-11 18:56:55 +07:00
|
|
|
|
2022-03-14 23:37:21 +07:00
|
|
|
configure:
|
|
|
|
./scripts/configure
|
|
|
|
git status
|
|
|
|
|
2021-05-23 12:24:32 +07:00
|
|
|
metal:
|
2021-04-25 13:24:26 +07:00
|
|
|
make -C metal
|
2021-05-23 12:24:32 +07:00
|
|
|
|
2021-09-01 20:18:01 +07:00
|
|
|
bootstrap:
|
|
|
|
make -C bootstrap
|
2021-04-19 22:35:05 +07:00
|
|
|
|
2021-12-11 18:56:55 +07:00
|
|
|
external:
|
|
|
|
make -C external
|
|
|
|
|
2022-10-03 12:31:16 +07:00
|
|
|
smoke-test:
|
|
|
|
make -C test filter=Smoke
|
2022-03-14 02:42:59 +07:00
|
|
|
|
2022-07-23 23:15:23 +07:00
|
|
|
post-install:
|
|
|
|
@./scripts/hacks
|
|
|
|
|
2021-05-16 13:20:27 +07:00
|
|
|
tools:
|
2022-08-26 19:08:52 +07:00
|
|
|
@docker run \
|
|
|
|
--rm \
|
|
|
|
--interactive \
|
|
|
|
--tty \
|
|
|
|
--network host \
|
|
|
|
--env "KUBECONFIG=${KUBECONFIG}" \
|
|
|
|
--volume "/var/run/docker.sock:/var/run/docker.sock" \
|
|
|
|
--volume $(shell pwd):$(shell pwd) \
|
|
|
|
--volume ${HOME}/.ssh:/root/.ssh \
|
|
|
|
--volume ${HOME}/.terraform.d:/root/.terraform.d \
|
|
|
|
--volume homelab-tools-cache:/root/.cache \
|
|
|
|
--volume homelab-tools-nix:/nix \
|
|
|
|
--workdir $(shell pwd) \
|
|
|
|
nixos/nix nix-shell
|
2021-05-16 13:20:27 +07:00
|
|
|
|
2022-08-03 13:53:19 +07:00
|
|
|
test:
|
|
|
|
make -C test
|
|
|
|
|
2022-10-14 21:19:13 +07:00
|
|
|
clean:
|
|
|
|
docker compose --project-directory ./metal/roles/pxe_server/files down
|
|
|
|
|
2021-12-01 22:44:10 +07:00
|
|
|
dev:
|
|
|
|
make -C metal cluster env=dev
|
|
|
|
make -C bootstrap
|
2022-07-06 12:33:35 +07:00
|
|
|
|
|
|
|
docs:
|
|
|
|
docker run \
|
|
|
|
--rm \
|
|
|
|
--interactive \
|
|
|
|
--tty \
|
|
|
|
--publish 8000:8000 \
|
|
|
|
--volume $(shell pwd):/docs \
|
|
|
|
squidfunk/mkdocs-material
|
2022-07-19 21:16:19 +07:00
|
|
|
|
|
|
|
git-hooks:
|
|
|
|
pre-commit install
|