fix: stream logs for heroku bp

This commit is contained in:
Andras Bacsai 2022-09-25 07:58:52 +00:00
parent 49c61b5992
commit 4cd7af7a74

View File

@ -585,7 +585,7 @@ export async function executeDockerCmd({ debug, buildId, applicationId, dockerId
command = command.replace(/docker compose/gi, 'docker-compose');
}
}
if (command.startsWith(`docker build --progress plain`)) {
if (command.startsWith(`docker build --progress plain`) || command.startsWith(`pack build`)) {
return await asyncExecShellStream({ debug, buildId, applicationId, command, engine });
}
return await execaCommand(command, { env: { DOCKER_BUILDKIT: "1", DOCKER_HOST: engine }, shell: true })