From 7607fd801b71c14f69d8a5fb84a2ffbbac5422f1 Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Wed, 8 Mar 2023 19:01:54 +0530 Subject: [PATCH] Dockerfile: Add missing GOPROXY build argument Previously, commit 102616b15852dac174a071012f945d8522a05265 tried to expose GOPROXY env var from developer environment by specifying it as environment variable or build argument to container build process. But using --build-arg to container build command would require the same to be referenced inside Dockerfile/Containerfile so that the following warning can be avoided: [Warning] one or more build args were not consumed: [GOPROXY] Signed-off-by: Anoop C S --- testing/containers/ceph/Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/testing/containers/ceph/Dockerfile b/testing/containers/ceph/Dockerfile index 4634ce4..12e14e5 100644 --- a/testing/containers/ceph/Dockerfile +++ b/testing/containers/ceph/Dockerfile @@ -24,6 +24,8 @@ ARG GO_VERSION=1.19.5 ENV GO_VERSION=${GO_VERSION} ARG GOARCH ENV GOARCH=${GOARCH} +ARG GOPROXY +ENV GOPROXY=${GOPROXY} RUN true && \ gotar=go${GO_VERSION}.linux-${GOARCH}.tar.gz && \ gourl="https://dl.google.com/go/${gotar}" && \