2021-10-02 18:00:35 +00:00
|
|
|
.PHONY: test
|
|
|
|
test:
|
|
|
|
go test -v apps/*.go
|
|
|
|
go test -v apps/drivers/*.go
|
2022-02-03 00:31:47 +00:00
|
|
|
go test -v detector/*.go
|
2022-02-06 00:15:55 +00:00
|
|
|
go test -v containers/*.go # Doesn't work in Drone right now
|
2021-10-02 18:00:35 +00:00
|
|
|
|
|
|
|
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 \
|
2022-02-03 00:31:47 +00:00
|
|
|
docker.io/minio/minio:latest server /data --console-address ":9001"
|
2021-12-20 03:53:22 +00:00
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
-podman stop rosti-snapshots
|
|
|
|
-podman rm rosti-snapshots
|