hyperledger / fabric-ca

https://wiki.hyperledger.org/display/fabric
Apache License 2.0
441 stars 712 forks source link

Fix the interop-test build #347

Closed jkneubuh closed 1 year ago

jkneubuh commented 1 year ago

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, 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.

Related issues