Skip to content

Commit 8ce4989

Browse files
committed
Added basic makefile to automatize the installation steps.
1 parent 6a90664 commit 8ce4989

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

Makefile

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Makefile for eoapi-k8s
2+
3+
# Variables
4+
HELM_REPO_URL=https://devseed.com/eoapi-k8s/
5+
HELM_CHART_NAME=eoapi/eoapi
6+
HELM_CHART_VERSION=0.1.2
7+
PGO_CHART_VERSION=5.5.2
8+
9+
.PHONY: all install
10+
11+
# Default target
12+
all: install
13+
14+
install:
15+
@echo "Installing dependencies."
16+
helm install --set disable_check_for_upgrades=true pgo oci://registry.developers.crunchydata.com/crunchydata/pgo --version $(PGO_CHART_VERSION)
17+
@echo "Adding eoAPI helm repository."
18+
helm repo add eoapi $(HELM_REPO_URL)
19+
@echo "Installing eoAPI helm chart."
20+
cd ./helm-chart && \
21+
helm install --namespace eoapi --create-namespace --set gitSha=$$(git rev-parse HEAD | cut -c1-10) eoapi ./eoapi
22+
23+
help:
24+
@echo "Makefile commands:"
25+
@echo " make install - Install eoAPI on a cluster"

0 commit comments

Comments
 (0)