forked from yandex-cloud/geesefs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
36 lines (25 loc) · 903 Bytes
/
Makefile
File metadata and controls
36 lines (25 loc) · 903 Bytes
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
export CGO_ENABLED=0
tag := latest
run-test: s3proxy.jar
./test/run-tests.sh
run-xfstests: s3proxy.jar xfstests
./test/run-xfstests.sh
xfstests:
git clone --depth=1 https://github.com/kdave/xfstests
cd xfstests && patch -p1 -l < ../test/xfstests.diff
s3proxy.jar:
wget https://github.com/gaul/s3proxy/releases/download/s3proxy-1.8.0/s3proxy -O s3proxy.jar
get-deps: s3proxy.jar
go get -t ./...
build:
go build -ldflags "-X main.Version=`git rev-parse HEAD`"
build-docker:
docker build . --target build -f ./Dockerfile -t localhost:5001/geesefs:$(tag)
docker push localhost:5001/geesefs:$(tag)
start:
cd hack && okteto up -f okteto.yaml
install:
go install -ldflags "-X main.Version=`git rev-parse HEAD`"
.PHONY: protoc
protoc:
protoc --go_out=. --experimental_allow_proto3_optional --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative core/pb/*.proto