From 20b0faa24ab07f1f3517eb9c833df13a491161cc Mon Sep 17 00:00:00 2001 From: Matthew B White Date: Fri, 18 Mar 2022 09:09:36 +0000 Subject: [PATCH] Update the Chaincode as a service builders (#102) * gitGet the builders from 2.5, and updated to 2.4.3 Signed-off-by: Matthew B White * Update to use the 2.4 versions of the standard Chaincode as a service builders. Signed-off-by: Matthew B White --- Dockerfile | 2 +- internal/pkg/peer/runtime.go | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 181f875..0c38015 100644 --- a/Dockerfile +++ b/Dockerfile @@ -41,7 +41,7 @@ ENV PATH=/opt/gradle/bin:/opt/maven/bin:${PATH} ADD builders/java/pom.xml /opt/fabric-chaincode-java/ RUN mkdir -p /opt/fabric \ && curl -sSL https://hyperledger-fabric.jfrog.io/artifactory/fabric-binaries/hyperledger-fabric-linux-amd64-2.4-stable.tar.gz | tar xzf - -C /opt/fabric \ - && curl -sSL https://github.com/hyperledger/fabric/releases/download/v2.4.1/hyperledger-fabric-linux-amd64-2.4.1.tar.gz | tar xzf - -C /opt/fabric \ + && curl -sSL https://github.com/hyperledger/fabric/releases/download/v2.4.3/hyperledger-fabric-linux-amd64-2.4.3.tar.gz | tar xzf - -C /opt/fabric \ && curl -sSL https://github.com/hyperledger/fabric-ca/releases/download/v1.5.2/hyperledger-fabric-ca-linux-amd64-1.5.2.tar.gz | tar xzf - -C /opt/fabric \ && cd /opt/fabric-chaincode-java \ && mvn -q dependency:copy-dependencies -DoutputDirectory=/opt/fabric-chaincode-java/lib \ diff --git a/internal/pkg/peer/runtime.go b/internal/pkg/peer/runtime.go index 3af473b..61c67d5 100644 --- a/internal/pkg/peer/runtime.go +++ b/internal/pkg/peer/runtime.go @@ -216,6 +216,13 @@ func (p *Peer) createConfig(dataDirectory, mspDirectory string) error { "npm_config_cache", }, }, + { + "path": path.Join(homeDirectory, "builders", "ccaas"), + "name": "chaincode-as-a-service-builder", + "propagateEnvironment": []string{ + "CHAINCODE_AS_A_SERVICE_BUILDER_CONFIG", + }, + }, { "path": path.Join(homeDirectory, "builders", "external"), "name": "external-service-builder",