node-api/Makefile
Adam Štrauch 50fb0bec7e
Some checks failed
Unittests / deploy-dev (push) Has been cancelled
Unittests / unittests (push) Has been cancelled
Update Makefile to use golang:1.24-bookworm and disable OOM killer in docker.go
2026-01-05 16:09:59 +01:00

28 lines
862 B
Makefile

.PHONY: test
test:
go test -race -v apps/*.go
go test -race -v apps/drivers/*.go
go test -race -v detector/*.go
# env DOCKER_SOCKET="unix:///var/run/docker.sock" go test -v containers/*.go # Doesn't work in Drone right now
build:
podman run --rm --privileged -ti -v ${shell pwd}:/srv docker.io/library/golang:1.24-bookworm /bin/sh -c "cd /srv && go build -o node-api-bookworm"
#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 \
docker.io/minio/minio:latest server /data --console-address ":9001"
.PHONY: clean
clean:
-podman stop rosti-snapshots
-podman rm rosti-snapshots