-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
58 lines (47 loc) · 1.22 KB
/
Makefile
File metadata and controls
58 lines (47 loc) · 1.22 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
56
57
58
.PHONY: dcp
dcp:
docker compose -f docker-compose.yaml up -d
.PHONY: dev
dev: dcp
go mod download
APP_ENV=DEV go run main.go
.PHONY: prod
prod: dcp
DATABASE_HOST=localhost \
DATABASE_USERNAME=user \
DATABASE_PASSWORD=password \
DATABASE_NAME=codedeploy \
DATABASE_PORT=5432 \
APP_ENV=PROD \
go run main.go
.PHONY: docs
docs:
cd .design-docs/ && yarn
cd .design-docs/ && yarn start
.PHONY: lint
lint:
golangci-lint run
.PHONY: test
test:
go test -timeout 30m -v ./test
.PHONY: lint-ci
lint-ci:
sh deploy/lint.sh
.PHONY: dev-image
dev-image:
DOCKER_BUILDKIT=1 docker compose -f docker-compose.yaml -f docker-compose.dev.yaml up --build -- backend
.PHONY: dev-image-detach
dev-image-detach:
DOCKER_BUILDKIT=1 docker compose -f docker-compose.yaml -f docker-compose.dev.yaml up --build --detach -- backend
.PHONY: kind
kind:
sh deploy/0-kind-create-cluster.sh
sh deploy/1-kubectl-apply-argocd.sh
.PHONY: kind-with-registry
kind-with-registry:
sh deploy/kind-with-registry.sh
sh deploy/1-kubectl-apply-argocd.sh
.PHONY: port-forward
port-forward:
@kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d && echo
kubectl -n argocd port-forward svc/argocd-server -n argocd 8080:443