@@ -258,8 +258,8 @@ Once you've built the container, the following commands should work:
258
258
--env AUTHORIZATION_CONFIG_JSON=' {}' \
259
259
--env GRPC_TLS_ENABLED=false \
260
260
cas \
261
- ./ node_modules/.bin/cactusapi \
262
- --plugins=' [{"packageName": "@hyperledger/cactus-plugin-ledger-connector-fabric", "type": "org.hyperledger.cactus.plugin_import_type.LOCAL", "action": "org.hyperledger.cactus.plugin_import_action.INSTALL", "options": { "connectionProfile": {}, "instanceId": "some-unique-instance-id"}}]'
261
+ node_modules/@hyperledger/cactus-cmd-api-server/dist/lib/main/typescript/cmd/cactus-api.js \
262
+ --plugins=' [{"packageName": "@hyperledger/cactus-plugin-ledger-connector-fabric", "type": "org.hyperledger.cactus.plugin_import_type.LOCAL", "action": "org.hyperledger.cactus.plugin_import_action.INSTALL", "options": { "version": "dev", "peerBinary":"/fabric-samples/bin/peer", " connectionProfile": {}, "instanceId": "some-unique-instance-id"}}]'
263
263
```
264
264
265
265
- Launch container with plugin configuration as an ** environment variable** :
@@ -271,7 +271,7 @@ Once you've built the container, the following commands should work:
271
271
--env AUTHORIZATION_PROTOCOL=' NONE' \
272
272
--env AUTHORIZATION_CONFIG_JSON=' {}' \
273
273
--env GRPC_TLS_ENABLED=false \
274
- --env PLUGINS=' [{"packageName": "@hyperledger/cactus-plugin-ledger-connector-besu", "type": "org.hyperledger.cactus.plugin_import_type.LOCAL", "action": "org.hyperledger.cactus.plugin_import_action.INSTALL", "options": {" rpcApiHttpHost": "http://localhost :8545", "instanceId": "some-unique-besu-connector-instance-id"}}]' \
274
+ --env PLUGINS=' [{"packageName": "@hyperledger/cactus-plugin-ledger-connector-besu", "type": "org.hyperledger.cactus.plugin_import_type.LOCAL", "action": "org.hyperledger.cactus.plugin_import_action.INSTALL", "options": { "rpcApiWsHost": "http://127.0.0.1:8546", " rpcApiHttpHost": "http://127.0.0.1 :8545", "instanceId": "some-unique-besu-connector-instance-id"}}]' \
275
275
cas
276
276
```
277
277
@@ -285,14 +285,14 @@ Once you've built the container, the following commands should work:
285
285
--env AUTHORIZATION_CONFIG_JSON=' {}' \
286
286
--env GRPC_TLS_ENABLED=false \
287
287
cas \
288
- ./node_modules/.bin/cactusapi \
289
- --plugins=' [{"packageName": "@hyperledger/cactus-plugin-ledger-connector-besu", "type": "org.hyperledger.cactus.plugin_import_type.LOCAL", "action": "org.hyperledger.cactus.plugin_import_action.INSTALL", "options": {" rpcApiHttpHost": "http://localhost :8545", "instanceId": "some-unique-besu-connector-instance-id"}}]'
288
+ ./node_modules/@hyperledger/cactus-cmd-api-server/dist/lib/main/typescript/cmd/cactus-api.js \
289
+ --plugins=' [{"packageName": "@hyperledger/cactus-plugin-ledger-connector-besu", "type": "org.hyperledger.cactus.plugin_import_type.LOCAL", "action": "org.hyperledger.cactus.plugin_import_action.INSTALL", "options": { "rpcApiWsHost": "http://127.0.0.1:8546", " rpcApiHttpHost": "http://127.0.0.1 :8545", "instanceId": "some-unique-besu-connector-instance-id"}}]'
290
290
```
291
291
292
292
- Launch container with ** configuration file** mounted from host machine:
293
293
``` sh
294
294
295
- echo ' [{"packageName": "@hyperledger/cactus-plugin-ledger-connector-besu", "type": "org.hyperledger.cactus.plugin_import_type.LOCAL", "action": "org.hyperledger.cactus.plugin_import_action.INSTALL", "options": {" rpcApiHttpHost": "http://localhost :8545", "instanceId": "some-unique-besu-connector-instance-id"}}]' > cactus.json
295
+ echo ' {"plugins": [{"packageName": "@hyperledger/cactus-plugin-ledger-connector-besu", "type": "org.hyperledger.cactus.plugin_import_type.LOCAL", "action": "org.hyperledger.cactus.plugin_import_action.INSTALL", "options": { "rpcApiWsHost": "http://127.0.0.1:8546", " rpcApiHttpHost": "http://127.0.0.1 :8545", "instanceId": "some-unique-besu-connector-instance-id"}}]} ' > cactus.json
296
296
297
297
docker run \
298
298
--rm \
@@ -303,7 +303,7 @@ Once you've built the container, the following commands should work:
303
303
--env GRPC_TLS_ENABLED=false \
304
304
--mount type=bind,source=" $( pwd) " /cactus.json,target=/cactus.json \
305
305
cas \
306
- ./node_modules/.bin/cactusapi \
306
+ ./node_modules/@hyperledger/cactus-cmd-api-server/dist/lib/main/typescript/cmd/cactus-api.js \
307
307
--config-file=/cactus.json
308
308
```
309
309
@@ -313,7 +313,10 @@ Don't have a Besu network on hand to test with? Test or develop against our Besu
313
313
314
314
1 . Terminal Window 1 (Ledger)
315
315
``` sh
316
- docker run --publish 8545:8545 hyperledger/cactus-besu-all-in-one:latest
316
+ docker run \
317
+ --publish 8545:8545 \
318
+ --publish 8546:8546 \
319
+ ghcr.io/hyperledger/cactus-besu-all-in-one:2023-11-16-89d9b93
317
320
```
318
321
319
322
2. Terminal Window 2 (Cactus API Server)
@@ -326,7 +329,7 @@ Don't have a Besu network on hand to test with? Test or develop against our Besu
326
329
--env AUTHORIZATION_PROTOCOL=' NONE' \
327
330
--env AUTHORIZATION_CONFIG_JSON=' {}' \
328
331
--env GRPC_TLS_ENABLED=false \
329
- --env PLUGINS=' [{"packageName": "@hyperledger/cactus-plugin-ledger-connector-besu", "type": "org.hyperledger.cactus.plugin_import_type.LOCAL", "action": "org.hyperledger.cactus.plugin_import_action.INSTALL", "options": {" rpcApiHttpHost": "http://localhost :8545", "instanceId": "some-unique-besu-connector-instance-id"}}]' \
332
+ --env PLUGINS=' [{"packageName": "@hyperledger/cactus-plugin-ledger-connector-besu", "type": "org.hyperledger.cactus.plugin_import_type.LOCAL", "action": "org.hyperledger.cactus.plugin_import_action.INSTALL", "options": { "rpcApiWsHost": "http://127.0.0.1:8546", " rpcApiHttpHost": "http://127.0.0.1 :8545", "instanceId": "some-unique-besu-connector-instance-id"}}]' \
330
333
cas
331
334
` ` `
332
335
0 commit comments