@@ -17,7 +17,7 @@ public interface IDockerCommandManager : IRunnerService
17
17
string DockerInstanceLabel { get ; }
18
18
Task < DockerVersion > DockerVersion ( IExecutionContext context ) ;
19
19
Task < int > DockerPull ( IExecutionContext context , string image ) ;
20
- Task < int > DockerBuild ( IExecutionContext context , string workingDirectory , string dockerFile , string tag ) ;
20
+ Task < int > DockerBuild ( IExecutionContext context , string workingDirectory , string dockerFile , string dockerContext , string tag ) ;
21
21
Task < string > DockerCreate ( IExecutionContext context , ContainerInfo container ) ;
22
22
Task < int > DockerRun ( IExecutionContext context , ContainerInfo container , EventHandler < ProcessDataReceivedEventArgs > stdoutDataReceived , EventHandler < ProcessDataReceivedEventArgs > stderrDataReceived ) ;
23
23
Task < int > DockerStart ( IExecutionContext context , string containerId ) ;
@@ -87,9 +87,9 @@ public async Task<int> DockerPull(IExecutionContext context, string image)
87
87
return await ExecuteDockerCommandAsync ( context , "pull" , image , context . CancellationToken ) ;
88
88
}
89
89
90
- public async Task < int > DockerBuild ( IExecutionContext context , string workingDirectory , string dockerFile , string tag )
90
+ public async Task < int > DockerBuild ( IExecutionContext context , string workingDirectory , string dockerFile , string dockerContext , string tag )
91
91
{
92
- return await ExecuteDockerCommandAsync ( context , "build" , $ "-t { tag } \" { dockerFile } \" ", workingDirectory , context . CancellationToken ) ;
92
+ return await ExecuteDockerCommandAsync ( context , "build" , $ "-t { tag } -f \" { dockerFile } \" \" { dockerContext } \" ", workingDirectory , context . CancellationToken ) ;
93
93
}
94
94
95
95
public async Task < string > DockerCreate ( IExecutionContext context , ContainerInfo container )
0 commit comments