-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMakefile
41 lines (29 loc) · 1.16 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
.PHONY: migrate up build format run test setup-k8s helm-install helm-debug helm-purge helm-upgrade docker-build
migrate:
@scripts/migrate.sh
up:
@docker-compose -f docker-compose.yml up
run:
@scripts/run-all.sh
build:
@go build -ldflags="-s -w" -o bin/feeds services/feeds/cmd/main.go
@go build -ldflags="-s -w" -o bin/followers services/followers/cmd/main.go
@go build -ldflags="-s -w" -o bin/gateway services/gateway/cmd/main.go
@go build -ldflags="-s -w" -o bin/tweets services/tweets/cmd/main.go
@go build -ldflags="-s -w" -o bin/users services/users/cmd/main.go
format:
@scripts/gofmt.sh
test:
@scripts/run-integration-tests.sh
setup-k8s:
@scripts/setup-k8s.sh
helm-install:
@helm install ./helm --name=twtr-dev --tiller-namespace=twtr-dev --namespace=twtr-dev
helm-upgrade:
@helm upgrade twtr-dev ./helm --tiller-namespace=twtr-dev --namespace=twtr-dev
helm-debug:
@helm install --dry-run --debug ./helm --name=twtr-dev --tiller-namespace=twtr-dev --namespace=twtr-dev
helm-purge:
@helm ls --all --short --tiller-namespace=twtr-dev | xargs -L1 helm delete --purge --tiller-namespace=twtr-dev
docker-build-push:
@scripts/build-and-push-docker-images.sh