-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
34 lines (25 loc) · 1022 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
# Copyright 2023 Stefan Prodan
# SPDX-License-Identifier: Apache-2.0
# Timoni local dev
# Requirements: docker, kind, kubectl, timoni
.ONESHELL:
.SHELLFLAGS += -e
REPOSITORY_ROOT := $(shell git rev-parse --show-toplevel)
.PHONY: tools
tools: # Install required tools with Homebrew
brew bundle
.PHONY: up
up: # Start a local Kind clusters and a container registry on port 5555
$(REPOSITORY_ROOT)/scripts/kind-up.sh
.PHONY: down
down: # Teardown the Kind cluster and registry
$(REPOSITORY_ROOT)/scripts/kind-down.sh
.PHONY: flux-up
flux-up: # Install Flux on the local cluster
$(REPOSITORY_ROOT)/scripts/flux-install.sh
.PHONY: timoni-push
timoni-push: # Push modules to the local registry
$(REPOSITORY_ROOT)/scripts/timoni-push.sh
.PHONY: help
help: ## Display this help menu
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m<target>\033[0m\n"} /^[a-zA-Z_0-9-]+:.*?##/ { printf " \033[36m%-20s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)