-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.sh
executable file
·43 lines (35 loc) · 1.56 KB
/
settings.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
export PROJECT_DIR=$PWD
export SCRIPTS_DIR=$PROJECT_DIR/scripts
export FABRIC_BIN_PATH=$PROJECT_DIR/bin
export CONFIG_PATH=$PROJECT_DIR/config
export ORGANIZATION_OUTPUTS=$PROJECT_DIR/organizations
export ORG_CONFIG_PATH=$CONFIG_PATH
export CHANNEL_PATH=$PROJECT_DIR/channels
export DOCKER_COMPOSE_PATH=$PROJECT_DIR/docker/docker-compose.yml
export FABRIC_CFG_PATH=$CONFIG_PATH
export CHAINCODE_SRC_PATH=$PROJECT_DIR/chaincode
export CALIPER_DIR=$PROJECT_DIR/caliper
export FABRIC_VERSION=2.2
export PROJECT_NAME=tracenet
export NETWORK_NAME=${PROJECT_NAME}_test
export LOGSPOUT_PORT=8000
export OBS_BASE_PORT=1050
export REC_BASE_PORT=2050
export PROV_BASE_PORT=3050
export ORDERER_ADDRESS=0.0.0.0:7050
export ORDERER_HOSTNAME=orderer.$PROJECT_NAME.com
export ORDERER_CA=$ORGANIZATION_OUTPUTS/ordererOrganizations/$PROJECT_NAME.com/orderers/$ORDERER_HOSTNAME/msp/tlscacerts/tlsca.$PROJECT_NAME.com-cert.pem
export PATH=$FABRIC_BIN_PATH:$PATH
export CHAINCODE_LANGUAGE=golang
export CHAINCODE_PACKAGE_DIR=$CHAINCODE_SRC_PATH
# caliper settings
CALIPER_VERSION=0.4.2
CALIPER_WORKSPACE=$PROJECT_DIR/caliper
#CALIPER_BENCH_CONFIG=$CALIPER_DIR/benchmarks/Benchmark.yaml
CALIPER_CAMPAIGN_CONFIG=$CALIPER_DIR/benchmarks/campaign.yaml
CALIPER_SHAREDATA_CONFIG=$CALIPER_DIR/benchmarks/shareData.yaml
CALIPER_KGVERIFICATION_CONFIG=$CALIPER_DIR/benchmarks/storeAnonymizedKG.yaml
CALIPER_CALIPERPROOF_CONFIG=$CALIPER_DIR/benchmarks/storeProof.yaml
CALIPER_KGRECIPIENT_CONFIG=$CALIPER_DIR/benchmarks/shareAnonymizedKG.yaml
CALIPER_NETWORK_CONFIG=$CALIPER_DIR/networks/tracenet-config.yaml