github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/docs/getting-started.md (about)

     1  ## Development Environment
     2  
     3  This folder contains the files which are used for bootstrapping the INK Consortium chain development environment.
     4  And so far, we recommend using ubuntu 16.04.
     5  
     6  We provide an [env setup script](../devops/setup-env.sh) to config your environment.
     7  
     8  ### Clone code
     9  
    10  Clone the Inkchain code base into this path 
    11  
    12  ```bash
    13  $ mkdir -p $GOPATH/src/github.com/inklabsfoundation
    14  
    15  $ cd $GOPATH/src/github.com/inklabsfoundation
    16  
    17  $ git clone https://github.com/inklabsfoundation/inkchain.git
    18  
    19  ```
    20  
    21  ### Build the binaries and images
    22  
    23  Now make the platform-specific binaries for `cryptogen` , `configtxgen` , `configtxlator` ,
    24  `peer`, `orderer`.
    25  
    26  ```bash
    27  $ cd $GOPATH/src/github.com/inklabsfoundation/inkchain
    28  
    29  $ make release
    30  ```
    31  
    32  This will output platform-specific binaries into the ``inkchain/release`` folder.
    33  
    34  Next, make the `Inkchain` images. This will takes between ten to twenty minutes, so be patient.
    35  
    36  ```bash
    37  # make sure you are in the /inkchain directory
    38  
    39  $ make docker
    40  
    41  ```
    42  
    43  > recommendation: Or you can use the [script](../scripts/inkchain_images_download.sh) to download the necessary images.
    44  
    45  Execute a `docker images` command in yout terminal, If the images compiled successfully, you should
    46  see output similar to the following:
    47  
    48  ```bash
    49  REPOSITORY                             TAG                    IMAGE ID            CREATED             SIZE
    50  inklabsfoundation/inkchain-tools         latest              1626ee3e191e        4 days ago          1.45GB
    51  inklabsfoundation/inkchain-tools         x86_64-0.13.0       1626ee3e191e        4 days ago          1.45GB
    52  inklabsfoundation/inkchain-peer          latest              a024514b8fd3        4 days ago          279MB
    53  inklabsfoundation/inkchain-peer          x86_64-0.13.0       a024514b8fd3        4 days ago          279MB
    54  inklabsfoundation/inkchain-ccenv         latest              6c53a39ef9fb        4 days ago          1.29GB
    55  inklabsfoundation/inkchain-ccenv         x86_64-0.13.0       6c53a39ef9fb        4 days ago          1.29GB
    56  inklabsfoundation/inkchain-orderer       latest              3cadc0059ccc        4 days ago          275MB
    57  inklabsfoundation/inkchain-orderer       x86_64-0.13.0       3cadc0059ccc        4 days ago          275MB
    58  inklabsfoundation/inkchain-javaenv       latest              cc66f198b653        4 days ago          1.43GB
    59  inklabsfoundation/inkchain-javaenv       x86_64-0.13.0       cc66f198b653        4 days ago          1.43GB
    60  inklabsfoundation/inkchain-ca            latest              c216e43656f1        2 months ago        238MB
    61  inklabsfoundation/inkchain-ca            x86_64-0.13.0       c216e43656f1        2 months ago        238MB
    62  inklabsfoundation/inkchain-kafka         latest              01c020e46c87        3 months ago        1.31GB
    63  inklabsfoundation/inkchain-kafka         x86_64-0.13.0       01c020e46c87        3 months ago        1.31GB
    64  inklabsfoundation/inkchain-couchdb       latest              56babe466471        3 months ago        1.51GB
    65  inklabsfoundation/inkchain-couchdb       x86_64-0.13.0       56babe466471        3 months ago        1.51GB
    66  inklabsfoundation/inkchain-zookeeper     latest              720c4368c2f5        3 months ago        1.33GB
    67  inklabsfoundation/inkchain-zookeeper     x86_64-0.13.0       720c4368c2f5        3 months ago        1.33GB
    68  inklabsfoundation/inkchain-baseimage     x86_64-0.3.1        9f2e9ec7c527        7 months ago        1.268 GB
    69  inklabsfoundation/inkchain-baseos        x86_64-0.3.1        4b0cab202084        7 months ago        156.6 MB
    70  ```
    71  
    72  ## Run the examples
    73  
    74  We provide an example [token issue](../examples/cli_test) which based on inkchain.