質問編集履歴

7

コメント追加

2018/06/21 09:10

投稿

wangzj
wangzj

スコア53

test CHANGED
File without changes
test CHANGED
@@ -68,6 +68,6 @@
68
68
 
69
69
  ```ここに言語を入力
70
70
 
71
- {"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"D:/blockchain/quorum-examples_20180625","disabled":false,"__vagrantfile":true}}}
71
+ {"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"D:/blockchain/20180625","disabled":false,"__vagrantfile":true}}}
72
72
 
73
73
  ```

6

コメント追加

2018/06/21 09:10

投稿

wangzj
wangzj

スコア53

test CHANGED
File without changes
test CHANGED
@@ -64,7 +64,7 @@
64
64
 
65
65
  ```
66
66
 
67
- D:\blockchain\quorum-examples_20180625.vagrant\machines\default\virtualbox\synced_folders
67
+ D:\blockchain\20180625.vagrant\machines\default\virtualbox\synced_folders
68
68
 
69
69
  ```ここに言語を入力
70
70
 

5

変更点追加

2018/06/21 09:09

投稿

wangzj
wangzj

スコア53

test CHANGED
File without changes
test CHANGED
@@ -64,116 +64,10 @@
64
64
 
65
65
  ```
66
66
 
67
- ファイルD:\blockchain/20180625/vagrant/bootstrap.sh
67
+ D:\blockchain\quorum-examples_20180625.vagrant\machines\default\virtualbox\synced_folders
68
68
 
69
69
  ```ここに言語を入力
70
70
 
