-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (29 loc) · 973 Bytes
/
Copy pathMakefile
File metadata and controls
40 lines (29 loc) · 973 Bytes
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
35
36
37
38
39
40
REGISTRY=nmdra
# Targets
.PHONY: port-forward-rabbitmq port-forward-postgres build-images print-build-images up-docker down-docker dashboard kustomize-view kustomize-apply
# Port forward RabbitMQ
port-forward-rabbitmq:
kubectl port-forward svc/rabbitmq 15672:15672
# Build Docker image using buildx bake
build-images:
export REGISTRY=$(REGISTRY) && docker buildx bake default
print-build-images:
docker buildx bake --print
# Start Minikube dashboard and get the URL
dashboard:
minikube dashboard --url
# Port forward Postgres
port-forward-postgres:
kubectl port-forward svc/postgres-postgresql 5432:5432
# Docker Compose up with watch and build
up-docker:
docker compose up --watch --build
down-docker:
docker compose up --watch --build
# Apply kustomize with base configuration
kustomize-view:
kubectl kustomize k8s/kustomization/base
kustomize-apply:
kubectl apply -k k8s/kustomization/base
kustomize-delete:
kubectl delete -k k8s/kustomization/base