To run everything, just call ./start.sh {{github-username}} {{github-personal-access-token}}
or ./start.sh {{github-username}}
if you have stored the Github PAT (for more information see section below) in a file called .dockerenv
.
Example call:
./start.sh alxgrk
Otherwise, follow below instructions.
Before you are able to start all services (especially blockchain
service), you need to login to the Github Docker Registry.
Do so by running docker login docker.pkg.github.com -u {{github-username}} -p {{github-personal-access-token}}
.
Note: make sure to create a Personal Access Token (PAT) before. This can be done here by selecting "write:packages" scope.
Additionally, you need to create the common network for hyperledger-fabric and all other services by running docker network create --label com.docker.compose.network=default --label com.docker.compose.project=blockchain_hackathon --label com.docker.compose.version=1.24.1 --attachable blockchain_hackathon
.
docker-compose -f docker-compose.yml -f hyperledger-fabric/docker-compose.yml up -d
docker-compose exec -d blockchain /hyperledger-fabric/the-aktivist-network/upgrade.sh
docker-compose -f docker-compose.yml -f hyperledger-fabric/docker-compose.yml up -d --build {{service-name}}
# or for all hyperledger-related services (`peer0.org1.example.com`, `couchdb`, `orderer.example.com`, `ca.org1.example.com` and `blockchain`)
docker-compose -f docker-compose.yml -f hyperledger-fabric/docker-compose.yml up -d --force-recreate {{service-name}}
docker-compose -f docker-compose.yml -f hyperledger-fabric/docker-compose.yml down
Stop and restart all services.
Pre-Install:
https://hyperledger.github.io/composer/latest/installing/development-tools.html Step 1-2
start fabric:
cd hyperledger-fabric
./startFabric.sh
Install network:
cd ..
cd blockchain/the-aktivist-network
./composer network install --card PeerAdmin@hlfv1 --archiveFile the-aktivist-network@0.0.1.bna
Deploy network
./composer network start --networkName the-aktivist-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card
Telefon: 0178/3537303 Email: h.freudenreich@senstim.de