Add a top-level Makefile.
This is primarily to automate launching jaeger in docker for easier viewing of traces.
This commit is contained in:
parent
f2d16d302a
commit
a6cf1adf4b
25
Makefile
Normal file
25
Makefile
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
SHELL := bash
|
||||||
|
.ONESHELL:
|
||||||
|
.SHELLFLAGS := -eu -o pipefail -c
|
||||||
|
.DELETE_ON_ERROR:
|
||||||
|
MAKEFLAGS += --warn-undefined-variables
|
||||||
|
MAKEFLAGS += --no-builtin-rules
|
||||||
|
|
||||||
|
ifeq ($(origin .RECIPEPREFIX), undefined)
|
||||||
|
$(error This Make does not support .RECIPEPREFIX. Please use GNU Make 4.0 or later)
|
||||||
|
endif
|
||||||
|
.RECIPEPREFIX = >
|
||||||
|
|
||||||
|
.PHONY: build
|
||||||
|
build: target/debug/toy
|
||||||
|
|
||||||
|
.PHONY: clean
|
||||||
|
clean:
|
||||||
|
> cargo clean
|
||||||
|
|
||||||
|
target/debug/toy:
|
||||||
|
> cargo build
|
||||||
|
|
||||||
|
.PHONY: jaeger
|
||||||
|
jaeger:
|
||||||
|
> docker run -d --rm -p 6831:6831/udp -p 6832:6832/udp -p 16686:16686 -p 14268:14268 jaegertracing/all-in-one:latest
|
Loading…
Reference in New Issue
Block a user