-
Notifications
You must be signed in to change notification settings - Fork 8.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Right now, ccenv is stuffed with the full fabric.git src, when its intended to only carry just enough bits to build a chaincode application. This minimally entails the golang shim and any direct or transitive deps. It may include others in the future. Change-Id: I01947870264b99959219160978449f3b97bc4a68 Signed-off-by: Greg Haskins <gregory.haskins@gmail.com>
- Loading branch information
Showing
3 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
FROM hyperledger/fabric-src:_TAG_ | ||
FROM hyperledger/fabric-baseimage:_BASE_TAG_ | ||
COPY bin/* /usr/local/bin/ | ||
ADD goshim.tar.bz2 $GOPATH/src/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
#!/bin/bash | ||
|
||
target=$1 | ||
|
||
deps=`go list -f '{{ join .Deps "\n" }}' $target` | ||
|
||
find $GOPATH/src/$target -type f | ||
|
||
for dep in $deps; | ||
do | ||
importpath=$GOPATH/src/$dep | ||
if [ -d $importpath ]; | ||
then | ||
find $importpath -type f | ||
fi | ||
done |