github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/integration/sawtooth_integration/docker/test_workload.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 -v -C tcp://validator:4004 46 stop_signal: SIGKILL 47 48 validator: 49 build: 50 context: ../../.. 51 dockerfile: ./validator/Dockerfile 52 image: sawtooth-validator$INSTALL_TYPE:$ISOLATION_ID 53 volumes: 54 - $SAWTOOTH_CORE:/project/sawtooth-core 55 expose: 56 - 4004 57 - 8800 58 command: "bash -c \"\ 59 sawadm keygen && \ 60 sawset genesis \ 61 -k /etc/sawtooth/keys/validator.priv \ 62 -o config-genesis.batch && \ 63 sawadm genesis config-genesis.batch && \ 64 sawtooth-validator -v \ 65 --endpoint tcp://validator:8800 \ 66 --bind component:tcp://eth0:4004 \ 67 --bind network:tcp://eth0:8800 \ 68 \"" 69 stop_signal: SIGKILL 70 71 rest-api: 72 build: 73 context: ../../.. 74 dockerfile: ./rest_api/Dockerfile 75 image: sawtooth-rest-api$INSTALL_TYPE:$ISOLATION_ID 76 volumes: 77 - $SAWTOOTH_CORE:/project/sawtooth-core 78 expose: 79 - 4004 80 - 8008 81 depends_on: 82 - validator 83 command: sawtooth-rest-api -v --connect tcp://validator:4004 --bind rest-api:8008 84 stop_signal: SIGKILL 85 86 test-workload: 87 build: 88 context: ../../.. 89 dockerfile: integration/sawtooth_integration/docker/integration-tests.dockerfile 90 image: integration-tests:$ISOLATION_ID 91 volumes: 92 - $SAWTOOTH_CORE:/project/sawtooth-core 93 expose: 94 - 8008 95 depends_on: 96 - validator 97 - rest-api 98 command: nose2-3 99 -c /project/sawtooth-core/integration/sawtooth_integration/nose2.cfg 100 -v 101 -s /project/sawtooth-core/integration/sawtooth_integration/tests 102 test_workload 103 stop_signal: SIGKILL 104 environment: 105 PYTHONPATH: "/project/sawtooth-core/sdk/python:\ 106 /project/sawtooth-core/sdk/examples/intkey_python:\ 107 /project/sawtooth-core/integration:\ 108 /project/sawtooth-core/signing:\ 109 /project/sawtooth-core/cli"