forked from Joystream/joystream
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstart.sh
More file actions
executable file
·44 lines (33 loc) · 1.07 KB
/
start.sh
File metadata and controls
executable file
·44 lines (33 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/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
# Initialise the content directory with standard classes, schemas and initial entities
yarn workspace @joystream/cd-schemas initialize:dev
## Query Node Infrastructure
# Initialize a new database for the query node infrastructure
docker-compose up -d db
yarn workspace query-node-root db:migrate
# Startup all query-node infrastructure services
docker-compose up -d graphql-server
docker-compose up -d processor
echo "press Ctrl+C to shutdown"
# Start a dev instance of pioneer and wait for exit
docker-compose up pioneer