Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| hyperledger_sawtooth [2018/03/19 10:55] – created rpjday | hyperledger_sawtooth [2018/03/20 10:59] (current) – [Installation on Fedora] rpjday | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| Notes on Sawtooth, based on EDX course chapter for the time being. | 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:// | ||
| + | |||
| + | < | ||
| + | $ 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:// | ||
| + | </ | ||
| + | |||
| + | Test from host: | ||
| + | |||
| + | < | ||
| + | $ curl http:// | ||
| + | </ | ||
| + | |||
| + | You can also ask Docker to list the running containers: | ||
| + | |||
| + | < | ||
| + | $ docker ps | ||
| + | CONTAINER ID IMAGE | ||
| + | 6c1d3dd6d548 | ||
| + | 59140cd98bff | ||
| + | 5027bbf0787b | ||
| + | e3ab5ed8e511 | ||
| + | 39fd73f54b49 | ||
| + | 9db364da9be2 | ||
| + | $ | ||
| + | </ | ||
| + | |||
| + | To shut things down later (from invoking directory): | ||
| + | |||
| + | < | ||
| + | $ docker-compose -f sawtooth-default.yaml down | ||
| + | </ | ||