Update Makefile to use golang:1.24-bookworm and disable OOM killer in docker.go
Some checks failed
Unittests / deploy-dev (push) Has been cancelled
Unittests / unittests (push) Has been cancelled

This commit is contained in:
Adam Štrauch 2026-01-05 16:09:59 +01:00
parent 29a9594ddb
commit 50fb0bec7e
Signed by: cx
GPG key ID: 7262DAFE292BCE20
2 changed files with 5 additions and 4 deletions

View file

@ -6,8 +6,8 @@ test:
# env DOCKER_SOCKET="unix:///var/run/docker.sock" go test -v containers/*.go # Doesn't work in Drone right now # env DOCKER_SOCKET="unix:///var/run/docker.sock" go test -v containers/*.go # Doesn't work in Drone right now
build: build:
#podman run --rm --privileged -ti -v ${shell pwd}:/srv docker.io/library/golang:1.14-stretch /bin/sh -c "cd /srv && go 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" #go build -a -ldflags "-linkmode external -extldflags '-static' -s -w"
.PHONY: minio .PHONY: minio
minio: minio:

View file

@ -343,8 +343,9 @@ func (d *Driver) Create(name string, image string, volumePath string, HTTPPort i
// OOMKillDisable = true // OOMKillDisable = true
// } // }
// We disable OOM killer because it keeps containers in resource heavy loop // We disable OOM killer because it keeps containers in resource heavy loop
// This is from some discussion: If OOM-killer is disabled, tasks under cgroup will hang/sleep in memory cgroup's OOM-waitqueue when they request accountable memory // This is from some discussion: If OOM-killer is disabled, tasks under cgroup will hang/sleep in memory cgroup's OOM-waitqueue when they request accountable memory.
OOMKillDisable := true // Disabling OOM killer kills the whole machine because some kernel processes get under memory pressure and the host system becomes unresponsive.
OOMKillDisable := false
envList := []string{} envList := []string{}
for key, value := range env { for key, value := range env {