Skip to content

Commit 2c2aa77

Browse files
committed
Upgrade Blockchain Explorer
Signed-off-by: Osama Rabea <osrab3@gmail.com>
1 parent 4b5eedb commit 2c2aa77

10 files changed

+22
-21
lines changed

e2e-network/docker/test-04-v2-snapshot.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ waitForContainer "ca.org1.example.com" "Listening on https://0.0.0.0:7054"
5656
waitForContainer "couchdb.peer0.org1.example.com" "Apache CouchDB has started. Time to relax."
5757
waitForContainer "peer0.org1.example.com" "Joining gossip network of channel my-channel1 with 1 organizations"
5858
waitForContainer "db.explorer.example.com" "database system is ready to accept connections" "200"
59-
waitForContainer "explorer.example.com" "Successfully created channel event hub for \[my-channel1\]" "200"
6059
waitForChaincode "peer0.org1.example.com" "my-channel1" "chaincode1" "0.0.1"
6160

6261
fablo_rest_org1="localhost:8801"
@@ -113,6 +112,8 @@ hook_command="perl -i -pe 's/FABRIC_VERSION=2\.3\.3/FABRIC_VERSION=2\.4\.2/g' ./
113112
"$FABLO_HOME/fablo.sh" restore "$snapshot_name" "$hook_command" &&
114113
"$FABLO_HOME/fablo.sh" start
115114
)
115+
116+
waitForContainer "explorer.example.com" "Successfully created channel event hub for \[my-channel1\]" "200"
116117
waitForChaincode "peer0.org1.example.com" "my-channel1" "chaincode1" "0.0.1"
117118

118119
sleep 5

