teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

7

コメント追加

2018/06/21 09:10

投稿

wangzj
wangzj

スコア53

title CHANGED
File without changes
body CHANGED
@@ -33,5 +33,5 @@
33
33
  ```
34
34
  D:\blockchain\20180625.vagrant\machines\default\virtualbox\synced_folders
35
35
  ```ここに言語を入力
36
- {"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"D:/blockchain/quorum-examples_20180625","disabled":false,"__vagrantfile":true}}}
36
+ {"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"D:/blockchain/20180625","disabled":false,"__vagrantfile":true}}}
37
37
  ```

6

コメント追加

2018/06/21 09:10

投稿

wangzj
wangzj

スコア53

title CHANGED
File without changes
body CHANGED
@@ -31,7 +31,7 @@
31
31
  end
32
32
  end
33
33
  ```
34
- D:\blockchain\quorum-examples_20180625.vagrant\machines\default\virtualbox\synced_folders
34
+ D:\blockchain\20180625.vagrant\machines\default\virtualbox\synced_folders
35
35
  ```ここに言語を入力
36
36
  {"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"D:/blockchain/quorum-examples_20180625","disabled":false,"__vagrantfile":true}}}
37
37
  ```

5

変更点追加

2018/06/21 09:09

投稿

wangzj
wangzj

スコア53

title CHANGED
File without changes
body CHANGED
@@ -31,60 +31,7 @@
31
31
  end
32
32
  end
33
33
  ```
34
- ファイルD:\blockchain/20180625/vagrant/bootstrap.sh
34
+ D:\blockchain\quorum-examples_20180625.vagrant\machines\default\virtualbox\synced_folders
35
35
  ```ここに言語を入力
36
- #!/bin/bash
37
- set -eu -o pipefail
38
-
39
- # install build deps
40
- add-apt-repository ppa:ethereum/ethereum
41
- apt-get update
42
- apt-get install -y build-essential unzip libdb-dev libleveldb-dev libsodium-dev zlib1g-dev libtinfo-dev solc sysvbanner wrk
43
-
44
- # install constellation
45
- CVER="0.3.2"
46
- CREL="constellation-$CVER-ubuntu1604"
47
- wget -q https://github.com/jpmorganchase/constellation/releases/download/v$CVER/$CREL.tar.xz
48
- tar xfJ $CREL.tar.xz
49
- cp $CREL/constellation-node /usr/local/bin && chmod 0755 /usr/local/bin/constellation-node
50
- rm -rf $CREL
51
-
52
- # install golang
53
- GOREL=go1.9.3.linux-amd64.tar.gz
54
- wget -q https://dl.google.com/go/$GOREL
55
- tar xfz $GOREL
56
- mv go /usr/local/go
57
- rm -f $GOREL
58
- PATH=$PATH:/usr/local/go/bin
59
- echo 'PATH=$PATH:/usr/local/go/bin' >> /home/vagrant/.bashrc
60
-
61
- # make/install quorum
62
- git clone https://github.com/jpmorganchase/quorum.git
63
- pushd quorum >/dev/null
64
- git checkout tags/v2.0.2
65
- make all
66
- cp build/bin/geth /usr/local/bin
67
- cp build/bin/bootnode /usr/local/bin
68
- popd >/dev/null
69
-
70
- # install Porosity
71
- wget -q https://github.com/jpmorganchase/quorum/releases/download/v1.2.0/porosity
72
- mv porosity /usr/local/bin && chmod 0755 /usr/local/bin/porosity
73
-
74
- # copy examples
75
- cp -r /vagrant/examples /home/vagrant/quorum-examples
76
- chown -R vagrant:vagrant /home/vagrant/quorum /home/vagrant/quorum-examples
77
- chmod 755 /home/vagrant/quorum-examples/3nodes/*.sh
78
-
79
- # install istanbul-tools
80
- export GOPATH=/home/vagrant/go
81
- /usr/local/go/bin/go get github.com/getamis/istanbul-tools/cmd/istanbul
82
- cp /home/vagrant/go/bin/istanbul /usr/local/bin
83
-
84
- # done!
85
- banner "Quorum"
86
- echo
87
- echo 'The Quorum vagrant instance has been provisioned. Examples are available in ~/quorum-examples inside the instance.'
88
- echo "Use 'vagrant ssh' to open a terminal, 'vagrant suspend' to stop the instance, and 'vagrant destroy' to remove it."
36
+ {"virtualbox":{"/vagrant":{"guestpath":"/vagrant","hostpath":"D:/blockchain/quorum-examples_20180625","disabled":false,"__vagrantfile":true}}}
89
-
90
37
  ```

4

bootstrap.sh追加

2018/06/21 09:09

投稿

wangzj
wangzj

スコア53

title CHANGED
File without changes
body CHANGED
@@ -30,4 +30,61 @@
30
30
  v.memory = 1536
31
31
  end
32
32
  end
33
+ ```
34
+ ファイルD:\blockchain/20180625/vagrant/bootstrap.sh
35
+ ```ここに言語を入力
36
+ #!/bin/bash
37
+ set -eu -o pipefail
38
+
39
+ # install build deps
40
+ add-apt-repository ppa:ethereum/ethereum
41
+ apt-get update
42
+ apt-get install -y build-essential unzip libdb-dev libleveldb-dev libsodium-dev zlib1g-dev libtinfo-dev solc sysvbanner wrk
43
+
44
+ # install constellation
45
+ CVER="0.3.2"
46
+ CREL="constellation-$CVER-ubuntu1604"
47
+ wget -q https://github.com/jpmorganchase/constellation/releases/download/v$CVER/$CREL.tar.xz
48
+ tar xfJ $CREL.tar.xz
49
+ cp $CREL/constellation-node /usr/local/bin && chmod 0755 /usr/local/bin/constellation-node
50
+ rm -rf $CREL
51
+
52
+ # install golang
53
+ GOREL=go1.9.3.linux-amd64.tar.gz
54
+ wget -q https://dl.google.com/go/$GOREL
55
+ tar xfz $GOREL
56
+ mv go /usr/local/go
57
+ rm -f $GOREL
58
+ PATH=$PATH:/usr/local/go/bin
59
+ echo 'PATH=$PATH:/usr/local/go/bin' >> /home/vagrant/.bashrc
60
+
61
+ # make/install quorum
62
+ git clone https://github.com/jpmorganchase/quorum.git
63
+ pushd quorum >/dev/null
64
+ git checkout tags/v2.0.2
65
+ make all
66
+ cp build/bin/geth /usr/local/bin
67
+ cp build/bin/bootnode /usr/local/bin
68
+ popd >/dev/null
69
+
70
+ # install Porosity
71
+ wget -q https://github.com/jpmorganchase/quorum/releases/download/v1.2.0/porosity
72
+ mv porosity /usr/local/bin && chmod 0755 /usr/local/bin/porosity
73
+
74
+ # copy examples
75
+ cp -r /vagrant/examples /home/vagrant/quorum-examples
76
+ chown -R vagrant:vagrant /home/vagrant/quorum /home/vagrant/quorum-examples
77
+ chmod 755 /home/vagrant/quorum-examples/3nodes/*.sh
78
+
79
+ # install istanbul-tools
80
+ export GOPATH=/home/vagrant/go
81
+ /usr/local/go/bin/go get github.com/getamis/istanbul-tools/cmd/istanbul
82
+ cp /home/vagrant/go/bin/istanbul /usr/local/bin
83
+
84
+ # done!
85
+ banner "Quorum"
86
+ echo
87
+ echo 'The Quorum vagrant instance has been provisioned. Examples are available in ~/quorum-examples inside the instance.'
88
+ echo "Use 'vagrant ssh' to open a terminal, 'vagrant suspend' to stop the instance, and 'vagrant destroy' to remove it."
89
+
33
90
  ```

3

変更点追加

2018/06/21 09:03

投稿

wangzj
wangzj

スコア53

title CHANGED
File without changes
body CHANGED
@@ -15,7 +15,7 @@
15
15
  D:\blockchain/20180625のshフォルダのshを実行したいですが、
16
16
  どうすればいいでしょうか?
17
17
 
18
- 仮想マシンの/home/vagrantにD:\blockchain/20180625のすべてファイルを見えると思いますが
18
+ 仮想マシンの/home/vagrantD:\blockchain/20180625のすべてファイルを見えると思いますが
19
19
  見えません。
20
20
 
21
21
  ファイルD:\blockchain/20180625/Vagrantfile

2

変更点追加

2018/06/21 09:01

投稿

wangzj
wangzj

スコア53

title CHANGED
File without changes
body CHANGED
@@ -10,6 +10,7 @@
10
10
  を実行して、仮想マシンに入りました。
11
11
 
12
12
  仮想マシンのカレントフォルダ:/home/vagrant
13
+ ![イメージ説明](b7bd77069faf8110c347dc43c6a0f72e.png)
13
14
 
14
15
  D:\blockchain/20180625のshフォルダのshを実行したいですが、
15
16
  どうすればいいでしょうか?

1

変更点追加

2018/06/21 08:58

投稿

wangzj
wangzj

スコア53

title CHANGED
File without changes
body CHANGED
@@ -15,4 +15,18 @@
15
15
  どうすればいいでしょうか?
16
16
 
17
17
  仮想マシンの/home/vagrantにD:\blockchain/20180625のすべてファイルを見えると思いますが
18
- 見えません。
18
+ 見えません。
19
+
20
+ ファイルD:\blockchain/20180625/Vagrantfile
21
+ ```ここに言語を入力
22
+ Vagrant.configure(2) do |config|
23
+ config.vm.box = "ubuntu/xenial64"
24
+ config.vm.provision :shell, path: "vagrant/bootstrap.sh"
25
+ config.vm.network "forwarded_port", guest: 22000, host: 22000
26
+ config.vm.network "forwarded_port", guest: 22001, host: 22001
27
+ config.vm.network "forwarded_port", guest: 22002, host: 22002
28
+ config.vm.provider "virtualbox" do |v|
29
+ v.memory = 1536
30
+ end
31
+ end
32
+ ```