-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.sh
executable file
·55 lines (28 loc) · 1.46 KB
/
build.sh
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
45
46
47
48
49
50
51
52
53
54
55
#!/bin/bash
kubectl apply -f 00-namespace.yaml
kubectl apply -f 01-permissions.yaml
kubectl apply -f 02-nfs.yaml
kubectl apply -f 03-docker.yaml
kubectl apply -f 04-utils.yaml
kubectl -n ledger wait --for=condition=complete --timeout=600s job/utils
kubectl apply -f 05-orderer.yaml
kubectl -n ledger wait --for=condition=available --timeout=600s deployment/orderer
kubectl apply -f 06-ca.yaml
kubectl -n ledger wait --for=condition=available --timeout=600s deployment/ca
kubectl apply -f 07-org1.yaml
kubectl -n ledger wait --for=condition=available --timeout=600s deployment/org1peer1
kubectl apply -f 08-org2.yaml
kubectl -n ledger wait --for=condition=available --timeout=600s deployment/org2peer1
kubectl apply -f 09-org3.yaml
kubectl -n ledger wait --for=condition=available --timeout=600s deployment/org3peer1
kubectl apply -f 10-org4.yaml
kubectl -n ledger wait --for=condition=available --timeout=600s deployment/org4peer1
kubectl apply -f 11-create-channel.yaml
kubectl -n ledger wait --for=condition=complete --timeout=600s job/create-channel
kubectl apply -f 12-join-channel.yaml
kubectl -n ledger wait --for=condition=complete --timeout=600s job/join-channel
kubectl apply -f 13-install-chaincode.yaml
kubectl -n ledger wait --for=condition=complete --timeout=600s job/chaincode-install
kubectl apply -f 14-instantiate-chaincode.yaml
kubectl -n ledger wait --for=condition=complete --timeout=600s job/chaincode-instantiate
kubectl apply -f 15-application.yaml