start.sh 912 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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-docker-images.sh prior to running this script to use
  5. # the local build.
  6. # Clean start!
  7. docker-compose down -v
  8. function down()
  9. {
  10. # Stop containers and clear volumes
  11. docker-compose down -v
  12. }
  13. trap down EXIT
  14. ## Run a local development chain
  15. docker-compose up -d joystream-node
  16. ## Init the chain with some state
  17. SKIP_MOCK_CONTENT=true ./tests/network-tests/run-test-scenario.sh setup-new-chain
  18. ## Set sudo as the membership screening authority
  19. yarn workspace api-scripts set-sudo-as-screening-auth
  20. ## Query Node Infrastructure
  21. ./query-node/start.sh
  22. ## Storage Infrastructure
  23. docker-compose up -d colossus-1
  24. docker-compose up -d distributor-1
  25. ## Pioneer UI
  26. docker-compose up -d pioneer
  27. echo "use Ctrl+C to shutdown the development network."
  28. while true; do
  29. read
  30. done