start-dev.sh 820 B

1234567891011121314151617181920212223242526272829
  1. #!/usr/bin/env bash
  2. set -e
  3. # Avoid pulling joystream/node from docker hub. It is most likely
  4. # not the version that we want to work with. Either you should
  5. # build it locally or pull it down manually if you that is what you want
  6. if ! docker inspect joystream/node:latest > /dev/null 2>&1;
  7. then
  8. echo "Didn't find local joystream/node:latest docker image."
  9. exit 1
  10. fi
  11. # SCRIPT_PATH="$(dirname "${BASH_SOURCE[0]}")"
  12. # stop prior run and clear volumes
  13. docker-compose down -v
  14. # Run a development joystream-node chain and ipfs daemon in the background
  15. docker-compose up -d
  16. # configure the dev chain
  17. DEBUG=joystream:storage-cli:dev yarn storage-cli dev-init
  18. # Run the tests
  19. # Tests sometimes fail, so skip for now
  20. # yarn workspace storage-node test
  21. # Start Colossus storage-node
  22. DEBUG=joystream:* yarn colossus --dev