From c00f694d7cf572a419a360f2d74e9056d0fd7a17 Mon Sep 17 00:00:00 2001 From: Tim Bannister Date: Wed, 27 May 2020 21:58:38 +0100 Subject: [PATCH] Allow specifying container runtime for Makefile This commit lets you run, eg: DOCKER=podman make docker-image DOCKER=podman make docker-serve and spin up the website locally for testing, without using Docker or needing to have Docker installed. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c7756208cc..576b25eebf 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -DOCKER = docker +DOCKER ?= docker HUGO_VERSION = $(shell grep ^HUGO_VERSION netlify.toml | tail -n 1 | cut -d '=' -f 2 | tr -d " \"\n") DOCKER_IMAGE = kubernetes-hugo DOCKER_RUN = $(DOCKER) run --rm --interactive --tty --volume $(CURDIR):/src