File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
core/chaincode/platforms/util Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ var logger = flogging.MustGetLogger("chaincode.platform.util")
23
23
24
24
type DockerBuildOptions struct {
25
25
Image string
26
- Env []string
27
26
Cmd string
28
27
InputStream io.Reader
29
28
OutputStream io.Writer
@@ -47,7 +46,6 @@ type DockerBuildOptions struct {
47
46
//
48
47
// The input parameters are fairly simple:
49
48
// - Image: (optional) The builder image to use or "chaincode.builder"
50
- // - Env: (optional) environment variables for the build environment.
51
49
// - Cmd: The command to execute inside the container.
52
50
// - InputStream: A tarball of files that will be expanded into /chaincode/input.
53
51
// - OutputStream: A tarball of files that will be gathered from /chaincode/output
@@ -77,12 +75,11 @@ func DockerBuild(opts DockerBuildOptions, client *docker.Client) error {
77
75
}
78
76
79
77
//-----------------------------------------------------------------------------------
80
- // Create an ephemeral container, armed with our Env /Cmd
78
+ // Create an ephemeral container, armed with our Image /Cmd
81
79
//-----------------------------------------------------------------------------------
82
80
container , err := client .CreateContainer (docker.CreateContainerOptions {
83
81
Config : & docker.Config {
84
82
Image : opts .Image ,
85
- Env : opts .Env ,
86
83
Cmd : []string {"/bin/sh" , "-c" , opts .Cmd },
87
84
AttachStdout : true ,
88
85
AttachStderr : true ,
You can’t perform that action at this time.
0 commit comments