-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommon.mk
More file actions
21 lines (16 loc) · 691 Bytes
/
common.mk
File metadata and controls
21 lines (16 loc) · 691 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
SHELL=/bin/bash
ifndef GITLAB_HOME
$(error Please run "source environment" in the gitlab-setup repo root directory before running make commands)
endif
ifeq ($(shell which kubectl),)
$(error Please install kubectl using "https://kubernetes.io/docs/tasks/tools/install-kubectl/")
endif
ifeq ($(shell which jq),)
$(error Please install jq using "apt-get install jq" or "brew install jq")
endif
ifeq ($(findstring Terraform v0.12.23, $(shell terraform --version 2>&1)),)
$(error You must use Terraform v0.12.23, please check your terraform version.)
endif
ifeq ($(findstring Python 3.7, $(shell python --version 2>&1)),)
$(error Please run make commands from a Python 3.7 virtualenv)
endif