Skip to content

Commit

Permalink
Tweak BuildKit step log limits
Browse files Browse the repository at this point in the history
Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
  • Loading branch information
CrazyMax committed Jan 4, 2021
1 parent 370507b commit 467d339
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ import * as context from './context';
import * as mexec from './exec';
import * as stateHelper from './state-helper';

const buildkitStepLogMaxSize = 1024 * 8192;
const buildkitStepLogMaxSpeed = -1;

async function run(): Promise<void> {
try {
if (os.platform() !== 'linux') {
Expand Down Expand Up @@ -38,6 +41,8 @@ async function run(): Promise<void> {
await context.asyncForEach(inputs.driverOpts, async driverOpt => {
createArgs.push('--driver-opt', driverOpt);
});
createArgs.push('--driver-opt', 'env.BUILDKIT_STEP_LOG_MAX_SIZE=' + buildkitStepLogMaxSize);
createArgs.push('--driver-opt', 'env.BUILDKIT_STEP_LOG_MAX_SPEED=' + buildkitStepLogMaxSpeed);
if (inputs.buildkitdFlags) {
createArgs.push('--buildkitd-flags', inputs.buildkitdFlags);
}
Expand Down

0 comments on commit 467d339

Please sign in to comment.