1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 07:00:04 +08:00

Chore: Add compatibility with podman for build task. (#4064)

Change in Makefile for build with docker or podman via one interface. Also add error if no docker or podman installed.

Co-authored-by: Maxim Albeschenko <admin013@mnalb-n01.localdomain>
This commit is contained in:
Maxim 2021-02-09 07:41:33 +03:00 committed by GitHub
parent 8bd0d20a54
commit 7606e57177
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,2 +1,13 @@
HAVE_DOCKER := $(shell which docker 2>/dev/null)
HAVE_PODMAN := $(shell which podman 2>/dev/null)
build:
docker build -t nvim -f Dockerfile.nvim-python3 .
ifdef HAVE_DOCKER
docker build -t nvim -f Dockerfile.nvim-python3 .
else
ifdef HAVE_PODMAN
podman build -t nvim -f Dockerfile.nvim-python3 .
else
$(error "No docker or podman in $(PATH). Check if one was installed.")
endif
endif