===== Overview ===== Notes on Sawtooth, based on EDX course chapter for the time being. ===== Installation on Fedora ===== $ sudo dnf install docker-ce docker-compose $ sudo dnf install nodejs npm $ sudo dnf install golang $ sudo dnf install curl Check versions: $ docker --version $ docker-compose --version $ npm --version $ node --version $ go version Start Docker: $ sudo systemctl start docker ===== Getting Started ===== * [[https://raw.githubusercontent.com/hyperledger/education/master/LFS171x/sawtooth-material/sawtooth-default.yaml|sawtooth-default.yaml]] $ docker-compose -f sawtooth-default.yaml up [&] In a separate window (not necessarily the same directory): $ docker exec -it sawtooth-client-default bash Test from client container: # curl http://rest-api:8080/blocks Test from host: $ curl http://localhost:8080/blocks You can also ask Docker to list the running containers: $ docker ps CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 6c1d3dd6d548 hyperledger/sawtooth-all:0.8 "bash -c 'sawtooth k…" 5 minutes ago Up 5 minutes 4004/tcp, 8080/tcp sawtooth-client-default 59140cd98bff hyperledger/sawtooth-tp_settings:0.8 "settings-tp -vv tcp…" 5 minutes ago Up 5 minutes 4004/tcp sawtooth-settings-tp-default 5027bbf0787b hyperledger/sawtooth-tp_intkey_python:0.8 "intkey-tp-python -v…" 5 minutes ago Up 5 minutes 4004/tcp sawtooth-intkey-tp-python-default e3ab5ed8e511 hyperledger/sawtooth-rest_api:0.8 "sawtooth-rest-api -…" 5 minutes ago Up 5 minutes 4004/tcp, 0.0.0.0:8080->8080/tcp sawtooth-rest-api-default 39fd73f54b49 hyperledger/sawtooth-tp_xo_python:0.8 "xo-tp-python -vv tc…" 5 minutes ago Up 5 minutes 4004/tcp sawtooth-xo-tp-python-default 9db364da9be2 hyperledger/sawtooth-validator:0.8 "bash -c 'sawtooth a…" 5 minutes ago Up 5 minutes 0.0.0.0:4004->4004/tcp sawtooth-validator-default $ To shut things down later (from invoking directory): $ docker-compose -f sawtooth-default.yaml down