e2e/__snapshots__/fablo-config-hlf2-1org-1chaincode-raft-explorer.json.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1527,7 +1527,7 @@ exports[`samples/fablo-config-hlf2-1org-1chaincode-raft-explorer.json should cre
15271527
"FABLO_VERSION=2.2.0
15281528
FABLO_BUILD=<date with git hash>
15291529
FABLO_REST_VERSION=0.1.2
1530-
HYPERLEDGER_EXPLORER_VERSION=1.1.8
1530+
HYPERLEDGER_EXPLORER_VERSION=2.0.0
15311531
15321532
COUCHDB_VERSION=3.1
15331533
FABRIC_COUCHDB_VERSION=0.4.18
@@ -2121,14 +2121,14 @@ services:
21212121
- basic
21222122
21232123
db.explorer.example.com:
2124-
image: hyperledger/explorer-db:\${HYPERLEDGER_EXPLORER_VERSION}
2124+
image: ghcr.io/hyperledger-labs/explorer-db:latest
21252125
container_name: db.explorer.example.com
21262126
environment:
21272127
- DATABASE_DATABASE=fabricexplorer
21282128
- DATABASE_USERNAME=hppoc
21292129
- DATABASE_PASSWORD=password
21302130
healthcheck:
2131-
test: "pg_isready -h localhost -p 5432 -q -U postgres"
2131+
test: "pg_isready -h localhost -p 5432 -q -U hppoc -d fabricexplorer"
21322132
interval: 5s
21332133
timeout: 10s
21342134
retries: 7
@@ -2138,7 +2138,7 @@ services:
21382138
- basic
21392139
21402140
explorer.example.com:
2141-
image: hyperledger/explorer:\${HYPERLEDGER_EXPLORER_VERSION}
2141+
image: ghcr.io/hyperledger-labs/explorer:latest
21422142
restart: on-failure:8
21432143
container_name: explorer.example.com
21442144
environment:

e2e/__snapshots__/fablo-config-hlf2-1org-1chaincode.json.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1438,7 +1438,7 @@ exports[`samples/fablo-config-hlf2-1org-1chaincode.json should create proper e2e
14381438
"FABLO_VERSION=2.2.0
14391439
FABLO_BUILD=<date with git hash>
14401440
FABLO_REST_VERSION=0.1.2
1441-
HYPERLEDGER_EXPLORER_VERSION=1.1.8
1441+
HYPERLEDGER_EXPLORER_VERSION=2.0.0
14421442
14431443
COUCHDB_VERSION=3.1
14441444
FABRIC_COUCHDB_VERSION=0.4.18

e2e/__snapshots__/fablo-config-hlf2-2orgs-2chaincodes-private-data.yaml.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2099,7 +2099,7 @@ exports[`samples/fablo-config-hlf2-2orgs-2chaincodes-private-data.yaml should cr
20992099
"FABLO_VERSION=2.2.0
21002100
FABLO_BUILD=<date with git hash>
21012101
FABLO_REST_VERSION=0.1.2
2102-
HYPERLEDGER_EXPLORER_VERSION=1.1.8
2102+
HYPERLEDGER_EXPLORER_VERSION=2.0.0
21032103
21042104
COUCHDB_VERSION=3.1
21052105
FABRIC_COUCHDB_VERSION=0.4.18

e2e/__snapshots__/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3022,7 +3022,7 @@ exports[`samples/fablo-config-hlf2-2orgs-2chaincodes-raft.yaml should create pro
30223022
"FABLO_VERSION=2.2.0
30233023
FABLO_BUILD=<date with git hash>
30243024
FABLO_REST_VERSION=0.1.2
3025-
HYPERLEDGER_EXPLORER_VERSION=1.1.8
3025+
HYPERLEDGER_EXPLORER_VERSION=2.0.0
30263026
30273027
COUCHDB_VERSION=3.1
30283028
FABRIC_COUCHDB_VERSION=0.4.18

e2e/__snapshots__/fablo-config-hlf2-3orgs-1chaincode-raft-explorer.json.test.ts.snap

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3317,7 +3317,7 @@ exports[`samples/fablo-config-hlf2-3orgs-1chaincode-raft-explorer.json should cr
33173317
"FABLO_VERSION=2.2.0
33183318
FABLO_BUILD=<date with git hash>
33193319
FABLO_REST_VERSION=0.1.2
3320-
HYPERLEDGER_EXPLORER_VERSION=1.1.8
3320+
HYPERLEDGER_EXPLORER_VERSION=2.0.0
33213321
33223322
COUCHDB_VERSION=3.1
33233323
FABRIC_COUCHDB_VERSION=0.4.18
@@ -4823,14 +4823,14 @@ services:
48234823
- basic
48244824
48254825
db.explorer.example.com:
4826-
image: hyperledger/explorer-db:\${HYPERLEDGER_EXPLORER_VERSION}
4826+
image: ghcr.io/hyperledger-labs/explorer-db:latest
48274827
container_name: db.explorer.example.com
48284828
environment:
48294829
- DATABASE_DATABASE=fabricexplorer
48304830
- DATABASE_USERNAME=hppoc
48314831
- DATABASE_PASSWORD=password
48324832
healthcheck:
4833-
test: "pg_isready -h localhost -p 5432 -q -U postgres"
4833+
test: "pg_isready -h localhost -p 5432 -q -U hppoc -d fabricexplorer"
48344834
interval: 5s
48354835
timeout: 10s
48364836
retries: 7
@@ -4840,7 +4840,7 @@ services:
48404840
- basic
48414841
48424842
explorer.example.com:
4843-
image: hyperledger/explorer:\${HYPERLEDGER_EXPLORER_VERSION}
4843+
image: ghcr.io/hyperledger-labs/explorer:latest
48444844
restart: on-failure:8
48454845
container_name: explorer.example.com
48464846
environment:

e2e/__snapshots__/fablo-config-hlf3-1orgs-1chaincode.json.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1514,7 +1514,7 @@ exports[`samples/fablo-config-hlf3-1orgs-1chaincode.json should create proper e2
15141514
"FABLO_VERSION=2.2.0
15151515
FABLO_BUILD=<date with git hash>
15161516
FABLO_REST_VERSION=0.1.2
1517-
HYPERLEDGER_EXPLORER_VERSION=1.1.8
1517+
HYPERLEDGER_EXPLORER_VERSION=2.0.0
15181518
15191519
COUCHDB_VERSION=3.1
15201520
FABRIC_COUCHDB_VERSION=0.4.18

e2e/__snapshots__/fablo-config-hlf3-bft-1orgs-1chaincode.json.test.ts.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1539,7 +1539,7 @@ exports[`samples/fablo-config-hlf3-bft-1orgs-1chaincode.json should create prope
15391539
"FABLO_VERSION=2.2.0
15401540
FABLO_BUILD=<date with git hash>
15411541
FABLO_REST_VERSION=0.1.2
1542-
HYPERLEDGER_EXPLORER_VERSION=1.1.8
1542+
HYPERLEDGER_EXPLORER_VERSION=2.0.0
15431543
15441544
COUCHDB_VERSION=3.1
15451545
FABRIC_COUCHDB_VERSION=0.4.18

src/setup-docker/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ export default class SetupDockerGenerator extends Generator {
169169
fabloVersion: config.fabloVersion,
170170
fabloBuild: getBuildInfo(),
171171
fabloRestVersion: "0.1.2",
172-
hyperledgerExplorerVersion: "1.1.8",
172+
hyperledgerExplorerVersion: "2.0.0",
173173
fabricCouchDbVersion: "0.4.18",
174174
couchDbVersion: "3.1",
175175
fabricCaPostgresVersion: "14",

src/setup-docker/templates/fabric-docker/docker-compose.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,14 @@ services:
138138

139139
<%_ if (org.tools.explorer && !global.tools.explorer) { _%>
140140
db.<%= org.tools.explorer.address %>:
141-
image: hyperledger/explorer-db:${HYPERLEDGER_EXPLORER_VERSION}
141+
image: ghcr.io/hyperledger-labs/explorer-db:latest
142142
container_name: db.<%= org.tools.explorer.address %>
143143
environment:
144144
- DATABASE_DATABASE=fabricexplorer
145145
- DATABASE_USERNAME=hppoc
146146
- DATABASE_PASSWORD=password
147147
healthcheck:
148-
test: "pg_isready -h localhost -p 5432 -q -U postgres"
148+
test: "pg_isready -h localhost -p 5432 -q -U hppoc -d fabricexplorer"
149149
interval: 5s
150150
timeout: 10s
151151
retries: 7
@@ -155,7 +155,7 @@ services:
155155
- basic
156156

157157
<%= org.tools.explorer.address %>:
158-
image: hyperledger/explorer:${HYPERLEDGER_EXPLORER_VERSION}
158+
image: ghcr.io/hyperledger-labs/explorer:latest
159159
restart: on-failure:8
160160
container_name: <%= org.tools.explorer.address %>
161161
environment:
@@ -329,14 +329,14 @@ services:
329329

330330
<%_ if (global.tools.explorer) { _%>
331331
db.<%= global.tools.explorer.address %>:
332-
image: hyperledger/explorer-db:${HYPERLEDGER_EXPLORER_VERSION}
332+
image: ghcr.io/hyperledger-labs/explorer-db:latest
333333
container_name: db.<%= global.tools.explorer.address %>
334334
environment:
335335
- DATABASE_DATABASE=fabricexplorer
336336
- DATABASE_USERNAME=hppoc
337337
- DATABASE_PASSWORD=password
338338
healthcheck:
339-
test: "pg_isready -h localhost -p 5432 -q -U postgres"
339+
test: "pg_isready -h localhost -p 5432 -q -U hppoc -d fabricexplorer"
340340
interval: 5s
341341
timeout: 10s
342342
retries: 7
@@ -346,7 +346,7 @@ services:
346346
- basic
347347

348348
<%= global.tools.explorer.address %>:
349-
image: hyperledger/explorer:${HYPERLEDGER_EXPLORER_VERSION}
349+
image: ghcr.io/hyperledger-labs/explorer:latest
350350
restart: on-failure:8
351351
container_name: <%= global.tools.explorer.address %>
352352
environment:

0 commit comments

Comments
 (0)