start.sh 1021 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/env bash
  2. set -e
  3. # Run a complete joystream development network on your machine using docker.
  4. # Make sure to run build.sh prior to running this script.
  5. # Clean start!
  6. docker-compose down -v
  7. function down()
  8. {
  9. # Stop containers and clear volumes
  10. docker-compose down -v
  11. }
  12. trap down EXIT
  13. # Run a local development chain
  14. docker-compose up -d joystream-node
  15. ## Storage Infrastructure
  16. # Configure a dev storage node and start storage node
  17. DEBUG=joystream:storage-cli:dev yarn storage-cli dev-init
  18. docker-compose up -d colossus
  19. # Initialise the content directory with standard classes, schemas and initial entities
  20. yarn workspace cd-schemas initialize:dev
  21. ## Query Node Infrastructure
  22. # Initialize a new database for the query node infrastructure
  23. docker-compose up -d db
  24. yarn workspace query-node-root db:migrate
  25. # Startup all query-node infrastructure services
  26. docker-compose up -d processor
  27. echo "press Ctrl+C to shutdown"
  28. # Start a dev instance of pioneer and wait for exit
  29. docker-compose up pioneer