-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathMakefile
More file actions
40 lines (28 loc) · 1.13 KB
/
Makefile
File metadata and controls
40 lines (28 loc) · 1.13 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
all: build init start
build:
docker-compose -f ledgers.yml build
init: reinit_db config accounts assets
start:
docker-compose -f ledgers.yml up
restart: init start
config:
rm -rf .bigchaindb_examples_docker .bigchaindb_examples_docker_connector
touch .bigchaindb_examples_docker .bigchaindb_examples_docker_connector
docker-compose -f ledgers.yml run --rm bdb-0 bigchaindb -yc .bigchaindb_examples configure
docker-compose -f ledgers.yml run --rm bdb-0 bigchaindb -c .bigchaindb_examples init
docker-compose -f ledgers.yml run --rm bdb-1 bigchaindb -yc .bigchaindb_examples configure
docker-compose -f ledgers.yml run --rm bdb-1 bigchaindb -c .bigchaindb_examples init
docker-compose -f ledgers.yml run --rm connector bigchaindb -yc .bigchaindb_examples configure
accounts:
docker-compose -f ledgers.yml run --rm bdb-0 python init_accounts.py
assets:
docker-compose -f ledgers.yml run --rm bdb-0 python init_assets.py
drop_db:
docker-compose -f ledgers.yml stop rdb
docker-compose -f ledgers.yml rm -f rdb
start_db:
docker-compose -f ledgers.yml up -d rdb
reinit_db: drop_db start_db
sleep 10
stop:
docker-compose -f ledgers.yml down