github.com/muhammedhassanm/blockchain@v0.0.0-20200120143007-697261defd4d/sawtooth-core-master/integration/sawtooth_integration/docker/test_poet_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 validator-0: 21 image: sawtooth-validator:$ISOLATION_ID 22 volumes: 23 - $SAWTOOTH_CORE:/project/sawtooth-core 24 expose: 25 - 4004 26 - 8800 27 command: "bash -c \"\ 28 sawadm keygen --force && \ 29 sawset genesis \ 30 -k /etc/sawtooth/keys/validator.priv \ 31 -o config-genesis.batch && \ 32 sawset proposal create \ 33 -k /etc/sawtooth/keys/validator.priv \ 34 sawtooth.consensus.algorithm=poet \ 35 sawtooth.poet.report_public_key_pem=\ 36 \\\"$$(cat /project/sawtooth-core/consensus/poet/simulator/packaging/simulator_rk_pub.pem)\\\" \ 37 sawtooth.poet.valid_enclave_measurements=$$(poet enclave measurement) \ 38 sawtooth.poet.valid_enclave_basenames=$$(poet enclave basename) \ 39 -o config.batch && \ 40 poet registration create -o poet.batch && \ 41 sawadm genesis \ 42 config-genesis.batch config.batch poet.batch && \ 43 sawtooth-validator -v \ 44 --endpoint tcp://validator-0:8800 \ 45 --bind component:tcp://eth0:4004 \ 46 --bind network:tcp://eth0:8800 \ 47 \"" 48 environment: 49 PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ 50 /project/sawtooth-core/consensus/poet/simulator:\ 51 /project/sawtooth-core/consensus/poet/core" 52 stop_signal: SIGKILL 53 54 validator-1: 55 image: sawtooth-validator:$ISOLATION_ID 56 volumes: 57 - $SAWTOOTH_CORE:/project/sawtooth-core 58 expose: 59 - 4004 60 - 8800 61 depends_on: 62 - validator-0 63 command: "bash -c \"\ 64 sawadm keygen --force && \ 65 sawtooth-validator -v \ 66 --endpoint tcp://validator-1:8800 \ 67 --peers tcp://validator-0:8800 \ 68 --bind component:tcp://eth0:4004 \ 69 --bind network:tcp://eth0:8800 \ 70 \"" 71 environment: 72 PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ 73 /project/sawtooth-core/consensus/poet/simulator:\ 74 /project/sawtooth-core/consensus/poet/core" 75 stop_signal: SIGKILL 76 77 validator-2: 78 image: sawtooth-validator:$ISOLATION_ID 79 volumes: 80 - $SAWTOOTH_CORE:/project/sawtooth-core 81 expose: 82 - 4004 83 - 8800 84 depends_on: 85 - validator-0 86 - validator-1 87 command: "bash -c \"\ 88 sawadm keygen --force && \ 89 sawtooth-validator -v \ 90 --endpoint tcp://validator-2:8800 \ 91 --peers tcp://validator-0:8800,tcp://validator-1:8800 92 --bind component:tcp://eth0:4004 \ 93 --bind network:tcp://eth0:8800 \ 94 \"" 95 environment: 96 PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ 97 /project/sawtooth-core/consensus/poet/simulator:\ 98 /project/sawtooth-core/consensus/poet/core" 99 stop_signal: SIGKILL 100 101 rest-api-0: 102 image: sawtooth-rest-api:$ISOLATION_ID 103 volumes: 104 - $SAWTOOTH_CORE:/project/sawtooth-core 105 expose: 106 - 4004 107 - 8008 108 command: sawtooth-rest-api -v --connect tcp://validator-0:4004 --bind rest-api-0:8008 109 stop_signal: SIGKILL 110 111 rest-api-1: 112 image: sawtooth-rest-api:$ISOLATION_ID 113 volumes: 114 - $SAWTOOTH_CORE:/project/sawtooth-core 115 expose: 116 - 4004 117 - 8008 118 command: sawtooth-rest-api -v --connect tcp://validator-1:4004 --bind rest-api-1:8008 119 stop_signal: SIGKILL 120 121 rest-api-2: 122 image: sawtooth-rest-api:$ISOLATION_ID 123 volumes: 124 - $SAWTOOTH_CORE:/project/sawtooth-core 125 expose: 126 - 4004 127 - 8008 128 command: sawtooth-rest-api -v --connect tcp://validator-2:4004 --bind rest-api-2:8008 129 stop_signal: SIGKILL 130 131 intkey-tp-0: 132 image: sawtooth-intkey-tp-python:$ISOLATION_ID 133 volumes: 134 - $SAWTOOTH_CORE:/project/sawtooth-core 135 expose: 136 - 4004 137 command: intkey-tp-python -C tcp://validator-0:4004 138 stop_signal: SIGKILL 139 140 intkey-tp-1: 141 image: sawtooth-intkey-tp-python:$ISOLATION_ID 142 volumes: 143 - $SAWTOOTH_CORE:/project/sawtooth-core 144 expose: 145 - 4004 146 command: intkey-tp-python -C tcp://validator-1:4004 147 stop_signal: SIGKILL 148 149 intkey-tp-2: 150 image: sawtooth-intkey-tp-python:$ISOLATION_ID 151 volumes: 152 - $SAWTOOTH_CORE:/project/sawtooth-core 153 expose: 154 - 4004 155 command: intkey-tp-python -C tcp://validator-2:4004 156 stop_signal: SIGKILL 157 158 settings-tp-0: 159 image: sawtooth-settings-tp:$ISOLATION_ID 160 volumes: 161 - $SAWTOOTH_CORE:/project/sawtooth-core 162 expose: 163 - 4004 164 command: settings-tp -v -C tcp://validator-0:4004 165 stop_signal: SIGKILL 166 167 settings-tp-1: 168 image: sawtooth-settings-tp:$ISOLATION_ID 169 volumes: 170 - $SAWTOOTH_CORE:/project/sawtooth-core 171 expose: 172 - 4004 173 command: settings-tp -v -C tcp://validator-1:4004 174 stop_signal: SIGKILL 175 176 settings-tp-2: 177 image: sawtooth-settings-tp:$ISOLATION_ID 178 volumes: 179 - $SAWTOOTH_CORE:/project/sawtooth-core 180 expose: 181 - 4004 182 command: settings-tp -v -C tcp://validator-2:4004 183 stop_signal: SIGKILL 184 185 poet-validator-registry-tp-0: 186 image: sawtooth-poet-validator-registry-tp:$ISOLATION_ID 187 volumes: 188 - $SAWTOOTH_CORE:/project/sawtooth-core 189 expose: 190 - 4004 191 command: poet-validator-registry-tp -v -C tcp://validator-0:4004 192 environment: 193 PYTHONPATH: /project/sawtooth-core/consensus/poet/common 194 stop_signal: SIGKILL 195 196 poet-validator-registry-tp-1: 197 image: sawtooth-poet-validator-registry-tp:$ISOLATION_ID 198 volumes: 199 - $SAWTOOTH_CORE:/project/sawtooth-core 200 expose: 201 - 4004 202 command: poet-validator-registry-tp -v -C tcp://validator-1:4004 203 environment: 204 PYTHONPATH: /project/sawtooth-core/consensus/poet/common 205 stop_signal: SIGKILL 206 207 poet-validator-registry-tp-2: 208 image: sawtooth-poet-validator-registry-tp:$ISOLATION_ID 209 volumes: 210 - $SAWTOOTH_CORE:/project/sawtooth-core 211 expose: 212 - 4004 213 command: poet-validator-registry-tp -v -C tcp://validator-2:4004 214 environment: 215 PYTHONPATH: /project/sawtooth-core/consensus/poet/common 216 stop_signal: SIGKILL 217 218 test-poet-smoke: 219 image: sawtooth-dev-python:$ISOLATION_ID 220 volumes: 221 - $SAWTOOTH_CORE:/project/sawtooth-core 222 expose: 223 - 8008 224 depends_on: 225 - rest-api-0 226 - rest-api-1 227 - rest-api-2 228 command: nose2-3 229 -c /project/sawtooth-core/integration/sawtooth_integration/nose2.cfg 230 -v 231 -s /project/sawtooth-core/integration 232 sawtooth_integration.tests.test_poet_smoke.TestPoetSmoke 233 stop_signal: SIGKILL 234 environment: 235 PYTHONPATH: "/project/sawtooth-core/sdk/python:\ 236 /project/sawtooth-core/sdk/examples/intkey_python:\ 237 /project/sawtooth-core/signing:\ 238 /project/sawtooth-core/cli"