Skip to content

Commit

Permalink
Add support for other container engines.
Browse files Browse the repository at this point in the history
  • Loading branch information
montaguethomas committed May 22, 2024
1 parent d06c04c commit b8ecfd2
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
CONTAINER_ENGINE ?= docker
REDIS_VERSION ?= v7.0.13
SENTINEL_VERSION ?= v7.0.13
EXPORTER_VERSION ?= v1.48.0
Expand All @@ -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
Expand Down

0 comments on commit b8ecfd2

Please sign in to comment.