Skip to content

Commit fa58a8f

Browse files
committed
Install go on CLI and pull down ccenv image on leader
1 parent 4de50a1 commit fa58a8f

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

catalog/hyperledger/single-cluster-1-0.bom

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,8 @@ brooklyn.catalog:
119119
brooklyn.config:
120120
is.leader.node: true
121121
launch.latch: $brooklyn:component("my-hyperledger-orderer-node").attributeWhenReady("service.isUp")
122+
post.launch.command: |
123+
sudo docker pull hyperledger/fabric-ccenv:x86_64-1.0.0-alpha2
122124

123125
memberSpec:
124126
$brooklyn:entitySpec:
@@ -223,9 +225,14 @@ brooklyn.catalog:
223225
-e CORE_PEER_GOSSIP_SKIPHANDSHAKE=true \
224226
-e CORE_PEER_ID=cli \
225227
-e CORE_PEER_ADDRESS=$PEER_ADDRESS:7051 \
228+
-e GOPATH=/opt/golang \
226229
-p 7050-7059:7050-7059 \
227230
hyperledger/fabric-peer:x86_64-1.0.0-alpha2 bash -c 'while true; do sleep 20170504; done'
228231

232+
post.launch.command: |
233+
sudo docker exec fabric-cli bash -c \
234+
'apt-get -y update && apt-get -y install golang git && mkdir /opt/golang'
235+
229236
checkRunning.command: |
230237
STATUS=$(sudo docker inspect -f {{.State.Running}} fabric-cli)
231238
sudo service docker status && [ "${STATUS}" = "true" ]

0 commit comments

Comments
 (0)