public DefaultDockerCompose(DockerComposeExecutable rawExecutable, DockerMachine dockerMachine) { this.rawExecutable = rawExecutable; this.command = new Command(rawExecutable, log::trace); this.dockerMachine = dockerMachine; }
public DefaultDockerCompose(DockerComposeExecutable rawExecutable, DockerMachine dockerMachine) { this.rawExecutable = rawExecutable; this.command = new Command(rawExecutable, log::trace); this.dockerMachine = dockerMachine; }
public DefaultDockerCompose(DockerComposeExecutable rawExecutable, DockerMachine dockerMachine) { this.rawExecutable = rawExecutable; this.command = new Command(rawExecutable, log::trace); this.dockerMachine = dockerMachine; }
public Docker(DockerExecutable rawExecutable) { this.command = new Command(rawExecutable, log::trace); }
public Docker(DockerExecutable rawExecutable) { this.command = new Command(rawExecutable, log::debug); }
public Docker(DockerExecutable rawExecutable) { this.command = new Command(rawExecutable, log::debug); }
static Version version() throws IOException, InterruptedException { Command dockerCompose = new Command(new Executable() { @Override public String commandName() { return "docker-compose"; } @Override public Process execute(String... commands) throws IOException { List<String> args = ImmutableList.<String>builder() .add(defaultDockerComposePath()) .add(commands) .build(); return new ProcessBuilder(args).redirectErrorStream(true).start(); } }, log::trace); String versionOutput = dockerCompose.execute(Command.throwingOnError(), "-v"); return DockerComposeVersion.parseFromDockerComposeVersion(versionOutput); }
@Before public void before() throws IOException { when(dockerComposeExecutable.execute(anyVararg())).thenReturn(executedProcess); dockerComposeCommand = new Command(dockerComposeExecutable, logConsumer); givenTheUnderlyingProcessHasOutput(""); givenTheUnderlyingProcessTerminatesWithAnExitCodeOf(0); }