diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..b607108 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +# Makefile for eoapi-k8s + +# Variables +HELM_REPO_URL=https://devseed.com/eoapi-k8s/ +HELM_CHART_NAME=eoapi/eoapi +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"