Skip to content

Commit

Permalink
better method to disable docker
Browse files Browse the repository at this point in the history
  • Loading branch information
paulfantom committed Aug 14, 2018
1 parent c7f92b5 commit 61c0be2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ IMAGE = $(REGISTRY)machine-api-operator
.PHONY: all
all: check build test

ifndef NO_DOCKER
NO_DOCKER ?= 0
ifeq ($(NO_DOCKER), 1)
DOCKER_CMD =
else
DOCKER_CMD := docker run --rm -v "$(PWD)":/go/src/github.com/openshift/machine-api-operator:Z -w /go/src/github.com/openshift/machine-api-operator golang:1.10
endif

Expand Down

0 comments on commit 61c0be2

Please sign in to comment.