Skip to content

hoangedward/hyperledger-composer-dev

Repository files navigation

Place .docker folder to C:/Users/xxx/ folder Setting DOCKER_ENV_SETTING.txt Github: https://github.com/hoangedward/hyperledger-test1

Part of the course on Hyperledger Fabric

http:https://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

  • DO NOT RUN DOCKER DAEMON on Host Machine
  • Install the Docker or Docker toolbox - Only docker client will be used
  • Make sure that following environment variables are NOT SET Use Control Panel on windows DOCKER_TLS DOCKER_TLS_VERIFY
  • Set the Environment following variable in Windows DOCKER_HOST=tcp:https://localhost:2375

Install Vagrant

Setup Ubuntu VM (~10 minutes first time)

  • Open a terminal window in the root of this folder

vagrant up

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:https://localhost:2375
unest DOCKER_TLS_VERIFY

docker images // Should not fail