From 849aa309b29129a67b2d1bf2f6f2f78cfc310c52 Mon Sep 17 00:00:00 2001 From: ShiptDevopsApps Date: Fri, 17 Jun 2022 20:59:30 +0000 Subject: [PATCH] Update build properties to enable Dynatrace OneAgent code instrumentation --- Dockerfile | 4 ++-- Makefile | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index b03f67465..7f3fd1afa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.17-alpine as builder +FROM golang:1.17.10-alpine as builder ARG TARGETPLATFORM ARG REVISON @@ -17,7 +17,7 @@ COPY cmd/ cmd/ COPY pkg/ pkg/ # build -RUN CGO_ENABLED=0 go build \ +RUN CGO_ENABLED=1 go build \ -ldflags "-s -w -X github.com/fluxcd/flagger/pkg/version.REVISION=${REVISON}" \ -a -o flagger ./cmd/flagger diff --git a/Makefile b/Makefile index c6c0deae5..0798715f6 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ VERSION?=$(shell grep 'VERSION' pkg/version/version.go | awk '{ print $$4 }' | t LT_VERSION?=$(shell grep 'VERSION' cmd/loadtester/main.go | awk '{ print $$4 }' | tr -d '"' | head -n1) build: - CGO_ENABLED=0 go build -a -o ./bin/flagger ./cmd/flagger + CGO_ENABLED=1 go build -a -o ./bin/flagger ./cmd/flagger fmt: go mod tidy