run-dev-instance.sh 721 B

1234567891011121314151617181920
  1. #!/usr/bin/env bash
  2. set -e
  3. script_path="$(dirname "${BASH_SOURCE[0]}")"
  4. # stop prior run and clear volumes
  5. docker-compose -f ${script_path}/compose/devchain-and-ipfs-node/docker-compose.yaml down -v
  6. # Run a development joystream-node chain and ipfs daemon in the background
  7. # Will use latest joystream/node images,
  8. # and will fetch from dockerhub if not found, so build them locally if
  9. # you need the version from the current branch
  10. docker-compose -f ${script_path}/compose/devchain-and-ipfs-node/docker-compose.yaml up -d
  11. # configure the dev chain
  12. DEBUG=joystream:storage-cli:dev yarn storage-cli dev-init
  13. DEBUG=joystream:storage-cli:dev yarn storage-cli dev-check
  14. # Run the server
  15. DEBUG=* yarn colossus dev-server