Skip to content

Commit

Permalink
FAB-6384 node.js CC build missing hidden files
Browse files Browse the repository at this point in the history
Current docker build command uses the "*" wildcard in the source
side like the following:

 cp -R <source>/* <dest>/

which will miss the hidden files (.*) in the copy.

Change-Id: I6e659b8899f977e2073558f4967c65b62ac55129
Signed-off-by: Jim Zhang <[email protected]>
  • Loading branch information
jimthematrix committed Oct 2, 2017
1 parent 04f62ad commit 358ba1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/chaincode/platforms/node/platform.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ func (nodePlatform *Platform) GenerateDockerBuild(cds *pb.ChaincodeDeploymentSpe
codepackage := bytes.NewReader(cds.CodePackage)
binpackage := bytes.NewBuffer(nil)
err := util.DockerBuild(util.DockerBuildOptions{
Cmd: fmt.Sprint("cp -R /chaincode/input/src/* /chaincode/output && cd /chaincode/output && npm install --production"),
Cmd: fmt.Sprint("cp -R /chaincode/input/src/. /chaincode/output && cd /chaincode/output && npm install --production"),
InputStream: codepackage,
OutputStream: binpackage,
})
Expand Down

0 comments on commit 358ba1f

Please sign in to comment.