-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
54 lines (45 loc) · 1.15 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
define run
@echo "Patching Runtime with ./$1/patch.diff..."
@git apply ./$1/patch.diff
@echo "Running $1 from source...\n"
@cd $1 && ../go-src/bin/go run ./cmd
endef
default:
@echo "Select make target..."
clean: patch
@echo "Resetting Go to clean state..."
@git restore go-src
build-go: clean
@echo "Building Go from source..."
@cd go-src/src && ./make.bash
initdb:
@rm -rf example-app/pgdata
@initdb -D example-app/pgdata
postgres:
@postgres -D example-app/pgdata -p 5432
patch:
@echo "Creating patch..."
@git diff go-src > patch.diff
run-hello-world: clean
$(call run,1-test-patch)
jaeger:
@docker stop jaeger > /dev/null || true
@docker rm /jaeger > /dev/null || true
@docker run -d --name jaeger \
-e COLLECTOR_ZIPKIN_HOST_PORT=:9411 \
-e COLLECTOR_OTLP_ENABLED=true \
-p 6831:6831/udp \
-p 6832:6832/udp \
-p 5778:5778 \
-p 16686:16686 \
-p 4317:4317 \
-p 4318:4318 \
-p 14250:14250 \
-p 14268:14268 \
-p 14269:14269 \
-p 9411:9411 \
jaegertracing/all-in-one:1.41
# x := $(shell open http://localhost:16686)
microservices:
@cd example-app; \
overmind start || true