2024-06-27 04:41:16 +00:00
|
|
|
ifeq ($(ENV),)
|
|
|
|
$(error ENV variable is not defined. Please set it to one of development|staging|production)
|
|
|
|
endif
|
2024-03-29 07:28:02 +00:00
|
|
|
|
2024-07-15 05:03:37 +00:00
|
|
|
.PHONY: flux
|
|
|
|
|
2024-06-18 02:21:08 +00:00
|
|
|
namespaces:
|
|
|
|
./scripts/k8s-namespaces.sh
|
2024-06-13 01:38:11 +00:00
|
|
|
|
|
|
|
secrets:
|
2024-07-10 02:34:23 +00:00
|
|
|
dotenvx run -f .env.${ENV} -- ./scripts/k8s-secrets.sh
|
2024-06-13 01:38:11 +00:00
|
|
|
|
2024-06-27 04:41:16 +00:00
|
|
|
flux:
|
|
|
|
./scripts/flux-bootstrap.sh
|
2024-04-22 00:14:48 +00:00
|
|
|
|
2024-07-17 09:40:43 +00:00
|
|
|
cluster: echoenv kind namespaces secrets velero chisel flux metrics
|
|
|
|
|
|
|
|
metrics:
|
|
|
|
kubectl apply -f https://github.com/kubernetes-sigs/metrics-server/releases/latest/download/components.yaml
|
2024-06-28 23:23:04 +00:00
|
|
|
|
|
|
|
echoenv:
|
|
|
|
echo "[echoenv] Using ${ENV} environment. If this is not what you want, export ENV=development|staging|production"
|
2024-06-20 01:43:25 +00:00
|
|
|
|
2024-06-28 23:23:04 +00:00
|
|
|
scrap: namespaces secrets velero chisel flux
|
2024-04-18 20:51:09 +00:00
|
|
|
|
2024-06-18 02:21:08 +00:00
|
|
|
velero:
|
|
|
|
./scripts/velero-create.sh
|
2024-04-18 20:51:09 +00:00
|
|
|
|
2024-04-02 14:49:33 +00:00
|
|
|
tilt:
|
2024-06-19 16:46:23 +00:00
|
|
|
kind get kubeconfig > ~/.kube/kind.yaml
|
2024-07-06 08:49:51 +00:00
|
|
|
KUBECONFIG=~/.kube/kind.yaml tilt up -f ./Tiltfile
|
2024-04-02 14:49:33 +00:00
|
|
|
|
2024-06-28 23:23:04 +00:00
|
|
|
exoscale:
|
|
|
|
kubectl apply -f https://raw.githubusercontent.com/exoscale/cert-manager-webhook-exoscale/master/deploy/exoscale-webhook-kustomize/deploy.yaml
|
|
|
|
|
2024-05-27 22:20:58 +00:00
|
|
|
kind:
|
2024-06-18 02:21:08 +00:00
|
|
|
./scripts/kind-with-local-registry.sh
|
2024-05-27 22:20:58 +00:00
|
|
|
|
2024-07-10 02:34:23 +00:00
|
|
|
kindload:
|
|
|
|
./scripts/kind-load.sh
|
|
|
|
|
2024-06-12 04:28:36 +00:00
|
|
|
chisel:
|
|
|
|
./scripts/k8s-chisel-operator.sh
|
|
|
|
|
2024-06-24 19:51:46 +00:00
|
|
|
clean:
|
2024-06-27 04:41:16 +00:00
|
|
|
kind delete cluster
|
2024-07-23 02:59:41 +00:00
|
|
|
dotenvx run -f .env.${ENV} -- node ./packages/infra/vultr-delete-orphaned-resources.js
|
2024-06-24 19:51:46 +00:00
|
|
|
|
2024-05-27 22:20:58 +00:00
|
|
|
deps:
|
2024-07-25 13:53:52 +00:00
|
|
|
echo "use `devbox install`"
|
2024-03-29 07:28:02 +00:00
|
|
|
|
|
|
|
# A gitea act runner which runs locally
|
|
|
|
# https://docs.gitea.com/next/usage/actions/overview
|
2024-03-29 10:14:18 +00:00
|
|
|
# this doesnt work because of missing docker in docker
|
|
|
|
# I'm running this using systemd instead
|
|
|
|
#runner:
|
|
|
|
# docker run -d --rm -e GITEA_INSTANCE_URL=https://gitea.futureporn.net -e GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_REGISTRATION_TOKEN} -v /var/run/docker.sock:/var/run/docker.sock -v $$HOME/.local/share/applications/fp/act-runner-data:/data --privileged --name fp-gitea-act-runner gitea/act_runner
|
|
|
|
|