From 9b2f07a27b4da578f9773f9691592f80f801c89e Mon Sep 17 00:00:00 2001 From: Sheogorath <sheogorath@shivering-isles.com> Date: Tue, 5 Oct 2021 20:56:40 +0200 Subject: [PATCH] cli: Add preflight checks to Makefile --- cli/Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cli/Makefile b/cli/Makefile index cb48dfa89..b6f518196 100644 --- a/cli/Makefile +++ b/cli/Makefile @@ -2,9 +2,14 @@ include ../utils/help.mk +.PHONY: preflight +preflight: + # Check for required tools + command -v podman > /dev/null + .PHONY: install -install: ## Install koolbox, the Kubernetes Toolbox for SI-Infrastructure +install: preflight ## Install koolbox, the Kubernetes Toolbox for SI-Infrastructure install -m 755 ./koolbox ~/bin/koolbox -build: ## Build container locally instead of using one from upstream +build: preflight ## Build container locally instead of using one from upstream podman build -t quay.io/sheogorath/koolbox:latest . -- GitLab