acloudfan / HLF-Vagrant-Dev-Setup

Vagrant Development Environment for Composer Development
23 stars 30 forks source link

Last Updated: December 2, 2018

Part of the course on Hyperledger Fabric

http://www.ACloudFan.com https://hyperledger.github.io/composer/installing/installing-prereqs#ubuntu

Vagrant commands

vagrant up vagrant ssh vagrant halt vagrant destroy

Windows | Mac | Linux Docker

Install Vagrant

Setup Ubuntu VM (~10 minutes first time)

Setup Vagrant Dev Environment (~5 min)

PS: If you get a permissions error, run this command

chmod 755 ./scripts/*.sh

Open a terminal window and cd to the root of this project vagrant up vagrant ssh $ ./scripts/install-prereqs.sh // Logout of vagrant $ logout vagrant ssh $ ./scripts/install-fabric-tools.sh $ ./scripts/install-composer.sh

Download Fabric (~20 min)

Logout of Ubuntu

vagrant ssh ./downloadFabric.sh

Validation

You should be able to use the docker commands on your host machine

set DOCKER_HOST=tcp://localhost:2375
unest DOCKER_TLS_VERIFY

docker images // Should not fail