github.com/yimialmonte/fabric@v2.1.1+incompatible/vagrant/README.md (about)

     1  # Vagrant Development Environment
     2  
     3  This directory contains the scripts necessary to bring up a simple development
     4  environment with Vagrant. This environment is focused on the requirements for
     5  building and testing the Fabric code and is not intended to be used for
     6  application development or chaincode.
     7  
     8  Most people will not need to use vagrant. Fabric can be easily built and
     9  tested on Linux and macOS after installing the prerequisite tools and
    10  libraries that are described in the documentation.
    11  
    12  ## Starting the Machine
    13  
    14  Once the fabric code has been cloned, `vagrant up` can be run from the
    15  `vagrant` folder. This will start an Ubuntu based virtual machine and
    16  provision the tools necessary to build and test Fabric.
    17  
    18  ## Building and Testing in Vagrant
    19  
    20  After starting the virtual machine with `vagrant up`, use `vagrant ssh` to
    21  access the development shell. Once you're in the shell, `make clean && make`
    22  can be used to build and test fabric.
    23  
    24  The source code from the host machine is mounted inside the Vagrant virtual
    25  machine so changes to the code can be made on the host or inside the VM.
    26  
    27  ```console
    28  vagrant@ubuntu-xenial:~/go/src/github.com/hyperledger/fabric$ make clean && make
    29  ```