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
|
|
|
|
2024-04-17 15:21:10 +07:00
|
|
|
default: metal system 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
|
|
|
|
2024-04-17 15:21:10 +07:00
|
|
|
system:
|
|
|
|
make -C system
|
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
|
|
|
|
|
2024-11-22 15:26:43 +07:00
|
|
|
# TODO maybe there's a better way to manage backup with GitOps?
|
|
|
|
backup:
|
|
|
|
./scripts/backup --action setup --namespace=actualbudget --pvc=actualbudget-data
|
|
|
|
./scripts/backup --action setup --namespace=wireguard --pvc=wireguard-data
|
|
|
|
./scripts/backup --action setup --namespace=jellyfin --pvc=jellyfin-data
|
|
|
|
|
|
|
|
restore:
|
|
|
|
./scripts/backup --action restore --namespace=actualbudget --pvc=actualbudget-data
|
|
|
|
./scripts/backup --action restore --namespace=wireguard --pvc=wireguard-data
|
|
|
|
./scripts/backup --action restore --namespace=jellyfin --pvc=jellyfin-data
|
|
|
|
|
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
|
|
|
|
|
2022-07-06 12:33:35 +07:00
|
|
|
docs:
|
2023-05-19 01:48:30 +07:00
|
|
|
mkdocs serve
|
2022-07-19 21:16:19 +07:00
|
|
|
|
|
|
|
git-hooks:
|
|
|
|
pre-commit install
|