forked from ssl-hep/ServiceX_DID_Finder_Demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
35 lines (24 loc) · 870 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
.PHONY: list
list:
@LC_ALL=C $(MAKE) -pRrq -f $(lastword $(MAKEFILE_LIST)) : 2>/dev/null | awk -v RS= -F: '/^# File/,/^# Finished Make data base/ {if ($$1 !~ "^[#.]") {print $$1}}' | sort | egrep -v -e '^[^[:alnum:]]' -e '^$@$$'
createcluster:
kind create cluster
build:
docker build -t servicex-did-finder-demo .
load:
kind load docker-image servicex-did-finder-demo:latest
servicex:
helm install -f values_minimal.yaml --version v1.0.17 pondd-servicex ssl-hep/servicex
demo:
kubectl create -f deploy.yaml
edit:
kubectl edit configmap pondd-servicex-flask-config
forward:
kubectl get pods --namespace default -l "app=pondd-servicex-servicex-app" -o jsonpath="{.items[0].metadata.name}" > POD_NAME
kubectl port-forward `cat POD_NAME` 5000:5000
test:
python tests/post.py
servicexstop:
helm delete pondd-servicex
deletecluster:
kind delete cluster