-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added basic makefile to automatize the installation steps.
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Makefile for eoapi-k8s | ||
|
||
# Variables | ||
HELM_REPO_URL=https://devseed.com/eoapi-k8s/ | ||
HELM_CHART_NAME=eoapi/eoapi | ||
HELM_CHART_VERSION=0.1.2 | ||
PGO_CHART_VERSION=5.5.2 | ||
|
||
.PHONY: all install | ||
|
||
# Default target | ||
all: install | ||
|
||
install: | ||
@echo "Installing dependencies." | ||
helm install --set disable_check_for_upgrades=true pgo oci://registry.developers.crunchydata.com/crunchydata/pgo --version $(PGO_CHART_VERSION) | ||
@echo "Adding eoAPI helm repository." | ||
helm repo add eoapi $(HELM_REPO_URL) | ||
@echo "Installing eoAPI helm chart." | ||
cd ./helm-chart && \ | ||
helm install --namespace eoapi --create-namespace --set gitSha=$$(git rev-parse HEAD | cut -c1-10) eoapi ./eoapi | ||
|
||
help: | ||
@echo "Makefile commands:" | ||
@echo " make install - Install eoAPI on a cluster" |