khuedoan-homelab/Makefile

63 lines
1.0 KiB
Makefile
Raw Normal View History

2021-02-08 14:13:40 +07:00
.POSIX:
.PHONY: *
.EXPORT_ALL_VARIABLES:
KUBECONFIG = $(shell pwd)/metal/kubeconfig.yaml
KUBE_CONFIG_PATH = $(KUBECONFIG)
2021-02-08 14:13:40 +07:00
default: metal bootstrap external wait post-install
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
external:
make -C external
wait:
./scripts/wait-main-apps
post-install:
@./scripts/hacks
2021-05-16 13:20:27 +07:00
tools:
@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
test:
make -C test
dev:
make -C metal cluster env=dev
make -C bootstrap
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