github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/docker/compose/sawtooth-default-poet.yaml (about)

     1  # Copyright 2018 Intel Corporation
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  # ------------------------------------------------------------------------------
    15  
    16  version: "2.1"
    17  
    18  services:
    19    shell:
    20      image: hyperledger/sawtooth-all:1.0
    21      container_name: sawtooth-shell-default
    22      entrypoint: "bash -c \"\
    23          sawtooth keygen && \
    24          tail -f /dev/null \
    25          \""
    26  
    27    validator-0:
    28      image: hyperledger/sawtooth-validator:1.0
    29      container_name: sawtooth-validator-default-0
    30      expose:
    31        - 4004
    32        - 8800
    33      command: "bash -c \"\
    34          sawadm keygen --force && \
    35          sawset genesis \
    36            -k /etc/sawtooth/keys/validator.priv \
    37            -o config-genesis.batch && \
    38          sawset proposal create \
    39            -k /etc/sawtooth/keys/validator.priv \
    40            sawtooth.consensus.algorithm=poet \
    41            sawtooth.poet.report_public_key_pem=\
    42            \\\"$$(cat /etc/sawtooth/simulator_rk_pub.pem)\\\" \
    43            sawtooth.poet.valid_enclave_measurements=$$(poet enclave measurement) \
    44            sawtooth.poet.valid_enclave_basenames=$$(poet enclave basename) \
    45            -o config.batch && \
    46          poet registration create -k /etc/sawtooth/keys/validator.priv -o poet.batch && \
    47          sawset proposal create \
    48            -k /etc/sawtooth/keys/validator.priv \
    49               sawtooth.poet.target_wait_time=5 \
    50               sawtooth.poet.initial_wait_time=25 \
    51               sawtooth.publisher.max_batches_per_block=100 \
    52            -o poet-settings.batch && \
    53          sawadm genesis \
    54            config-genesis.batch config.batch poet.batch poet-settings.batch && \
    55          sawtooth-validator -v \
    56            --bind network:tcp://eth0:8800 \
    57            --bind component:tcp://eth0:4004 \
    58            --peering dynamic \
    59            --endpoint tcp://validator-0:8800 \
    60            --scheduler serial \
    61            --network trust
    62      \""
    63      environment:
    64        PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\
    65          /project/sawtooth-core/consensus/poet/simulator:\
    66          /project/sawtooth-core/consensus/poet/core"
    67      stop_signal: SIGKILL
    68  
    69    validator-1:
    70      image: hyperledger/sawtooth-validator:1.0
    71      container_name: sawtooth-validator-default-1
    72      expose:
    73        - 4004
    74        - 8800
    75      command: |
    76        bash -c "
    77          sawadm keygen --force && \
    78          sawtooth-validator -v \
    79              --bind network:tcp://eth0:8800 \
    80              --bind component:tcp://eth0:4004 \
    81              --peering dynamic \
    82              --endpoint tcp://validator-1:8800 \
    83              --seeds tcp://validator-0:8800 \
    84              --scheduler serial \
    85              --network trust
    86        "
    87      environment:
    88        PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\
    89          /project/sawtooth-core/consensus/poet/simulator:\
    90          /project/sawtooth-core/consensus/poet/core"
    91      stop_signal: SIGKILL
    92  
    93    validator-2:
    94      image: hyperledger/sawtooth-validator:1.0
    95      container_name: sawtooth-validator-default-2
    96      expose:
    97        - 4004
    98        - 8800
    99      command: |
   100        bash -c "
   101          sawadm keygen --force && \
   102          sawtooth-validator -v \
   103              --bind network:tcp://eth0:8800 \
   104              --bind component:tcp://eth0:4004 \
   105              --peering dynamic \
   106              --endpoint tcp://validator-2:8800 \
   107              --seeds tcp://validator-0:8800 \
   108              --scheduler serial \
   109              --network trust
   110        "
   111      environment:
   112        PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\
   113          /project/sawtooth-core/consensus/poet/simulator:\
   114          /project/sawtooth-core/consensus/poet/core"
   115      stop_signal: SIGKILL
   116  
   117    validator-3:
   118      image: hyperledger/sawtooth-validator:1.0
   119      container_name: sawtooth-validator-default-3
   120      expose:
   121        - 4004
   122        - 8800
   123      command: |
   124        bash -c "
   125          sawadm keygen --force && \
   126          sawtooth-validator -v \
   127              --bind network:tcp://eth0:8800 \
   128              --bind component:tcp://eth0:4004 \
   129              --peering dynamic \
   130              --endpoint tcp://validator-3:8800 \
   131              --seeds tcp://validator-0:8800 \
   132              --scheduler serial \
   133              --network trust
   134        "
   135      environment:
   136        PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\
   137          /project/sawtooth-core/consensus/poet/simulator:\
   138          /project/sawtooth-core/consensus/poet/core"
   139      stop_signal: SIGKILL
   140  
   141    validator-4:
   142      image: hyperledger/sawtooth-validator:1.0
   143      container_name: sawtooth-validator-default-4
   144      expose:
   145        - 4004
   146        - 8800
   147      command: |
   148        bash -c "
   149          sawadm keygen --force && \
   150          sawtooth-validator -v \
   151              --bind network:tcp://eth0:8800 \
   152              --bind component:tcp://eth0:4004 \
   153              --peering dynamic \
   154              --endpoint tcp://validator-4:8800 \
   155              --seeds tcp://validator-0:8800 \
   156              --scheduler serial \
   157              --network trust
   158        "
   159      environment:
   160        PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\
   161          /project/sawtooth-core/consensus/poet/simulator:\
   162          /project/sawtooth-core/consensus/poet/core"
   163      stop_signal: SIGKILL
   164  
   165    rest-api-0:
   166      image: hyperledger/sawtooth-rest-api:1.0
   167      container_name: sawtooth-rest-api-default-0
   168      expose:
   169        - 4004
   170        - 8008
   171      command: |
   172        bash -c "
   173          sawtooth-rest-api \
   174            --connect tcp://validator-0:4004 \
   175            --bind rest-api-0:8008
   176        "
   177      stop_signal: SIGKILL
   178  
   179    rest-api-1:
   180      image: hyperledger/sawtooth-rest-api:1.0
   181      container_name: sawtooth-rest-api-default-1
   182      expose:
   183        - 4004
   184        - 8008
   185      command: |
   186        bash -c "
   187          sawtooth-rest-api \
   188            --connect tcp://validator-1:4004 \
   189            --bind rest-api-1:8008
   190        "
   191      stop_signal: SIGKILL
   192  
   193    rest-api-2:
   194      image: hyperledger/sawtooth-rest-api:1.0
   195      container_name: sawtooth-rest-api-default-2
   196      expose:
   197        - 4004
   198        - 8008
   199      command: |
   200        bash -c "
   201          sawtooth-rest-api \
   202            --connect tcp://validator-2:4004 \
   203            --bind rest-api-2:8008
   204        "
   205      stop_signal: SIGKILL
   206  
   207    rest-api-3:
   208      image: hyperledger/sawtooth-rest-api:1.0
   209      container_name: sawtooth-rest-api-default-3
   210      expose:
   211        - 4004
   212        - 8008
   213      command: |
   214        bash -c "
   215          sawtooth-rest-api \
   216            --connect tcp://validator-3:4004 \
   217            --bind rest-api-3:8008
   218        "
   219      stop_signal: SIGKILL
   220  
   221    rest-api-4:
   222      image: hyperledger/sawtooth-rest-api:1.0
   223      container_name: sawtooth-rest-api-default-4
   224      expose:
   225        - 4004
   226        - 8008
   227      command: |
   228        bash -c "
   229          sawtooth-rest-api \
   230            --connect tcp://validator-4:4004 \
   231            --bind rest-api-4:8008
   232        "
   233      stop_signal: SIGKILL
   234  
   235    intkey-tp-0:
   236      image: hyperledger/sawtooth-intkey-tp-python:1.0
   237      container_name: sawtooth-intkey-tp-python-default-0
   238      expose:
   239        - 4004
   240      command: intkey-tp-python -C tcp://validator-0:4004
   241      stop_signal: SIGKILL
   242  
   243    intkey-tp-1:
   244      image: hyperledger/sawtooth-intkey-tp-python:1.0
   245      container_name: sawtooth-intkey-tp-python-default-1
   246      expose:
   247        - 4004
   248      command: intkey-tp-python -C tcp://validator-1:4004
   249      stop_signal: SIGKILL
   250  
   251    intkey-tp-2:
   252      image: hyperledger/sawtooth-intkey-tp-python:1.0
   253      container_name: sawtooth-intkey-tp-python-default-2
   254      expose:
   255        - 4004
   256      command: intkey-tp-python -C tcp://validator-2:4004
   257      stop_signal: SIGKILL
   258  
   259    intkey-tp-3:
   260      image: hyperledger/sawtooth-intkey-tp-python:1.0
   261      container_name: sawtooth-intkey-tp-python-default-3
   262      expose:
   263        - 4004
   264      command: intkey-tp-python -C tcp://validator-3:4004
   265      stop_signal: SIGKILL
   266  
   267    intkey-tp-4:
   268      image: hyperledger/sawtooth-intkey-tp-python:1.0
   269      container_name: sawtooth-intkey-tp-python-default-4
   270      expose:
   271        - 4004
   272      command: intkey-tp-python -C tcp://validator-4:4004
   273      stop_signal: SIGKILL
   274  
   275    xo-tp-0:
   276      image: hyperledger/sawtooth-xo-tp-python:1.0
   277      container_name: sawtooth-xo-tp-python-default-0
   278      expose:
   279        - 4004
   280      command: xo-tp-python -vv -C tcp://validator-0:4004
   281      stop_signal: SIGKILL
   282  
   283    xo-tp-1:
   284      image: hyperledger/sawtooth-xo-tp-python:1.0
   285      container_name: sawtooth-xo-tp-python-default-1
   286      expose:
   287        - 4004
   288      command: xo-tp-python -vv -C tcp://validator-1:4004
   289      stop_signal: SIGKILL
   290  
   291    xo-tp-2:
   292      image: hyperledger/sawtooth-xo-tp-python:1.0
   293      container_name: sawtooth-xo-tp-python-default-2
   294      expose:
   295        - 4004
   296      command: xo-tp-python -vv -C tcp://validator-2:4004
   297      stop_signal: SIGKILL
   298  
   299    xo-tp-3:
   300      image: hyperledger/sawtooth-xo-tp-python:1.0
   301      container_name: sawtooth-xo-tp-python-default-3
   302      expose:
   303        - 4004
   304      command: xo-tp-python -vv -C tcp://validator-3:4004
   305      stop_signal: SIGKILL
   306  
   307    xo-tp-4:
   308      image: hyperledger/sawtooth-xo-tp-python:1.0
   309      container_name: sawtooth-xo-tp-python-default-4
   310      expose:
   311        - 4004
   312      command: xo-tp-python -vv -C tcp://validator-4:4004
   313      stop_signal: SIGKILL
   314  
   315    settings-tp-0:
   316      image: hyperledger/sawtooth-settings-tp:1.0
   317      container_name: sawtooth-settings-tp-default-0
   318      expose:
   319        - 4004
   320      command: settings-tp -C tcp://validator-0:4004
   321      stop_signal: SIGKILL
   322  
   323    settings-tp-1:
   324      image: hyperledger/sawtooth-settings-tp:1.0
   325      container_name: sawtooth-settings-tp-default-1
   326      expose:
   327        - 4004
   328      command: settings-tp -C tcp://validator-1:4004
   329      stop_signal: SIGKILL
   330  
   331    settings-tp-2:
   332      image: hyperledger/sawtooth-settings-tp:1.0
   333      container_name: sawtooth-settings-tp-default-2
   334      expose:
   335        - 4004
   336      command: settings-tp -C tcp://validator-2:4004
   337      stop_signal: SIGKILL
   338  
   339    settings-tp-3:
   340      image: hyperledger/sawtooth-settings-tp:1.0
   341      container_name: sawtooth-settings-tp-default-3
   342      expose:
   343        - 4004
   344      command: settings-tp -C tcp://validator-3:4004
   345      stop_signal: SIGKILL
   346  
   347    settings-tp-4:
   348      image: hyperledger/sawtooth-settings-tp:1.0
   349      container_name: sawtooth-settings-tp-default-4
   350      expose:
   351        - 4004
   352      command: settings-tp -C tcp://validator-4:4004
   353      stop_signal: SIGKILL
   354  
   355    poet-validator-registry-tp-0:
   356      image: hyperledger/sawtooth-poet-validator-registry-tp:1.0
   357      container_name: sawtooth-poet-validator-registry-tp-0
   358      expose:
   359        - 4004
   360      command: poet-validator-registry-tp -C tcp://validator-0:4004
   361      environment:
   362        PYTHONPATH: /project/sawtooth-core/consensus/poet/common
   363      stop_signal: SIGKILL
   364  
   365    poet-validator-registry-tp-1:
   366      image: hyperledger/sawtooth-poet-validator-registry-tp:1.0
   367      container_name: sawtooth-poet-validator-registry-tp-1
   368      expose:
   369        - 4004
   370      command: poet-validator-registry-tp -C tcp://validator-1:4004
   371      environment:
   372        PYTHONPATH: /project/sawtooth-core/consensus/poet/common
   373      stop_signal: SIGKILL
   374  
   375    poet-validator-registry-tp-2:
   376      image: hyperledger/sawtooth-poet-validator-registry-tp:1.0
   377      container_name: sawtooth-poet-validator-registry-tp-2
   378      expose:
   379        - 4004
   380      command: poet-validator-registry-tp -C tcp://validator-2:4004
   381      environment:
   382        PYTHONPATH: /project/sawtooth-core/consensus/poet/common
   383      stop_signal: SIGKILL
   384  
   385    poet-validator-registry-tp-3:
   386      image: hyperledger/sawtooth-poet-validator-registry-tp:1.0
   387      container_name: sawtooth-poet-validator-registry-tp-3
   388      expose:
   389        - 4004
   390      command: poet-validator-registry-tp -C tcp://validator-3:4004
   391      environment:
   392        PYTHONPATH: /project/sawtooth-core/consensus/poet/common
   393      stop_signal: SIGKILL
   394  
   395    poet-validator-registry-tp-4:
   396      image: hyperledger/sawtooth-poet-validator-registry-tp:1.0
   397      container_name: sawtooth-poet-validator-registry-tp-4
   398      expose:
   399        - 4004
   400      command: poet-validator-registry-tp -C tcp://validator-4:4004
   401      environment:
   402        PYTHONPATH: /project/sawtooth-core/consensus/poet/common
   403      stop_signal: SIGKILL