github.com/pachyderm/pachyderm@v1.13.4/examples/opencv/Makefile (about) 1 # This Makefile is a reference for setting up and running various parts of this demo quickly 2 3 # Try to find the pachyderm files we'll need 4 data_dir := $(strip $(if $(shell ls ./edges.json 2>/dev/null), ".")) 5 data_dir := $(strip $(if $(data_dir), $(data_dir), $(shell ls -d $${HOME}/pachyderm/examples/opencv 2>/dev/null))) 6 data_dir := $(strip $(if $(data_dir), $(data_dir), $(shell ls -d $${HOME}/go/src/github.com/pachyderm/pachyderm/examples/opencv 2>/dev/null))) 7 8 echo: 9 echo "$(data_dir)" 10 11 opencv: 12 pachctl create repo images 13 pachctl create pipeline -f $(data_dir)/edges.json 14 pachctl create pipeline -f $(data_dir)/montage.json 15 pachctl put file images@master -i $(data_dir)/images.txt 16 pachctl put file images@master -i $(data_dir)/images2.txt 17 18 delete: 19 yes | pachctl delete all 20 21 minikube: 22 minikube start 23 @echo -n "Waiting for minikube to start"; \ 24 until minikube ip 2>/dev/null; do \ 25 echo -n "."; \ 26 sleep 1; \ 27 done; \ 28 echo 29 pachctl deploy local 30 @echo -n "Waiting for pachyderm to start"; \ 31 until \ 32 kubectl get po \ 33 -l suite=pachyderm,app=dash \ 34 -o jsonpath='{.items[0].status.conditions[?(@.type=="Ready")].status}' >/dev/null 2>&1; \ 35 do \ 36 echo -n "."; \ 37 sleep 1; \ 38 done; \ 39 echo; \ 40 echo -n "Waiting for the dash to be ready (may take a minute or two)"; \ 41 until [ "$$( \ 42 kubectl get po \ 43 -l suite=pachyderm,app=dash \ 44 -o jsonpath='{.items[0].status.conditions[?(@.type=="Ready")].status}')" = True ]; \ 45 do \ 46 echo -n "."; \ 47 sleep 1; \ 48 done; \ 49 echo 50 pachctl port-forward & 51 52 .PHONY: \ 53 echo \ 54 opencv \ 55 delete \ 56 minikube 57