Skip to content

Commit ff138ea

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

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Makefile

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

0 commit comments

Comments
 (0)