CNI: Allow building with go 1.16

This forces the golang modules that we don't support to be off. It's
important to allow building kuryr-cni to be built with go 1.16 where
modules are on by default.

Change-Id: I058ab8d9e5e7df37efeee278ff4652de5f6861f3
This commit is contained in:
Michał Dulko 2021-03-23 18:54:06 +01:00
parent 93a522e60f
commit 217c6c4c00
1 changed files with 2 additions and 1 deletions

View File

@ -2,7 +2,8 @@ FROM quay.io/kuryr/golang:1.15 as builder
WORKDIR /go/src/opendev.com/kuryr-kubernetes
COPY . .
RUN go build -o /go/bin/kuryr-cni ./kuryr_cni
# FIXME(dulek): I guess we need to switch to modules anyway.
RUN GO111MODULE=off go build -o /go/bin/kuryr-cni ./kuryr_cni
FROM registry.centos.org/centos:8
LABEL authors="Antoni Segura Puimedon<toni@kuryr.org>, Michał Dulko<mdulko@redhat.com>"