12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849 |
- #!/usr/bin/env bash
- set -e
- # Run a complete joystream development network on your machine using docker.
- # Make sure to run build.sh prior to running this script.
- set -a
- . .env
- set +a
- # Clean start!
- docker-compose down -v
- function down()
- {
- # Stop containers and clear volumes
- docker-compose down -v
- }
- trap down EXIT
- # Run a local development chain
- docker-compose up -d joystream-node
- ## Storage Infrastructure
- # Configure a dev storage node and start storage node
- DEBUG=joystream:storage-cli:dev yarn storage-cli dev-init
- docker-compose up -d colossus
- # Create a new content directory lead
- yarn workspace api-scripts initialize-content-lead
- ## Query Node Infrastructure
- # Initialize a new database for the query node infrastructure
- docker-compose up -d db
- yarn workspace query-node-root db:prepare
- yarn workspace query-node-root db:migrate
- # Startup all query-node infrastructure services
- export WS_PROVIDER_ENDPOINT_URI=ws://joystream-node:9944
- docker-compose up -d graphql-server
- docker-compose up -d processor
- echo "press Ctrl+C to shutdown the development network"
- echo 'run: `yarn workspace pioneer start` in a separate terminal to bring up an instance of pioneer and \
- point your browser to http://localhost:3000/ to access the UI
- '
- while true; do
- read
- done
|