Skip to content

Commit ce2ef23

Browse files
committed
Do not build the fabric peer during vagrant provision
Building the peer during vagrant provisioning takes extra time. We can't be sure the user even wants to build the peer. They may be trying to perform some other task (such as work on the SDK), in which case we are wasting their time. Therefore, remove peer building from the critical path of provisioning and allow the user to make their own decision. This has the nice benefit of making the provisioning process nice and snappy. Change-Id: I82f120faceeff8d8de08f064d4a6fd911eec65d9 Signed-off-by: Greg Haskins <[email protected]>
1 parent 3cfaeb5 commit ce2ef23

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

devenv/setup.sh

+5-2
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,12 @@ PATH=$GOROOT/bin:$GOPATH/bin:$PATH
7878
sudo mkdir -p /var/hyperledger
7979
sudo chown -R vagrant:vagrant /var/hyperledger
8080

81-
# Build the actual hyperledger peer (must be done before chown below)
81+
# clean any previous builds as they may have image/.dummy files without
82+
# the backing docker images (since we are, by definition, rebuilding the
83+
# filesystem) and then ensure we have a fresh set of our go-tools.
84+
# NOTE: This must be done before the chown below
8285
cd $GOPATH/src/github.com/hyperledger/fabric
83-
make clean peer gotools
86+
make clean gotools
8487

8588
# Ensure permissions are set for GOPATH
8689
sudo chown -R vagrant:vagrant $GOPATH

0 commit comments

Comments
 (0)