Skip to content

Commit

Permalink
Merge pull request #19 from openshift/no_docker
Browse files Browse the repository at this point in the history
ease disabling docker
  • Loading branch information
paulfantom committed Aug 14, 2018
2 parents 66cd006 + 61c0be2 commit 0fd6f4d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ IMAGE = $(REGISTRY)machine-api-operator
.PHONY: all
all: check build test

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
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

.PHONY: check
check: ## Lint code
Expand Down

0 comments on commit 0fd6f4d

Please sign in to comment.