Skip to content

[builder]: enable ssh forwarding for container build#1508

Open
saehejkang wants to merge 1 commit into
apple:mainfrom
saehejkang:ssh-agent-access-build-commands
Open

[builder]: enable ssh forwarding for container build#1508
saehejkang wants to merge 1 commit into
apple:mainfrom
saehejkang:ssh-agent-access-build-commands

Conversation

@saehejkang
Copy link
Copy Markdown
Contributor

@saehejkang saehejkang commented May 6, 2026

Type of Change

  • Bug fix
  • New feature
  • Breaking change
  • Documentation update

Motivation and Context

Closes #1472 and depends on apple/container-builder-shim#76 for pipeline to ✅

Testing

  • Tested locally
  • Added/updated tests
  • Added/updated docs

@saehejkang saehejkang force-pushed the ssh-agent-access-build-commands branch from ed08f5a to acdc87e Compare May 6, 2026 03:16
@JaewonHur JaewonHur self-requested a review May 11, 2026 16:43
progress.set(tasks: 0)
progress.set(totalTasks: 3)

try await BuilderStart.start(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can't we remove this part as we already do BuilderStart.start in L180?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that the second start call is executed in case of an error with the first start call. Seems to be an extra set of redundancies for safety.

// Ensure the builder is started (or restarted) with the correct SSH configuration
// before attempting to dial. This handles the case where the builder is already
// running but was not started with SSH forwarding enabled.
try await BuilderStart.start(
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems you fixed another bug by moving this here :)

Buildkit container was not being recreated when we change configuration.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

100% unintentional, I promise :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Request]: RUN commands in container build that require ssh agent access.

2 participants