71
- #!/bin/bash
72
-
73
- set -eu -o pipefail
74
-
75
-
76
-
77
- # install build deps
78
-
79
- add-apt-repository ppa:ethereum/ethereum
80
-
81
- apt-get update
82
-
83
- apt-get install -y build-essential unzip libdb-dev libleveldb-dev libsodium-dev zlib1g-dev libtinfo-dev solc sysvbanner wrk
84
-
85
-
86
-
87
- # install constellation
88
-
89
- CVER="0.3.2"
90
-
91
- CREL="constellation-$CVER-ubuntu1604"
92
-
93
- wget -q https://github.com/jpmorganchase/constellation/releases/download/v$CVER/$CREL.tar.xz
94
-
95
- tar xfJ $CREL.tar.xz
96
-
97
- cp $CREL/constellation-node /usr/local/bin && chmod 0755 /usr/local/bin/constellation-node
98
-
99
- rm -rf $CREL
100
-
101
-
102
-
103
- # install golang
104
-
105
- GOREL=go1.9.3.linux-amd64.tar.gz
106
-
107
- wget -q https://dl.google.com/go/$GOREL
108
-
109
- tar xfz $GOREL
110
-
111
- mv go /usr/local/go
112
-
113
- rm -f $GOREL
114
-
115
- PATH=$PATH:/usr/local/go/bin
116
-
117
- echo 'PATH=$PATH:/usr/local/go/bin' >> /home/vagrant/.bashrc
118
-
119
-
120
-
121
- # make/install quorum
122
-
123
- git clone https://github.com/jpmorganchase/quorum.git
124
-
125
- pushd quorum >/dev/null
126
-
127
- git checkout tags/v2.0.2
128
-
129
- make all
130
-
131
- cp build/bin/geth /usr/local/bin
132
-
133
- cp build/bin/bootnode /usr/local/bin
134
-
135
- popd >/dev/null
136
-
137
-
138
-
139
- # install Porosity
140
-
141
- wget -q https://github.com/jpmorganchase/quorum/releases/download/v1.2.0/porosity
142
-
143
- mv porosity /usr/local/bin && chmod 0755 /usr/local/bin/porosity
144
-
145
-
146
-
147
- # copy examples
148
-
149
- cp -r /vagrant/examples /home/vagrant/quorum-examples
150
-
151
- chown -R vagrant:vagrant /home/vagrant/quorum /home/vagrant/quorum-examples
152
-
153
- chmod 755 /home/vagrant/quorum-examples/3nodes/*.sh
154
-
155
-
156
-
157
- # install istanbul-tools
158
-
159
- export GOPATH=/home/vagrant/go
160
-
161
- /usr/local/go/bin/go get github.com/getamis/istanbul-tools/cmd/istanbul
162
-
163
- cp /home/vagrant/go/bin/istanbul /usr/local/bin
164
-
165
-
166
-
167
- # done!
168
-
169
- banner "Quorum"
170
-
171
- echo
172
-
173
- echo 'The Quorum vagrant instance has been provisioned. Examples are available in ~/quorum-examples inside the instance.'
174
-
175
- echo "Use 'vagrant ssh' to open a terminal, 'vagrant suspend' to stop the instance, and 'vagrant destroy' to remove it."
71
+ {"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"D:/blockchain/quorum-examples_20180625","disabled":false,"__vagrantfile":true}}}
176
-
177
-
178
72
 
179
73
  ```

4

bootstrap.sh追加

2018/06/21 09:09

投稿

wangzj
wangzj

スコア53

test CHANGED
File without changes
test CHANGED
@@ -63,3 +63,117 @@
63
63
  end
64
64
 
65
65
  ```
66
+
67
+ ファイルD:\blockchain/20180625/vagrant/bootstrap.sh
68
+
69
+ ```ここに言語を入力
70
+
71
+ #!/bin/bash
72
+
73
+ set -eu -o pipefail
74
+
75
+
76
+
77
+ # install build deps
78
+
79
+ add-apt-repository ppa:ethereum/ethereum
80
+
81
+ apt-get update
82
+
83
+ apt-get install -y build-essential unzip libdb-dev libleveldb-dev libsodium-dev zlib1g-dev libtinfo-dev solc sysvbanner wrk
84
+
85
+
86
+
87
+ # install constellation
88
+
89
+ CVER="0.3.2"
90
+
91
+ CREL="constellation-$CVER-ubuntu1604"
92
+
93
+ wget -q https://github.com/jpmorganchase/constellation/releases/download/v$CVER/$CREL.tar.xz
94
+
95
+ tar xfJ $CREL.tar.xz
96
+
97
+ cp $CREL/constellation-node /usr/local/bin && chmod 0755 /usr/local/bin/constellation-node
98
+
99
+ rm -rf $CREL
100
+
101
+
102
+
103
+ # install golang
104
+
105
+ GOREL=go1.9.3.linux-amd64.tar.gz
106
+
107
+ wget -q https://dl.google.com/go/$GOREL
108
+
109
+ tar xfz $GOREL
110
+
111
+ mv go /usr/local/go
112
+
113
+ rm -f $GOREL
114
+
115
+ PATH=$PATH:/usr/local/go/bin
116
+
117
+ echo 'PATH=$PATH:/usr/local/go/bin' >> /home/vagrant/.bashrc
118
+
119
+
120
+
121
+ # make/install quorum
122
+
123
+ git clone https://github.com/jpmorganchase/quorum.git
124
+
125
+ pushd quorum >/dev/null
126
+
127
+ git checkout tags/v2.0.2
128
+
129
+ make all
130
+
131
+ cp build/bin/geth /usr/local/bin
132
+
133
+ cp build/bin/bootnode /usr/local/bin
134
+
135
+ popd >/dev/null
136
+
137
+
138
+
139
+ # install Porosity
140
+
141
+ wget -q https://github.com/jpmorganchase/quorum/releases/download/v1.2.0/porosity
142
+
143
+ mv porosity /usr/local/bin && chmod 0755 /usr/local/bin/porosity
144
+
145
+
146
+
147
+ # copy examples
148
+
149
+ cp -r /vagrant/examples /home/vagrant/quorum-examples
150
+
151
+ chown -R vagrant:vagrant /home/vagrant/quorum /home/vagrant/quorum-examples
152
+
153
+ chmod 755 /home/vagrant/quorum-examples/3nodes/*.sh
154
+
155
+
156
+
157
+ # install istanbul-tools
158
+
159
+ export GOPATH=/home/vagrant/go
160
+
161
+ /usr/local/go/bin/go get github.com/getamis/istanbul-tools/cmd/istanbul
162
+
163
+ cp /home/vagrant/go/bin/istanbul /usr/local/bin
164
+
165
+
166
+
167
+ # done!
168
+
169
+ banner "Quorum"
170
+
171
+ echo
172
+
173
+ echo 'The Quorum vagrant instance has been provisioned. Examples are available in ~/quorum-examples inside the instance.'
174
+
175
+ echo "Use 'vagrant ssh' to open a terminal, 'vagrant suspend' to stop the instance, and 'vagrant destroy' to remove it."
176
+
177
+
178
+
179
+ ```

3

変更点追加

2018/06/21 09:03

投稿

wangzj
wangzj

スコア53

test CHANGED
File without changes
test CHANGED
@@ -32,7 +32,7 @@
32
32
 
33
33
 
34
34
 
35
- 仮想マシンの/home/vagrantにD:\blockchain/20180625のすべてファイルを見えると思いますが
35
+ 仮想マシンの/home/vagrantD:\blockchain/20180625のすべてファイルを見えると思いますが
36
36
 
37
37
  見えません。
38
38
 

2

変更点追加

2018/06/21 09:01

投稿

wangzj
wangzj

スコア53

test CHANGED
File without changes
test CHANGED
@@ -21,6 +21,8 @@
21
21
 
22
22
 
23
23
  仮想マシンのカレントフォルダ:/home/vagrant
24
+
25
+ ![イメージ説明](b7bd77069faf8110c347dc43c6a0f72e.png)
24
26
 
25
27
 
26
28
 

1

変更点追加

2018/06/21 08:58

投稿

wangzj
wangzj

スコア53

test CHANGED
File without changes
test CHANGED
@@ -33,3 +33,31 @@
33
33
  仮想マシンの/home/vagrantにD:\blockchain/20180625のすべてファイルを見えると思いますが
34
34
 
35
35
  見えません。
36
+
37
+
38
+
39
+ ファイルD:\blockchain/20180625/Vagrantfile
40
+
41
+ ```ここに言語を入力
42
+
43
+ Vagrant.configure(2) do |config|
44
+
45
+ config.vm.box = "ubuntu/xenial64"
46
+
47
+ config.vm.provision :shell, path: "vagrant/bootstrap.sh"
48
+
49
+ config.vm.network "forwarded_port", guest: 22000, host: 22000
50
+
51
+ config.vm.network "forwarded_port", guest: 22001, host: 22001
52
+
53
+ config.vm.network "forwarded_port", guest: 22002, host: 22002
54
+
55
+ config.vm.provider "virtualbox" do |v|
56
+
57
+ v.memory = 1536
58
+
59
+ end
60
+
61
+ end
62
+
63
+ ```