Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ===== Overview ===== Notes on Sawtooth, based on EDX course chapter for the time being. ===== Installation on Fedora ===== <code> $ sudo dnf install docker-ce docker-compose $ sudo dnf install nodejs npm $ sudo dnf install golang $ sudo dnf install curl </code> Check versions: <code> $ docker --version $ docker-compose --version $ npm --version $ node --version $ go version </code> Start Docker: <code> $ sudo systemctl start docker </code> ===== Getting Started ===== * [[https://raw.githubusercontent.com/hyperledger/education/master/LFS171x/sawtooth-material/sawtooth-default.yaml|sawtooth-default.yaml]] <code> $ docker-compose -f sawtooth-default.yaml up [&] </code> In a separate window (not necessarily the same directory): <code> $ docker exec -it sawtooth-client-default bash </code> Test from client container: <code> # curl http://rest-api:8080/blocks </code> Test from host: <code> $ curl http://localhost:8080/blocks </code> You can also ask Docker to list the running containers: <code> $ 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 $ </code> To shut things down later (from invoking directory): <code> $ docker-compose -f sawtooth-default.yaml down </code> hyperledger_sawtooth.txt Last modified: 2018/03/20 10:59by rpjday