From e5f194967ae1c1b40e51e7e96be50b777a15cfcb Mon Sep 17 00:00:00 2001 From: Antti Kervinen Date: Fri, 15 Mar 2024 14:31:40 +0200 Subject: [PATCH] memtierd: update the nri-memtierd plugin to use memtierd v0.1.1 memtierd requires to be built with go 1.22. This patch changes nri-memtierd build not to follow GO_VERSION of all the other plugins. Other options include downgrading memtierd required go version or upgrading GO_VERSION of all nri-plugins. Signed-off-by: Antti Kervinen --- cmd/plugins/memtierd/Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/cmd/plugins/memtierd/Dockerfile b/cmd/plugins/memtierd/Dockerfile index 856a43e8a..5959957f8 100644 --- a/cmd/plugins/memtierd/Dockerfile +++ b/cmd/plugins/memtierd/Dockerfile @@ -1,10 +1,8 @@ -ARG GO_VERSION=1.20 - -FROM golang:${GO_VERSION}-bullseye as builder +FROM golang:1.22-bullseye as builder WORKDIR /go/builder -RUN GOBIN=/bin go install -tags osusergo,netgo -ldflags "-extldflags=-static" github.com/intel/memtierd/cmd/memtierd@c67204d6af3e5f64cd396f1c29aafa729e4363ba +RUN GOBIN=/bin go install -tags osusergo,netgo -ldflags "-extldflags=-static" github.com/intel/memtierd/cmd/memtierd@v0.1.1 # Fetch go dependencies in a separate layer for caching COPY go.mod go.sum ./