github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/integration/sawtooth_integration/docker/test_two_families.yaml (about)

     1  # Copyright 2017 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  
    20    settings-tp:
    21      build:
    22        context: ../../..
    23        dockerfile: ./families/settings/Dockerfile
    24      image: sawtooth-settings-tp$INSTALL_TYPE:$ISOLATION_ID
    25      volumes:
    26        - $SAWTOOTH_CORE:/project/sawtooth-core
    27      expose:
    28        - 4004
    29      depends_on:
    30        - validator
    31      command: settings-tp -vv -C tcp://validator:4004
    32      stop_signal: SIGKILL
    33  
    34    intkey-tp-python:
    35      build:
    36        context: ../../..
    37        dockerfile: ./sdk/examples/intkey_python/Dockerfile
    38      image: sawtooth-intkey-tp-python$INSTALL_TYPE:$ISOLATION_ID
    39      volumes:
    40        - $SAWTOOTH_CORE:/project/sawtooth-core
    41      expose:
    42        - 4004
    43      depends_on:
    44        - validator
    45      command: intkey-tp-python -vv -C tcp://validator:4004
    46      stop_signal: SIGKILL
    47  
    48    xo-tp-python:
    49      build:
    50        context: ../../..
    51        dockerfile: ./sdk/examples/xo_python/Dockerfile
    52      image: sawtooth-xo-tp-python$INSTALL_TYPE:$ISOLATION_ID
    53      volumes:
    54        - $SAWTOOTH_CORE:/project/sawtooth-core
    55      expose:
    56        - 4004
    57      depends_on:
    58        - validator
    59      command: xo-tp-python -vv -C tcp://validator:4004
    60      stop_signal: SIGKILL
    61  
    62    validator:
    63      build:
    64        context: ../../..
    65        dockerfile: ./validator/Dockerfile
    66      image: sawtooth-validator$INSTALL_TYPE:$ISOLATION_ID
    67      volumes:
    68        - $SAWTOOTH_CORE:/project/sawtooth-core
    69      expose:
    70        - 4004
    71        - 8800
    72      command: "bash -c \"\
    73          sawadm keygen && \
    74          sawset genesis \
    75            -k /etc/sawtooth/keys/validator.priv \
    76            -o config-genesis.batch && \
    77          sawadm genesis config-genesis.batch && \
    78          sawtooth-validator --endpoint tcp://validator:8800 -vv \
    79              --bind component:tcp://eth0:4004 \
    80              --bind network:tcp://eth0:8800 \
    81      \""
    82      stop_signal: SIGKILL
    83  
    84    rest-api:
    85      build:
    86        context: ../../..
    87        dockerfile: ./rest_api/Dockerfile
    88      image: sawtooth-rest-api$INSTALL_TYPE:$ISOLATION_ID
    89      volumes:
    90        - $SAWTOOTH_CORE:/project/sawtooth-core
    91      expose:
    92        - 4004
    93        - 8008
    94      depends_on:
    95        - validator
    96      command: sawtooth-rest-api -v --connect tcp://validator:4004 --bind rest-api:8008
    97      stop_signal: SIGKILL
    98  
    99    test-two-families:
   100      build:
   101        context: ../../..
   102        dockerfile: integration/sawtooth_integration/docker/integration-tests.dockerfile
   103      image: integration-tests:$ISOLATION_ID
   104      volumes:
   105        - $SAWTOOTH_CORE:/project/sawtooth-core
   106      expose:
   107        - 8008
   108      depends_on:
   109        - validator
   110        - rest-api
   111      # Wait for rest_api and genesis
   112      command: nose2-3
   113          -c /project/sawtooth-core/integration/sawtooth_integration/nose2.cfg
   114          -v
   115          -s /project/sawtooth-core/integration/sawtooth_integration/tests
   116          test_two_families.TestTwoFamilies
   117      stop_signal: SIGKILL
   118      environment:
   119        PYTHONPATH: "/project/sawtooth-core/sdk/python:\
   120          /project/sawtooth-core/sdk/examples/intkey_python:\
   121          /project/sawtooth-core/integration:\
   122          /project/sawtooth-core/signing"