-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
56 lines (43 loc) · 1.8 KB
/
Makefile
File metadata and controls
56 lines (43 loc) · 1.8 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
build:
@echo "=========Building API Image========="
docker build -t notes-api .
build-push-ecr:
docker buildx build --platform linux/amd64 -t 866389174338.dkr.ecr.eu-central-1.amazonaws.com/notes-registry:latest .
docker push 866389174338.dkr.ecr.eu-central-1.amazonaws.com/notes-registry:latest
bootstrap:
@echo "=========Bootstraping API========="
make build
make start
start:
@echo "=========Starting API========="
docker compose up
stop:
@echo "=========Stoping API========="
docker compose down
plan:
cd iac/aws && terraform plan
apply:
./k8s/scripts/infra-provisioner.sh up
destroy:
./k8s/scripts/infra-provisioner.sh down
# start-local-registry:
# @echo "=========Starting Local Docker Registry========="
# docker run -d -p 5001:5000 --restart=unless-stopped --name kind-registry --net kind registry:2
# push-locally:
# @echo "=========Pushing to Local Docker Registry========="
# docker tag notes-api:arm64 localhost:5001/notes-api:arm64
# docker push localhost:5001/notes-api:arm64
# kind-create:
# @echo "=========Creating Kind Cluster========="
# kind create cluster --config k8s/local/cluster.yml
# @echo "=========Installing Ingress Controller ========="
# kubectl apply --filename https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/deploy/static/provider/kind/deploy.yaml
# kubectl wait --namespace ingress-nginx --for=condition=ready pod --selector=app.kubernetes.io/component=controller --timeout=90s
# @echo "=========Installing Database Workloads========="
# kubectl apply -f k8s/local/database.yml
# @echo "=========Applying Notes API Workloads========="
# kubectl apply -f k8s/local/local-notes-api.yml
# kubectl apply -f k8s/local/local-ingress.yml
# kind-destroy:
# @echo "=========Destroying Kind Cluster========="
# kind delete cluster --name notes-api-cluster