hyperledger / fabric-samples

Samples for Hyperledger Fabric
https://wiki.hyperledger.org/display/fabric
Apache License 2.0
2.81k stars 3.4k forks source link

Docker build deprecated resulting in Failed to GET ... with status 404 Not Found #1178

Closed marishlucas closed 8 months ago

marishlucas commented 9 months ago

Using the command docker build from the cloud chaincode deployment issues the following error:

Step 24/42 : ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-${PLATFORM} /tini
ADD failed: failed to GET https://github.com/krallin/tini/releases/download/v0.19.0/tini- with status 404 Not Found

I am guessing that ENV PLATFORM=${TARGETARCH} from the dockerfile isn't being set correctly.

Following the warning from the log:

DEPRECATED: The legacy builder is deprecated and will be removed in a future release.
            Install the buildx component to build images with BuildKit

I installed the dockerx plugin, resulting in a successful build with the command: docker buildx build -t $CHAINCODE_IMAGE contracts/$CHAINCODE_NAME-typescript