Created
October 31, 2019 02:27
-
-
Save rranjan3/5fa4876cdd8eda7dda12fbca1c04059b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2018 Intel Corporation | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# ------------------------------------------------------------------------------ | |
version: "2.1" | |
volumes: | |
poet-shared: | |
val1: | |
val2: | |
val3: | |
val4: | |
val5: | |
val1_keys: | |
val2_keys: | |
val3_keys: | |
val4_keys: | |
val5_keys: | |
services: | |
shell: | |
image: hyperledger/sawtooth-all:1.1 | |
container_name: sawtooth-shell-default | |
entrypoint: "bash -c \"\ | |
sawtooth keygen --force && \ | |
tail -f /dev/null \ | |
\"" | |
validator-0: | |
image: hyperledger/sawtooth-validator:1.1 | |
container_name: sawtooth-validator-default-0 | |
expose: | |
- 4004 | |
- 5050 | |
- 8800 | |
volumes: | |
- poet-shared:/poet-shared | |
- val1:/var/lib/sawtooth | |
- val1_keys:/etc/sawtooth/keys | |
command: "bash -c \"\ | |
sawtooth-validator -v \ | |
--bind network:tcp://eth0:8800 \ | |
--bind component:tcp://eth0:4004 \ | |
--bind consensus:tcp://eth0:5050 \ | |
--peering dynamic \ | |
--endpoint tcp://validator-0:8800 \ | |
--scheduler serial \ | |
--network-auth trust | |
\"" | |
environment: | |
PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ | |
/project/sawtooth-core/consensus/poet/simulator:\ | |
/project/sawtooth-core/consensus/poet/core" | |
stop_signal: SIGKILL | |
validator-1: | |
image: hyperledger/sawtooth-validator:1.1 | |
container_name: sawtooth-validator-default-1 | |
expose: | |
- 4004 | |
- 5050 | |
- 8800 | |
volumes: | |
- poet-shared:/poet-shared | |
- val2:/var/lib/sawtooth | |
- val2_keys:/etc/sawtooth/keys | |
command: | | |
bash -c " | |
sawtooth-validator -v \ | |
--bind network:tcp://eth0:8800 \ | |
--bind component:tcp://eth0:4004 \ | |
--bind consensus:tcp://eth0:5050 \ | |
--peering dynamic \ | |
--endpoint tcp://validator-1:8800 \ | |
--seeds tcp://validator-0:8800 \ | |
--scheduler serial \ | |
--network-auth trust | |
" | |
environment: | |
PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ | |
/project/sawtooth-core/consensus/poet/simulator:\ | |
/project/sawtooth-core/consensus/poet/core" | |
stop_signal: SIGKILL | |
validator-2: | |
image: hyperledger/sawtooth-validator:1.1 | |
container_name: sawtooth-validator-default-2 | |
expose: | |
- 4004 | |
- 5050 | |
- 8800 | |
volumes: | |
- poet-shared:/poet-shared | |
- val3:/var/lib/sawtooth | |
- val3_keys:/etc/sawtooth/keys | |
command: | | |
bash -c " | |
sawtooth-validator -v \ | |
--bind network:tcp://eth0:8800 \ | |
--bind component:tcp://eth0:4004 \ | |
--bind consensus:tcp://eth0:5050 \ | |
--peering dynamic \ | |
--endpoint tcp://validator-2:8800 \ | |
--seeds tcp://validator-0:8800 \ | |
--scheduler serial \ | |
--network-auth trust | |
" | |
environment: | |
PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ | |
/project/sawtooth-core/consensus/poet/simulator:\ | |
/project/sawtooth-core/consensus/poet/core" | |
stop_signal: SIGKILL | |
validator-3: | |
image: hyperledger/sawtooth-validator:1.1 | |
container_name: sawtooth-validator-default-3 | |
expose: | |
- 4004 | |
- 5050 | |
- 8800 | |
volumes: | |
- poet-shared:/poet-shared | |
- val4:/var/lib/sawtooth | |
- val4_keys:/etc/sawtooth/keys | |
command: | | |
bash -c " | |
sawtooth-validator -v \ | |
--bind network:tcp://eth0:8800 \ | |
--bind component:tcp://eth0:4004 \ | |
--bind consensus:tcp://eth0:5050 \ | |
--peering dynamic \ | |
--endpoint tcp://validator-3:8800 \ | |
--seeds tcp://validator-0:8800 \ | |
--scheduler serial \ | |
--network-auth trust | |
" | |
environment: | |
PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ | |
/project/sawtooth-core/consensus/poet/simulator:\ | |
/project/sawtooth-core/consensus/poet/core" | |
stop_signal: SIGKILL | |
validator-4: | |
image: hyperledger/sawtooth-validator:1.1 | |
container_name: sawtooth-validator-default-4 | |
expose: | |
- 4004 | |
- 5050 | |
- 8800 | |
volumes: | |
- poet-shared:/poet-shared | |
- val5:/var/lib/sawtooth | |
- val5_keys:/etc/sawtooth/keys | |
command: | | |
bash -c " | |
sawtooth-validator -v \ | |
--bind network:tcp://eth0:8800 \ | |
--bind component:tcp://eth0:4004 \ | |
--bind consensus:tcp://eth0:5050 \ | |
--peering dynamic \ | |
--endpoint tcp://validator-4:8800 \ | |
--seeds tcp://validator-0:8800 \ | |
--scheduler serial \ | |
--network-auth trust | |
" | |
environment: | |
PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ | |
/project/sawtooth-core/consensus/poet/simulator:\ | |
/project/sawtooth-core/consensus/poet/core" | |
stop_signal: SIGKILL | |
rest-api-0: | |
image: hyperledger/sawtooth-rest-api:1.1 | |
container_name: sawtooth-rest-api-default-0 | |
expose: | |
- 8008 | |
command: | | |
bash -c " | |
sawtooth-rest-api \ | |
--connect tcp://validator-0:4004 \ | |
--bind rest-api-0:8008 | |
" | |
stop_signal: SIGKILL | |
rest-api-1: | |
image: hyperledger/sawtooth-rest-api:1.1 | |
container_name: sawtooth-rest-api-default-1 | |
expose: | |
- 8008 | |
command: | | |
bash -c " | |
sawtooth-rest-api \ | |
--connect tcp://validator-1:4004 \ | |
--bind rest-api-1:8008 | |
" | |
stop_signal: SIGKILL | |
rest-api-2: | |
image: hyperledger/sawtooth-rest-api:1.1 | |
container_name: sawtooth-rest-api-default-2 | |
expose: | |
- 8008 | |
command: | | |
bash -c " | |
sawtooth-rest-api \ | |
--connect tcp://validator-2:4004 \ | |
--bind rest-api-2:8008 | |
" | |
stop_signal: SIGKILL | |
rest-api-3: | |
image: hyperledger/sawtooth-rest-api:1.1 | |
container_name: sawtooth-rest-api-default-3 | |
expose: | |
- 8008 | |
command: | | |
bash -c " | |
sawtooth-rest-api \ | |
--connect tcp://validator-3:4004 \ | |
--bind rest-api-3:8008 | |
" | |
stop_signal: SIGKILL | |
rest-api-4: | |
image: hyperledger/sawtooth-rest-api:1.1 | |
container_name: sawtooth-rest-api-default-4 | |
expose: | |
- 8008 | |
command: | | |
bash -c " | |
sawtooth-rest-api \ | |
--connect tcp://validator-4:4004 \ | |
--bind rest-api-4:8008 | |
" | |
stop_signal: SIGKILL | |
intkey-tp-0: | |
image: hyperledger/sawtooth-intkey-tp-python:1.1 | |
container_name: sawtooth-intkey-tp-python-default-0 | |
expose: | |
- 4004 | |
command: intkey-tp-python -C tcp://validator-0:4004 | |
stop_signal: SIGKILL | |
intkey-tp-1: | |
image: hyperledger/sawtooth-intkey-tp-python:1.1 | |
container_name: sawtooth-intkey-tp-python-default-1 | |
expose: | |
- 4004 | |
command: intkey-tp-python -C tcp://validator-1:4004 | |
stop_signal: SIGKILL | |
intkey-tp-2: | |
image: hyperledger/sawtooth-intkey-tp-python:1.1 | |
container_name: sawtooth-intkey-tp-python-default-2 | |
expose: | |
- 4004 | |
command: intkey-tp-python -C tcp://validator-2:4004 | |
stop_signal: SIGKILL | |
intkey-tp-3: | |
image: hyperledger/sawtooth-intkey-tp-python:1.1 | |
container_name: sawtooth-intkey-tp-python-default-3 | |
expose: | |
- 4004 | |
command: intkey-tp-python -C tcp://validator-3:4004 | |
stop_signal: SIGKILL | |
intkey-tp-4: | |
image: hyperledger/sawtooth-intkey-tp-python:1.1 | |
container_name: sawtooth-intkey-tp-python-default-4 | |
expose: | |
- 4004 | |
command: intkey-tp-python -C tcp://validator-4:4004 | |
stop_signal: SIGKILL | |
xo-tp-0: | |
image: hyperledger/sawtooth-xo-tp-python:1.1 | |
container_name: sawtooth-xo-tp-python-default-0 | |
expose: | |
- 4004 | |
command: xo-tp-python -vv -C tcp://validator-0:4004 | |
stop_signal: SIGKILL | |
xo-tp-1: | |
image: hyperledger/sawtooth-xo-tp-python:1.1 | |
container_name: sawtooth-xo-tp-python-default-1 | |
expose: | |
- 4004 | |
command: xo-tp-python -vv -C tcp://validator-1:4004 | |
stop_signal: SIGKILL | |
xo-tp-2: | |
image: hyperledger/sawtooth-xo-tp-python:1.1 | |
container_name: sawtooth-xo-tp-python-default-2 | |
expose: | |
- 4004 | |
command: xo-tp-python -vv -C tcp://validator-2:4004 | |
stop_signal: SIGKILL | |
xo-tp-3: | |
image: hyperledger/sawtooth-xo-tp-python:1.1 | |
container_name: sawtooth-xo-tp-python-default-3 | |
expose: | |
- 4004 | |
command: xo-tp-python -vv -C tcp://validator-3:4004 | |
stop_signal: SIGKILL | |
xo-tp-4: | |
image: hyperledger/sawtooth-xo-tp-python:1.1 | |
container_name: sawtooth-xo-tp-python-default-4 | |
expose: | |
- 4004 | |
command: xo-tp-python -vv -C tcp://validator-4:4004 | |
stop_signal: SIGKILL | |
settings-tp-0: | |
image: hyperledger/sawtooth-settings-tp:1.1 | |
container_name: sawtooth-settings-tp-default-0 | |
expose: | |
- 4004 | |
command: settings-tp -C tcp://validator-0:4004 | |
stop_signal: SIGKILL | |
settings-tp-1: | |
image: hyperledger/sawtooth-settings-tp:1.1 | |
container_name: sawtooth-settings-tp-default-1 | |
expose: | |
- 4004 | |
command: settings-tp -C tcp://validator-1:4004 | |
stop_signal: SIGKILL | |
settings-tp-2: | |
image: hyperledger/sawtooth-settings-tp:1.1 | |
container_name: sawtooth-settings-tp-default-2 | |
expose: | |
- 4004 | |
command: settings-tp -C tcp://validator-2:4004 | |
stop_signal: SIGKILL | |
settings-tp-3: | |
image: hyperledger/sawtooth-settings-tp:1.1 | |
container_name: sawtooth-settings-tp-default-3 | |
expose: | |
- 4004 | |
command: settings-tp -C tcp://validator-3:4004 | |
stop_signal: SIGKILL | |
settings-tp-4: | |
image: hyperledger/sawtooth-settings-tp:1.1 | |
container_name: sawtooth-settings-tp-default-4 | |
expose: | |
- 4004 | |
command: settings-tp -C tcp://validator-4:4004 | |
stop_signal: SIGKILL | |
poet-engine-0: | |
image: hyperledger/sawtooth-poet-engine:1.1 | |
container_name: sawtooth-poet-engine-0 | |
volumes: | |
- poet-shared:/poet-shared | |
command: "bash -c \"\ | |
if [ ! -f /poet-shared/poet-enclave-measurement ]; then \ | |
poet enclave measurement >> /poet-shared/poet-enclave-measurement; \ | |
fi && \ | |
if [ ! -f /poet-shared/poet-enclave-basename ]; then \ | |
poet enclave basename >> /poet-shared/poet-enclave-basename; \ | |
fi && \ | |
if [ ! -f /poet-shared/simulator_rk_pub.pem ]; then \ | |
cp /etc/sawtooth/simulator_rk_pub.pem /poet-shared; \ | |
fi && \ | |
while [ ! -f /poet-shared/validator-0/keys/validator.priv ]; do sleep 1; done && \ | |
cp -a /poet-shared/validator-0/keys /etc/sawtooth && \ | |
poet registration create -k /etc/sawtooth/keys/validator.priv -o /poet-shared/poet.batch && \ | |
poet-engine -C tcp://validator-0:5050 --component tcp://validator-0:4004 \ | |
\"" | |
poet-engine-1: | |
image: hyperledger/sawtooth-poet-engine:1.1 | |
container_name: sawtooth-poet-engine-1 | |
volumes: | |
- poet-shared:/poet-shared | |
command: "bash -c \"\ | |
while [ ! -f /poet-shared/validator-1/keys/validator.priv ]; do sleep 1; done && \ | |
cp -a /poet-shared/validator-1/keys /etc/sawtooth && \ | |
poet-engine -C tcp://validator-1:5050 --component tcp://validator-1:4004 \ | |
\"" | |
poet-engine-2: | |
image: hyperledger/sawtooth-poet-engine:1.1 | |
container_name: sawtooth-poet-engine-2 | |
volumes: | |
- poet-shared:/poet-shared | |
command: "bash -c \"\ | |
while [ ! -f /poet-shared/validator-2/keys/validator.priv ]; do sleep 1; done && \ | |
cp -a /poet-shared/validator-2/keys /etc/sawtooth && \ | |
poet-engine -C tcp://validator-2:5050 --component tcp://validator-2:4004 \ | |
\"" | |
poet-engine-3: | |
image: hyperledger/sawtooth-poet-engine:1.1 | |
container_name: sawtooth-poet-engine-3 | |
volumes: | |
- poet-shared:/poet-shared | |
command: "bash -c \"\ | |
while [ ! -f /poet-shared/validator-3/keys/validator.priv ]; do sleep 1; done && \ | |
cp -a /poet-shared/validator-3/keys /etc/sawtooth && \ | |
poet-engine -C tcp://validator-3:5050 --component tcp://validator-3:4004 \ | |
\"" | |
poet-engine-4: | |
image: hyperledger/sawtooth-poet-engine:1.1 | |
container_name: sawtooth-poet-engine-4 | |
volumes: | |
- poet-shared:/poet-shared | |
command: "bash -c \"\ | |
while [ ! -f /poet-shared/validator-4/keys/validator.priv ]; do sleep 1; done && \ | |
cp -a /poet-shared/validator-4/keys /etc/sawtooth && \ | |
poet-engine -C tcp://validator-4:5050 --component tcp://validator-4:4004 \ | |
\"" | |
poet-validator-registry-tp-0: | |
image: hyperledger/sawtooth-poet-validator-registry-tp:1.1 | |
container_name: sawtooth-poet-validator-registry-tp-0 | |
expose: | |
- 4004 | |
command: poet-validator-registry-tp -C tcp://validator-0:4004 | |
environment: | |
PYTHONPATH: /project/sawtooth-core/consensus/poet/common | |
stop_signal: SIGKILL | |
poet-validator-registry-tp-1: | |
image: hyperledger/sawtooth-poet-validator-registry-tp:1.1 | |
container_name: sawtooth-poet-validator-registry-tp-1 | |
expose: | |
- 4004 | |
command: poet-validator-registry-tp -C tcp://validator-1:4004 | |
environment: | |
PYTHONPATH: /project/sawtooth-core/consensus/poet/common | |
stop_signal: SIGKILL | |
poet-validator-registry-tp-2: | |
image: hyperledger/sawtooth-poet-validator-registry-tp:1.1 | |
container_name: sawtooth-poet-validator-registry-tp-2 | |
expose: | |
- 4004 | |
command: poet-validator-registry-tp -C tcp://validator-2:4004 | |
environment: | |
PYTHONPATH: /project/sawtooth-core/consensus/poet/common | |
stop_signal: SIGKILL | |
poet-validator-registry-tp-3: | |
image: hyperledger/sawtooth-poet-validator-registry-tp:1.1 | |
container_name: sawtooth-poet-validator-registry-tp-3 | |
expose: | |
- 4004 | |
command: poet-validator-registry-tp -C tcp://validator-3:4004 | |
environment: | |
PYTHONPATH: /project/sawtooth-core/consensus/poet/common | |
stop_signal: SIGKILL | |
poet-validator-registry-tp-4: | |
image: hyperledger/sawtooth-poet-validator-registry-tp:1.1 | |
container_name: sawtooth-poet-validator-registry-tp-4 | |
expose: | |
- 4004 | |
command: poet-validator-registry-tp -C tcp://validator-4:4004 | |
environment: | |
PYTHONPATH: /project/sawtooth-core/consensus/poet/common | |
stop_signal: SIGKILL |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2018 Intel Corporation | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, | |
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | |
# See the License for the specific language governing permissions and | |
# limitations under the License. | |
# ------------------------------------------------------------------------------ | |
version: "2.1" | |
volumes: | |
poet-shared: | |
val1: | |
val2: | |
val3: | |
val4: | |
val5: | |
val1_keys: | |
val2_keys: | |
val3_keys: | |
val4_keys: | |
val5_keys: | |
services: | |
shell: | |
image: hyperledger/sawtooth-all:1.1 | |
container_name: sawtooth-shell-default | |
entrypoint: "bash -c \"\ | |
sawtooth keygen && \ | |
tail -f /dev/null \ | |
\"" | |
validator-0: | |
image: hyperledger/sawtooth-validator:1.1 | |
container_name: sawtooth-validator-default-0 | |
expose: | |
- 4004 | |
- 5050 | |
- 8800 | |
volumes: | |
- poet-shared:/poet-shared | |
- val1:/var/lib/sawtooth | |
- val1_keys:/etc/sawtooth/keys | |
command: "bash -c \"\ | |
sawadm keygen --force && \ | |
mkdir -p /poet-shared/validator-0 || true && \ | |
cp -a /etc/sawtooth/keys /poet-shared/validator-0/ && \ | |
while [ ! -f /poet-shared/poet-enclave-measurement ]; do sleep 1; done && \ | |
while [ ! -f /poet-shared/poet-enclave-basename ]; do sleep 1; done && \ | |
while [ ! -f /poet-shared/poet.batch ]; do sleep 1; done && \ | |
cp /poet-shared/poet.batch / && \ | |
sawset genesis \ | |
-k /etc/sawtooth/keys/validator.priv \ | |
-o config-genesis.batch && \ | |
sawset proposal create \ | |
-k /etc/sawtooth/keys/validator.priv \ | |
sawtooth.consensus.algorithm=poet \ | |
sawtooth.poet.report_public_key_pem=\ | |
\\\"$$(cat /poet-shared/simulator_rk_pub.pem)\\\" \ | |
sawtooth.poet.valid_enclave_measurements=$$(cat /poet-shared/poet-enclave-measurement) \ | |
sawtooth.poet.valid_enclave_basenames=$$(cat /poet-shared/poet-enclave-basename) \ | |
-o config.batch && \ | |
sawset proposal create \ | |
-k /etc/sawtooth/keys/validator.priv \ | |
sawtooth.poet.target_wait_time=5 \ | |
sawtooth.poet.initial_wait_time=25 \ | |
sawtooth.publisher.max_batches_per_block=100 \ | |
-o poet-settings.batch && \ | |
sawadm genesis \ | |
config-genesis.batch config.batch poet.batch poet-settings.batch && \ | |
sawtooth-validator -v \ | |
--bind network:tcp://eth0:8800 \ | |
--bind component:tcp://eth0:4004 \ | |
--bind consensus:tcp://eth0:5050 \ | |
--peering dynamic \ | |
--endpoint tcp://validator-0:8800 \ | |
--scheduler serial \ | |
--network-auth trust | |
\"" | |
environment: | |
PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ | |
/project/sawtooth-core/consensus/poet/simulator:\ | |
/project/sawtooth-core/consensus/poet/core" | |
stop_signal: SIGKILL | |
validator-1: | |
image: hyperledger/sawtooth-validator:1.1 | |
container_name: sawtooth-validator-default-1 | |
expose: | |
- 4004 | |
- 5050 | |
- 8800 | |
volumes: | |
- poet-shared:/poet-shared | |
- val2:/var/lib/sawtooth | |
- val2_keys:/etc/sawtooth/keys | |
command: | | |
bash -c " | |
sawadm keygen --force && \ | |
mkdir -p /poet-shared/validator-1 || true && \ | |
cp -a /etc/sawtooth/keys /poet-shared/validator-1/ && \ | |
sawtooth-validator -v \ | |
--bind network:tcp://eth0:8800 \ | |
--bind component:tcp://eth0:4004 \ | |
--bind consensus:tcp://eth0:5050 \ | |
--peering dynamic \ | |
--endpoint tcp://validator-1:8800 \ | |
--seeds tcp://validator-0:8800 \ | |
--scheduler serial \ | |
--network-auth trust | |
" | |
environment: | |
PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ | |
/project/sawtooth-core/consensus/poet/simulator:\ | |
/project/sawtooth-core/consensus/poet/core" | |
stop_signal: SIGKILL | |
validator-2: | |
image: hyperledger/sawtooth-validator:1.1 | |
container_name: sawtooth-validator-default-2 | |
expose: | |
- 4004 | |
- 5050 | |
- 8800 | |
volumes: | |
- poet-shared:/poet-shared | |
- val3:/var/lib/sawtooth | |
- val3_keys:/etc/sawtooth/keys | |
command: | | |
bash -c " | |
sawadm keygen --force && \ | |
mkdir -p /poet-shared/validator-2 && \ | |
cp -a /etc/sawtooth/keys /poet-shared/validator-2/ && \ | |
sawtooth-validator -v \ | |
--bind network:tcp://eth0:8800 \ | |
--bind component:tcp://eth0:4004 \ | |
--bind consensus:tcp://eth0:5050 \ | |
--peering dynamic \ | |
--endpoint tcp://validator-2:8800 \ | |
--seeds tcp://validator-0:8800 \ | |
--scheduler serial \ | |
--network-auth trust | |
" | |
environment: | |
PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ | |
/project/sawtooth-core/consensus/poet/simulator:\ | |
/project/sawtooth-core/consensus/poet/core" | |
stop_signal: SIGKILL | |
validator-3: | |
image: hyperledger/sawtooth-validator:1.1 | |
container_name: sawtooth-validator-default-3 | |
expose: | |
- 4004 | |
- 5050 | |
- 8800 | |
volumes: | |
- poet-shared:/poet-shared | |
- val4:/var/lib/sawtooth | |
- val4_keys:/etc/sawtooth/keys | |
command: | | |
bash -c " | |
sawadm keygen --force && \ | |
mkdir -p /poet-shared/validator-3 && \ | |
cp -a /etc/sawtooth/keys /poet-shared/validator-3/ && \ | |
sawtooth-validator -v \ | |
--bind network:tcp://eth0:8800 \ | |
--bind component:tcp://eth0:4004 \ | |
--bind consensus:tcp://eth0:5050 \ | |
--peering dynamic \ | |
--endpoint tcp://validator-3:8800 \ | |
--seeds tcp://validator-0:8800 \ | |
--scheduler serial \ | |
--network-auth trust | |
" | |
environment: | |
PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ | |
/project/sawtooth-core/consensus/poet/simulator:\ | |
/project/sawtooth-core/consensus/poet/core" | |
stop_signal: SIGKILL | |
validator-4: | |
image: hyperledger/sawtooth-validator:1.1 | |
container_name: sawtooth-validator-default-4 | |
expose: | |
- 4004 | |
- 5050 | |
- 8800 | |
volumes: | |
- poet-shared:/poet-shared | |
- val5:/var/lib/sawtooth | |
- val5_keys:/etc/sawtooth/keys | |
command: | | |
bash -c " | |
sawadm keygen --force && \ | |
mkdir -p /poet-shared/validator-4 && \ | |
cp -a /etc/sawtooth/keys /poet-shared/validator-4/ && \ | |
sawtooth-validator -v \ | |
--bind network:tcp://eth0:8800 \ | |
--bind component:tcp://eth0:4004 \ | |
--bind consensus:tcp://eth0:5050 \ | |
--peering dynamic \ | |
--endpoint tcp://validator-4:8800 \ | |
--seeds tcp://validator-0:8800 \ | |
--scheduler serial \ | |
--network-auth trust | |
" | |
environment: | |
PYTHONPATH: "/project/sawtooth-core/consensus/poet/common:\ | |
/project/sawtooth-core/consensus/poet/simulator:\ | |
/project/sawtooth-core/consensus/poet/core" | |
stop_signal: SIGKILL | |
rest-api-0: | |
image: hyperledger/sawtooth-rest-api:1.1 | |
container_name: sawtooth-rest-api-default-0 | |
expose: | |
- 8008 | |
command: | | |
bash -c " | |
sawtooth-rest-api \ | |
--connect tcp://validator-0:4004 \ | |
--bind rest-api-0:8008 | |
" | |
stop_signal: SIGKILL | |
rest-api-1: | |
image: hyperledger/sawtooth-rest-api:1.1 | |
container_name: sawtooth-rest-api-default-1 | |
expose: | |
- 8008 | |
command: | | |
bash -c " | |
sawtooth-rest-api \ | |
--connect tcp://validator-1:4004 \ | |
--bind rest-api-1:8008 | |
" | |
stop_signal: SIGKILL | |
rest-api-2: | |
image: hyperledger/sawtooth-rest-api:1.1 | |
container_name: sawtooth-rest-api-default-2 | |
expose: | |
- 8008 | |
command: | | |
bash -c " | |
sawtooth-rest-api \ | |
--connect tcp://validator-2:4004 \ | |
--bind rest-api-2:8008 | |
" | |
stop_signal: SIGKILL | |
rest-api-3: | |
image: hyperledger/sawtooth-rest-api:1.1 | |
container_name: sawtooth-rest-api-default-3 | |
expose: | |
- 8008 | |
command: | | |
bash -c " | |
sawtooth-rest-api \ | |
--connect tcp://validator-3:4004 \ | |
--bind rest-api-3:8008 | |
" | |
stop_signal: SIGKILL | |
rest-api-4: | |
image: hyperledger/sawtooth-rest-api:1.1 | |
container_name: sawtooth-rest-api-default-4 | |
expose: | |
- 8008 | |
command: | | |
bash -c " | |
sawtooth-rest-api \ | |
--connect tcp://validator-4:4004 \ | |
--bind rest-api-4:8008 | |
" | |
stop_signal: SIGKILL | |
intkey-tp-0: | |
image: hyperledger/sawtooth-intkey-tp-python:1.1 | |
container_name: sawtooth-intkey-tp-python-default-0 | |
expose: | |
- 4004 | |
command: intkey-tp-python -C tcp://validator-0:4004 | |
stop_signal: SIGKILL | |
intkey-tp-1: | |
image: hyperledger/sawtooth-intkey-tp-python:1.1 | |
container_name: sawtooth-intkey-tp-python-default-1 | |
expose: | |
- 4004 | |
command: intkey-tp-python -C tcp://validator-1:4004 | |
stop_signal: SIGKILL | |
intkey-tp-2: | |
image: hyperledger/sawtooth-intkey-tp-python:1.1 | |
container_name: sawtooth-intkey-tp-python-default-2 | |
expose: | |
- 4004 | |
command: intkey-tp-python -C tcp://validator-2:4004 | |
stop_signal: SIGKILL | |
intkey-tp-3: | |
image: hyperledger/sawtooth-intkey-tp-python:1.1 | |
container_name: sawtooth-intkey-tp-python-default-3 | |
expose: | |
- 4004 | |
command: intkey-tp-python -C tcp://validator-3:4004 | |
stop_signal: SIGKILL | |
intkey-tp-4: | |
image: hyperledger/sawtooth-intkey-tp-python:1.1 | |
container_name: sawtooth-intkey-tp-python-default-4 | |
expose: | |
- 4004 | |
command: intkey-tp-python -C tcp://validator-4:4004 | |
stop_signal: SIGKILL | |
xo-tp-0: | |
image: hyperledger/sawtooth-xo-tp-python:1.1 | |
container_name: sawtooth-xo-tp-python-default-0 | |
expose: | |
- 4004 | |
command: xo-tp-python -vv -C tcp://validator-0:4004 | |
stop_signal: SIGKILL | |
xo-tp-1: | |
image: hyperledger/sawtooth-xo-tp-python:1.1 | |
container_name: sawtooth-xo-tp-python-default-1 | |
expose: | |
- 4004 | |
command: xo-tp-python -vv -C tcp://validator-1:4004 | |
stop_signal: SIGKILL | |
xo-tp-2: | |
image: hyperledger/sawtooth-xo-tp-python:1.1 | |
container_name: sawtooth-xo-tp-python-default-2 | |
expose: | |
- 4004 | |
command: xo-tp-python -vv -C tcp://validator-2:4004 | |
stop_signal: SIGKILL | |
xo-tp-3: | |
image: hyperledger/sawtooth-xo-tp-python:1.1 | |
container_name: sawtooth-xo-tp-python-default-3 | |
expose: | |
- 4004 | |
command: xo-tp-python -vv -C tcp://validator-3:4004 | |
stop_signal: SIGKILL | |
xo-tp-4: | |
image: hyperledger/sawtooth-xo-tp-python:1.1 | |
container_name: sawtooth-xo-tp-python-default-4 | |
expose: | |
- 4004 | |
command: xo-tp-python -vv -C tcp://validator-4:4004 | |
stop_signal: SIGKILL | |
settings-tp-0: | |
image: hyperledger/sawtooth-settings-tp:1.1 | |
container_name: sawtooth-settings-tp-default-0 | |
expose: | |
- 4004 | |
command: settings-tp -C tcp://validator-0:4004 | |
stop_signal: SIGKILL | |
settings-tp-1: | |
image: hyperledger/sawtooth-settings-tp:1.1 | |
container_name: sawtooth-settings-tp-default-1 | |
expose: | |
- 4004 | |
command: settings-tp -C tcp://validator-1:4004 | |
stop_signal: SIGKILL | |
settings-tp-2: | |
image: hyperledger/sawtooth-settings-tp:1.1 | |
container_name: sawtooth-settings-tp-default-2 | |
expose: | |
- 4004 | |
command: settings-tp -C tcp://validator-2:4004 | |
stop_signal: SIGKILL | |
settings-tp-3: | |
image: hyperledger/sawtooth-settings-tp:1.1 | |
container_name: sawtooth-settings-tp-default-3 | |
expose: | |
- 4004 | |
command: settings-tp -C tcp://validator-3:4004 | |
stop_signal: SIGKILL | |
settings-tp-4: | |
image: hyperledger/sawtooth-settings-tp:1.1 | |
container_name: sawtooth-settings-tp-default-4 | |
expose: | |
- 4004 | |
command: settings-tp -C tcp://validator-4:4004 | |
stop_signal: SIGKILL | |
poet-engine-0: | |
image: hyperledger/sawtooth-poet-engine:1.1 | |
container_name: sawtooth-poet-engine-0 | |
volumes: | |
- poet-shared:/poet-shared | |
command: "bash -c \"\ | |
if [ ! -f /poet-shared/poet-enclave-measurement ]; then \ | |
poet enclave measurement >> /poet-shared/poet-enclave-measurement; \ | |
fi && \ | |
if [ ! -f /poet-shared/poet-enclave-basename ]; then \ | |
poet enclave basename >> /poet-shared/poet-enclave-basename; \ | |
fi && \ | |
if [ ! -f /poet-shared/simulator_rk_pub.pem ]; then \ | |
cp /etc/sawtooth/simulator_rk_pub.pem /poet-shared; \ | |
fi && \ | |
while [ ! -f /poet-shared/validator-0/keys/validator.priv ]; do sleep 1; done && \ | |
cp -a /poet-shared/validator-0/keys /etc/sawtooth && \ | |
poet registration create -k /etc/sawtooth/keys/validator.priv -o /poet-shared/poet.batch && \ | |
poet-engine -C tcp://validator-0:5050 --component tcp://validator-0:4004 \ | |
\"" | |
poet-engine-1: | |
image: hyperledger/sawtooth-poet-engine:1.1 | |
container_name: sawtooth-poet-engine-1 | |
volumes: | |
- poet-shared:/poet-shared | |
command: "bash -c \"\ | |
while [ ! -f /poet-shared/validator-1/keys/validator.priv ]; do sleep 1; done && \ | |
cp -a /poet-shared/validator-1/keys /etc/sawtooth && \ | |
poet-engine -C tcp://validator-1:5050 --component tcp://validator-1:4004 \ | |
\"" | |
poet-engine-2: | |
image: hyperledger/sawtooth-poet-engine:1.1 | |
container_name: sawtooth-poet-engine-2 | |
volumes: | |
- poet-shared:/poet-shared | |
command: "bash -c \"\ | |
while [ ! -f /poet-shared/validator-2/keys/validator.priv ]; do sleep 1; done && \ | |
cp -a /poet-shared/validator-2/keys /etc/sawtooth && \ | |
poet-engine -C tcp://validator-2:5050 --component tcp://validator-2:4004 \ | |
\"" | |
poet-engine-3: | |
image: hyperledger/sawtooth-poet-engine:1.1 | |
container_name: sawtooth-poet-engine-3 | |
volumes: | |
- poet-shared:/poet-shared | |
command: "bash -c \"\ | |
while [ ! -f /poet-shared/validator-3/keys/validator.priv ]; do sleep 1; done && \ | |
cp -a /poet-shared/validator-3/keys /etc/sawtooth && \ | |
poet-engine -C tcp://validator-3:5050 --component tcp://validator-3:4004 \ | |
\"" | |
poet-engine-4: | |
image: hyperledger/sawtooth-poet-engine:1.1 | |
container_name: sawtooth-poet-engine-4 | |
volumes: | |
- poet-shared:/poet-shared | |
command: "bash -c \"\ | |
while [ ! -f /poet-shared/validator-4/keys/validator.priv ]; do sleep 1; done && \ | |
cp -a /poet-shared/validator-4/keys /etc/sawtooth && \ | |
poet-engine -C tcp://validator-4:5050 --component tcp://validator-4:4004 \ | |
\"" | |
poet-validator-registry-tp-0: | |
image: hyperledger/sawtooth-poet-validator-registry-tp:1.1 | |
container_name: sawtooth-poet-validator-registry-tp-0 | |
expose: | |
- 4004 | |
command: poet-validator-registry-tp -C tcp://validator-0:4004 | |
environment: | |
PYTHONPATH: /project/sawtooth-core/consensus/poet/common | |
stop_signal: SIGKILL | |
poet-validator-registry-tp-1: | |
image: hyperledger/sawtooth-poet-validator-registry-tp:1.1 | |
container_name: sawtooth-poet-validator-registry-tp-1 | |
expose: | |
- 4004 | |
command: poet-validator-registry-tp -C tcp://validator-1:4004 | |
environment: | |
PYTHONPATH: /project/sawtooth-core/consensus/poet/common | |
stop_signal: SIGKILL | |
poet-validator-registry-tp-2: | |
image: hyperledger/sawtooth-poet-validator-registry-tp:1.1 | |
container_name: sawtooth-poet-validator-registry-tp-2 | |
expose: | |
- 4004 | |
command: poet-validator-registry-tp -C tcp://validator-2:4004 | |
environment: | |
PYTHONPATH: /project/sawtooth-core/consensus/poet/common | |
stop_signal: SIGKILL | |
poet-validator-registry-tp-3: | |
image: hyperledger/sawtooth-poet-validator-registry-tp:1.1 | |
container_name: sawtooth-poet-validator-registry-tp-3 | |
expose: | |
- 4004 | |
command: poet-validator-registry-tp -C tcp://validator-3:4004 | |
environment: | |
PYTHONPATH: /project/sawtooth-core/consensus/poet/common | |
stop_signal: SIGKILL | |
poet-validator-registry-tp-4: | |
image: hyperledger/sawtooth-poet-validator-registry-tp:1.1 | |
container_name: sawtooth-poet-validator-registry-tp-4 | |
expose: | |
- 4004 | |
command: poet-validator-registry-tp -C tcp://validator-4:4004 | |
environment: | |
PYTHONPATH: /project/sawtooth-core/consensus/poet/common | |
stop_signal: SIGKILL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment