Skip to content

Commit

Permalink
Update the Chaincode as a service builders (#102)
Browse files Browse the repository at this point in the history
* gitGet the builders from 2.5, and updated to 2.4.3

Signed-off-by: Matthew B White <[email protected]>

* Update to use the 2.4 versions of the standard Chaincode as a service builders.

Signed-off-by: Matthew B White <[email protected]>
  • Loading branch information
mbwhite authored Mar 18, 2022
1 parent fa36e3e commit 20b0faa
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 \
Expand Down
7 changes: 7 additions & 0 deletions internal/pkg/peer/runtime.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 20b0faa

Please sign in to comment.