-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (30 loc) · 1.13 KB
/
Makefile
File metadata and controls
40 lines (30 loc) · 1.13 KB
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
chartVersion := 0.1.2
imageVersion := latest
GOOS ?= linux
GOARCH ?= $(shell uname -m | sed 's/x86_64/amd64/' | sed 's/aarch64/arm64/')
init:
cp pkg/config.default.yaml config.yaml
protocol:
cd proto && ./gen.sh
build:
docker build --target build --platform=$(GOOS)/$(GOARCH) --tag localhost:5001/blobcache:$(imageVersion) .
docker push localhost:5001/blobcache:$(imageVersion)
start:
cd hack && okteto up --file okteto.yaml
stop:
cd hack && okteto down --file okteto.yaml
build-chart:
helm package --dependency-update deploy/charts/blobcache --version $(chartVersion)
publish-chart:
helm push beam-blobcache-v2-chart-$(chartVersion).tgz oci://public.ecr.aws/n4e0e1y0
rm beam-blobcache-v2-chart-$(chartVersion).tgz
testclients:
GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o bin/throughput e2e/throughput/main.go
GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o bin/fs e2e/fs/main.go
GOOS=$(GOOS) GOARCH=$(GOARCH) go build -o bin/basic e2e/basic/main.go
setup: build
@if [ "$(shell kubectl config current-context)" != "k3d-beta9" ]; then \
echo "Current context is not k3d-beta9"; \
exit 1; \
fi
cd hack; kubectl apply -f deployment.yaml; cd ..