Skip to content

Instantly share code, notes, and snippets.

@peterschwarz
Last active August 12, 2018 22:39
Show Gist options
  • Save peterschwarz/2b2809a95df32ce1747697acb1fbacea to your computer and use it in GitHub Desktop.
Save peterschwarz/2b2809a95df32ce1747697acb1fbacea to your computer and use it in GitHub Desktop.
Useful Sawtooth Development Commands

Useful commands for Sawtooth Core Developers

Python Linting

Use docker to run the linter

$ docker-compose -f docker/compose/run-lint.yaml up lint-python

Building the debs (with the example of a specific component)

$ docker-compose -f docker-compose-installed.yaml build validator
Building validator
...
$ docker-compose -f docker/compose/copy-debs.yaml up validator

Building in docker

$ docker run -it -v $(pwd):/project/sawtooth-core -v cargo-registry:/root/.cargo/registry sawtooth-validator-local bash

Compiling the necessaries (in the running docker container):

$ cargo build --release && cp ./target/release/sawtooth-validator bin/sawtooth-validator  && cp ./target/release/libsawtooth_validator.so lib/libsawtooth_validator.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment