From b8ecfd2d78c9051d56107c350f0d9a503f2a4a90 Mon Sep 17 00:00:00 2001 From: Thomas Montague Date: Wed, 22 May 2024 14:26:17 -0500 Subject: [PATCH] Add support for other container engines. --- Makefile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 209f633..895ac6f 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,4 @@ +CONTAINER_ENGINE ?= docker REDIS_VERSION ?= v7.0.13 SENTINEL_VERSION ?= v7.0.13 EXPORTER_VERSION ?= v1.48.0 @@ -7,22 +8,22 @@ EXPORTER_IMG ?= quay.io/opstree/redis-exporter:$(EXPORTER_VERSION) SENTINEL_IMG ?= quay.io/opstree/redis-sentinel:$(SENTINEL_VERSION) build-redis: - docker build -t ${IMG} -f Dockerfile . + ${CONTAINER_ENGINE} build -t ${IMG} -f Dockerfile . push-redis: - docker push ${IMG} + ${CONTAINER_ENGINE} push ${IMG} build-redis-exporter: - docker build -t ${EXPORTER_IMG} -f Dockerfile.exporter . + ${CONTAINER_ENGINE} build -t ${EXPORTER_IMG} -f Dockerfile.exporter . push-redis-exporter: - docker push ${EXPORTER_IMG} + ${CONTAINER_ENGINE} push ${EXPORTER_IMG} build-sentinel : - docker build -t ${SENTINEL_IMG} -f Dockerfile.sentinel . + ${CONTAINER_ENGINE} build -t ${SENTINEL_IMG} -f Dockerfile.sentinel . push-sentinel : - docker push ${SENTINEL_IMG} + ${CONTAINER_ENGINE} push ${SENTINEL_IMG} setup-standalone-server-compose: docker-compose -f docker-compose-standalone.yaml up -d