-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
85 lines (65 loc) · 1.39 KB
/
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
##
# hyperdos
#
# @file
# @version v1-alpha
build-local-sshbox-image:
docker build -t local-sshbox -f local/Dockerfile .
minikube-import-images:
minikube --profile hyperbolic \
--alsologtostderr image load \
--remote=false --pull=false 'local-sshbox:latest'
deploy-local-yaml:
cd local; \
kubectl apply -f example.yaml
run-sshbox-image:
docker run -t local-sshbox --rm -d -p '2222:2222' local-sshbox
build-epitome-image:
docker build -t epitome ./epitome
run-epitome-image:
docker run --rm -it epitome
build-and-run-epitome-image: build-epitome-image run-epitome-image
build:
cd epitome; \
go build -o ./epitome
run-epitome:
cd epitome; \
export HYPERBOLIC_GATEWAY_URL='https://api.dev-hyperbolic.xyz' && \
go run . -loglevel debug -kubeconfig ~/.kube/config
epitome-help:
cd epitome; \
go run . -help
mod-tidy:
cd epitome; \
go mod tidy
test:
cd epitome; \
go test ./...
.PHONY: helm-test
helm-test:
@cd metadeployment; \
helm template metadeployment \
--set ref="dev" \
.
@cd gitapps/nvidia-smi; \
helm template nvidia-smi \
--set ref="dev" \
.
@cd gitapps/epitome; \
helm template epitome \
--set ref="dev" \
.
@cd gitapps/epitome; \
helm template epitome \
--set ref="main" \
.
@cd gitapps/pre-pull; \
helm template pre-pull \
--set ref="main" \
.
test-helm-install:
@cd charts/hyperdos; \
helm template hyperdos \
--debug \
--set ref="dev" \
.