start.sh 843 B

12345678910111213141516171819202122232425262728293031323334353637383940
  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. set -a
  7. . .env
  8. set +a
  9. # Clean start!
  10. docker-compose down -v
  11. function down()
  12. {
  13. # Stop containers and clear volumes
  14. docker-compose down -v
  15. }
  16. trap down EXIT
  17. # Run a local development chain
  18. docker-compose up -d joystream-node
  19. ## Storage Infrastructure
  20. # Configure a dev storage node and start storage node
  21. yarn workspace api-scripts storage-dev-init
  22. docker-compose up -d colossus
  23. # Create a new content directory lead
  24. GROUP=contentDirectoryWorkingGroup yarn workspace api-scripts initialize-lead
  25. ## Query Node Infrastructure
  26. ./query-node/start.sh
  27. echo "use Ctrl+C to shutdown the development network."
  28. while true; do
  29. read
  30. done