github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/integration/sawtooth_integration/docker/test_config_smoke.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 validator: 35 build: 36 context: ../../.. 37 dockerfile: ./validator/Dockerfile 38 image: sawtooth-validator$INSTALL_TYPE:$ISOLATION_ID 39 volumes: 40 - $SAWTOOTH_CORE:/project/sawtooth-core 41 expose: 42 - 4004 43 - 8800 44 command: "bash -c \"\ 45 echo 2f1e7b7a130d7ba9da0068b3bb0ba1d79e7e77110302c9f746c3c2a63fe40088 > /tmp/test.priv && \ 46 sawadm keygen && \ 47 sawset genesis -k /tmp/test.priv -o config-genesis.batch && \ 48 sawadm genesis config-genesis.batch && \ 49 sawtooth-validator -v --endpoint tcp://validator:8800 \ 50 --bind component:tcp://eth0:4004 \ 51 --bind network:tcp://eth0:8800 \ 52 \"" 53 stop_signal: SIGKILL 54 55 rest-api: 56 build: 57 context: ../../.. 58 dockerfile: ./rest_api/Dockerfile 59 image: sawtooth-rest-api$INSTALL_TYPE:$ISOLATION_ID 60 volumes: 61 - $SAWTOOTH_CORE:/project/sawtooth-core 62 expose: 63 - 4004 64 - 8008 65 depends_on: 66 - validator 67 command: sawtooth-rest-api -v --connect tcp://validator:4004 --bind rest-api:8008 68 stop_signal: SIGKILL 69 70 test-config-smoke: 71 build: 72 context: ../../.. 73 dockerfile: integration/sawtooth_integration/docker/integration-tests.dockerfile 74 image: integration-tests:$ISOLATION_ID 75 volumes: 76 - $SAWTOOTH_CORE:/project/sawtooth-core 77 expose: 78 - 8008 79 depends_on: 80 - validator 81 - rest-api 82 command: nose2-3 83 -c /project/sawtooth-core/integration/sawtooth_integration/nose2.cfg 84 -v 85 -s /project/sawtooth-core/integration/sawtooth_integration/tests 86 test_config_smoke.TestConfigSmoke 87 stop_signal: SIGKILL 88 environment: 89 PYTHONPATH: "/project/sawtooth-core/sdk/python:\ 90 /project/sawtooth-core/integration:\ 91 /project/sawtooth-core/signing:\ 92 /project/sawtooth-core/cli:\ 93 /project/sawtooth-core/manage"