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.
This commit is contained in:
@@ -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")
|
HUGO_VERSION = $(shell grep ^HUGO_VERSION netlify.toml | tail -n 1 | cut -d '=' -f 2 | tr -d " \"\n")
|
||||||
DOCKER_IMAGE = kubernetes-hugo
|
DOCKER_IMAGE = kubernetes-hugo
|
||||||
DOCKER_RUN = $(DOCKER) run --rm --interactive --tty --volume $(CURDIR):/src
|
DOCKER_RUN = $(DOCKER) run --rm --interactive --tty --volume $(CURDIR):/src
|
||||||
|
|||||||
Reference in New Issue
Block a user