github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/families/settings/tests/test_tp_settings.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      command: settings-tp -vv -C tcp://test-tp-settings:4004
    30      stop_signal: SIGKILL
    31  
    32    test-tp-settings:
    33      build:
    34        context: ../../..
    35        dockerfile: families/settings/tests/settings.dockerfile
    36      image: settings-tests:$ISOLATION_ID
    37      volumes:
    38        - $SAWTOOTH_CORE:/project/sawtooth-core
    39      expose:
    40        - 4004
    41      command: nose2-3
    42          -c /project/sawtooth-core/families/settings/nose2.cfg
    43          -v
    44          -s /project/sawtooth-core/families/settings/tests
    45          test_tp_settings
    46      stop_signal: SIGKILL
    47      environment:
    48          TEST_BIND: "tcp://eth0:4004"
    49          PYTHONPATH: "/project/sawtooth-core/families/settings:\
    50              /project/sawtooth-core/families/settings/tests:\
    51              /project/sawtooth-core/sdk/python:\
    52              /project/sawtooth-core/integration:\
    53              /project/sawtooth-core/signing"