Skip to content

Commit

Permalink
Remove unused container setup from testutils Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
RadekManak committed Feb 1, 2023
1 parent ebafd47 commit 02f6689
Showing 1 changed file with 0 additions and 29 deletions.
29 changes: 0 additions & 29 deletions testutils/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,35 +12,6 @@ PROJECT_DIR := $(shell dirname $(abspath $(lastword $(MAKEFILE_LIST))))
ENVTEST = go run ${PROJECT_DIR}/vendor/sigs.k8s.io/controller-runtime/tools/setup-envtest
GOLANGCI_LINT = go run ${PROJECT_DIR}/vendor/github.com/golangci/golangci-lint/cmd/golangci-lint

NO_DOCKER ?= 0

ifeq ($(shell command -v podman > /dev/null 2>&1 ; echo $$? ), 0)
ENGINE=podman
else ifeq ($(shell command -v docker > /dev/null 2>&1 ; echo $$? ), 0)
ENGINE=docker
else
NO_DOCKER=1
endif

USE_DOCKER ?= 0
ifeq ($(USE_DOCKER), 1)
ENGINE=docker
endif

ifeq ($(NO_DOCKER), 1)
DOCKER_CMD =
else
DOCKER_CMD := $(ENGINE) run \
--rm \
-v "$(PWD)/..":/go/src/github.com/openshift/cluster-api-actuator-pkg:Z \
-w /go/src/github.com/openshift/cluster-api-actuator-pkg/testutils \
-e "GO111MODULE=$(GO111MODULE)" \
-e "GOFLAGS=$(GOFLAGS)" \
-e "GOPROXY=$(GOPROXY)" \
registry.ci.openshift.org/openshift/release:golang-1.19
IMAGE_BUILD_CMD = $(ENGINE) build
endif

.PHONY: all
all: lint unit

Expand Down

0 comments on commit 02f6689

Please sign in to comment.