Skip to content

Instantly share code, notes, and snippets.

@mbwhite
Last active January 29, 2020 16:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mbwhite/aeed601bce10890b85716063d1122e22 to your computer and use it in GitHub Desktop.
Save mbwhite/aeed601bce10890b85716063d1122e22 to your computer and use it in GitHub Desktop.
Using Ansible Playbooks for Hyperledger Fabric v2
# Download Fabric CLI
wget -q -P /tmp https://hyperledger.jfrog.io/hyperledger/fabric-binaries/hyperledger-fabric-linux-amd64-latest.tar.gz
sudo tar xzvf /tmp/hyperledger-fabric-linux-amd64-latest.tar.gz -C /usr/local
# Download Fabric-ca CLI
wget -q -P /tmp https://hyperledger.jfrog.io/hyperledger/fabric-binaries/hyperledger-fabric-ca-linux-amd64-latest.tar.gz
sudo tar xzvf /tmp/hyperledger-fabric-ca-linux-amd64-latest.tar.gz -C /usr/local
export FABRIC_CFG_PATH=/usr/local/config
# Suggest that pipenv is used to isolate environments
pipenv install ansible
pipenv install docker
pipenv shell
ansible-playbook network.yml
nvm 12
yo fabric:contract
export CORE_PEER_MSPCONFIGPATH=/home/matthew/github.com/ampretia/asset-transfer/wallets/Org1/org1Admin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment