Adam Štrauch
bc50cb1105
* full implementation of snapshots * tests of the snapshot backend * Drone CI pipeline * New snapshots handlers * Filesystem driver * S3 driver
22 lines
587 B
Makefile
22 lines
587 B
Makefile
.PHONY: test
|
|
test:
|
|
go test -v apps/*.go
|
|
go test -v apps/drivers/*.go
|
|
|
|
build:
|
|
#podman run --rm --privileged -ti -v ${shell pwd}:/srv docker.io/library/golang:1.14-stretch /bin/sh -c "cd /srv && go build"
|
|
go build -a -ldflags "-linkmode external -extldflags '-static' -s -w"
|
|
|
|
.PHONY: minio
|
|
minio:
|
|
mkdir -p ./tmp/snapshots
|
|
-podman stop rosti-snapshots
|
|
-podman rm rosti-snapshots
|
|
podman run -d --name rosti-snapshots \
|
|
-u 1000 \
|
|
-p 9000:9000 \
|
|
-p 9001:9001 \
|
|
-e MINIO_ROOT_USER=test \
|
|
-e MINIO_ROOT_PASSWORD=testtest \
|
|
minio/minio server /data --console-address ":9001"
|