Skip to content

Commit a911148

Browse files
committed
fix(build): avoid cgo in BPF generation
Signed-off-by: Alex Castilio dos Santos <alexsantos@microsoft.com>
1 parent 042def1 commit a911148

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ container-docker-windows: # util target to build Windows container images withou
261261

262262
retina-image: ## build the retina linux container image.
263263
echo "Building for $(PLATFORM)"
264+
set -e; \
264265
for target in $(AGENT_TARGETS); do \
265266
echo "Building for $$target"; \
266267
if [ "$$target" = "init" ]; then \

controller/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ ARG GOOS=linux
2525
ARG GOARCH=amd64
2626
ENV GOOS=${GOOS}
2727
ENV GOARCH=${GOARCH}
28+
ENV CGO_ENABLED=0
29+
ENV GOEXPERIMENT=ms_nocgo_opensslcrypto
2830
RUN if [ "$GOOS" = "linux" ] ; then \
2931
tdnf install -y clang lld bpftool libbpf-devel; \
3032
fi

0 commit comments

Comments
 (0)