In PR #346, the CA base docker image was switched from alpine-golang to ubuntu. In the new image, golang is now installed with curl using the GO_VER, TARGETOS, AND TARGETARCH build args.
Depending on the version of Docker installed on the build host, TARGETOS and TARGETARCH are not always available in the build context. (In recent Docker versions, these args are implicit in the build context.) For instance, the fabric-interop tests at Azure are currently failing when trying to build a CA docker image.
This PR passes the target arch/os from the Makefile to docker as build args.
Signed-off-by: Josh Kneubuhl jkneubuh@us.ibm.com
Type of change
Description
In PR #346, the CA base docker image was switched from alpine-golang to ubuntu. In the new image, golang is now installed with curl using the
GO_VER
,TARGETOS
, ANDTARGETARCH
build args.Depending on the version of Docker installed on the build host,
TARGETOS
andTARGETARCH
are not always available in the build context. (In recent Docker versions, these args are implicit in the build context.) For instance, the fabric-interop tests at Azure are currently failing when trying to build a CA docker image.This PR passes the target arch/os from the Makefile to docker as build args.
Related issues