Guest User

sawtooth-default.yaml

a guest
Apr 3rd, 2018
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.41 KB | None | 0 0
  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. image: hyperledger/sawtooth-settings-tp:1.0
  22. container_name: sawtooth-settings-tp-default
  23. depends_on:
  24. - validator
  25. entrypoint: settings-tp -vv -C tcp://validator:4004
  26.  
  27. intkey-tp-python:
  28. image: hyperledger/sawtooth-intkey-tp-python:1.0
  29. container_name: sawtooth-intkey-tp-python-default
  30. depends_on:
  31. - validator
  32. entrypoint: intkey-tp-python -vv -C tcp://validator:4004
  33.  
  34. xo-tp-python:
  35. image: hyperledger/sawtooth-xo-tp-python:1.0
  36. container_name: sawtooth-xo-tp-python-default
  37. depends_on:
  38. - validator
  39. entrypoint: xo-tp-python -vv -C tcp://validator:4004
  40.  
  41. validator:
  42. image: hyperledger/sawtooth-validator:1.0
  43. container_name: sawtooth-validator-default
  44. expose:
  45. - 4004
  46. ports:
  47. - "4004:4004"
  48. # start the validator with an empty genesis batch
  49. entrypoint: "bash -c \"\
  50. sawadm keygen && \
  51. sawtooth keygen my_key && \
  52. sawset genesis -k /root/.sawtooth/keys/my_key.priv && \
  53. sawadm genesis config-genesis.batch && \
  54. sawtooth-validator -vv \
  55. --endpoint tcp://validator:8800 \
  56. --bind component:tcp://eth0:4004 \
  57. --bind network:tcp://eth0:8800 \
  58. \""
  59.  
  60. rest-api:
  61. image: hyperledger/sawtooth-rest-api:1.0
  62. container_name: sawtooth-rest-api-default
  63. ports:
  64. - "8008:8008"
  65. depends_on:
  66. - validator
  67. entrypoint: sawtooth-rest-api -C tcp://validator:4004 --bind rest-api:8008
  68.  
  69. shell:
  70. image: hyperledger/sawtooth-all:1.0
  71. container_name: sawtooth-shell-default
  72. depends_on:
  73. - rest-api
  74. entrypoint: "bash -c \"\
  75. sawtooth keygen && \
  76. tail -f /dev/null \
  77. \""
Add Comment
Please, Sign In to add comment