-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
71 lines (51 loc) · 1.65 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
# docker
docker-network:
docker network create docker-network --driver=bridge --attachable
docker-postgres:
docker compose -f docker-postgres.yaml up -d
docker-api:
docker compose -f docker-api.yaml up
docker-run:
$(MAKE) docker-network
$(MAKE) docker-postgres
$(MAKE) docker-api
docker-tag:
sh docker_tag.sh
docker-buildx:
sh docker_buildx.sh
# helm
helm-install-dev:
helm install api helm-v1 --values helm-v1/values.yaml -f helm-v1/dev.yaml
helm-upgrade-dev:
helm upgrade api helm-v1 --values helm-v1/values.yaml -f helm-v1/dev.yaml
helm-install-stag:
helm install api helm-v1 --values helm-v1/values.yaml -f helm-v1/stag.yaml
helm-upgrade-stag:
helm upgrade api helm-v1 --values helm-v1/values.yaml -f helm-v1/stag.yaml
helm-install-prod:
helm install api helm-v1 --values helm-v1/values.yaml -f helm-v1/prod.yaml
helm-upgrade-prod:
helm upgrade api helm-v1 --values helm-v1/values.yaml -f helm-v1/prod.yaml
helm-uninstall:
helm uninstall api
# gcp
gcp-auth:
gcloud auth login
gcp-auth-docker:
gcloud auth configure-docker us-central1-docker.pkg.dev
gcp-auth-terraform:
gcloud auth application-default login
gcp-create-vpc:
gcloud compute networks create vpc-v1 --subnet-mode=auto --project [project]
gcp-delete-vpc:
gcloud compute networks delete vpc-v1 --quiet --project [project]
# argocd
argocd-create:
kubectl create namespace api-stag
kubectl create namespace api-prod
kubectl create namespace argocd
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml
argocd-port:
kubectl port-forward svc/argocd-server -n argocd 8080:443
argocd-password:
argocd admin initial-password -n argocd