Skip to content

Commit

Permalink
Added basic makefile to automatize the installation steps.
Browse files Browse the repository at this point in the history
  • Loading branch information
pantierra committed Oct 31, 2024
1 parent 6a90664 commit 8ce4989
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions Makefile
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"

0 comments on commit 8ce4989

Please sign in to comment.