Skip to content

Commit

Permalink
Fix the run goal (#35)
Browse files Browse the repository at this point in the history
* Fix the run goal

Instead of relying on the binary being present, we just use go run.
We also set all the necessary compilation flags, environment variables
and trap the interrupt signal in order to avoid having Make fail when
the execution of the goal is interrupted

Signed-off-by: Georgios Andrianakis <[email protected]>
  • Loading branch information
geoand authored and jpkrohling committed Sep 21, 2018
1 parent 347bcb0 commit 5d0920e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ e2e-tests: es crd build docker push

.PHONY: crd
run: crd
@OPERATOR_NAME=$(OPERATOR_NAME) KUBERNETES_CONFIG=$(KUBERNETES_CONFIG) WATCH_NAMESPACE=$(WATCH_NAMESPACE) ./_output/bin/jaeger-operator start
@bash -c 'trap "exit 0" INT; OPERATOR_NAME=${OPERATOR_NAME} KUBERNETES_CONFIG=${KUBERNETES_CONFIG} WATCH_NAMESPACE=${WATCH_NAMESPACE} go run -ldflags ${LD_FLAGS} main.go start'

.PHONY: es
es:
Expand Down

0 comments on commit 5d0920e

Please sign in to comment.