-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
34 lines (26 loc) · 855 Bytes
/
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
.PHONY: deploy docker build publish integration_tests
BINARY := haystackadapter
build: server/main.go
GOOS=linux GOARCH=amd64 go build -o ${BINARY} server/main.go
chmod 755 ${BINARY}
docker:
mv ${BINARY} docker/.
docker build -f docker/Dockerfile -t haystack-istio-adapter docker/
.PHONY: setup
setup:
./scripts/setup.sh
.PHONY: validate
validate:
./scripts/validate-go
publish:
./scripts/publish-to-docker-hub.sh
integration_tests: build docker
docker-compose -f docker/docker-compose.yaml -p sandbox up -d
sleep 60
go test ./...
docker-compose -f docker/docker-compose.yaml -p sandbox stop
deploy:
kubectl -n istio-system apply -f haystack-adapter.yaml
kubectl -n istio-system apply -f testdata/tracespan.yaml
kubectl -n istio-system apply -f config/haystack.yaml
kubectl -n istio-system apply -f testdata/haystack-operator.yaml