first-run.sh 602 B

1234567891011121314
  1. #!/usr/bin/env bash
  2. source .env
  3. mkdir -p data
  4. sudo rm -rf data/chain
  5. docker-compose up -d
  6. sleep 1 # we need to wait for the container to start the docker service
  7. docker exec -it -w /joystream joystream-aio-${CHAIN_NAME} bash -c "source /root/.bashrc && ./build-node-docker.sh"
  8. docker exec -it joystream-aio-${CHAIN_NAME} bash -c "source /root/.bashrc && scripts/generate-chain-spec.sh"
  9. docker exec -it joystream-aio-${CHAIN_NAME} bash -c "source /root/.bashrc && scripts/start-node.sh"
  10. docker exec -it -w /joystream joystream-aio-${CHAIN_NAME} bash -c "source /root/.bashrc && query-node/start.sh"