microsoft / microsoft/aspire

Allow setting SSH flag when using containers

Open
#10,510 2 comments 1 reaction 0 assignees View on GitHub
area-orchestrator
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] I have searched the existing issues

### Is your feature request related to a problem? Please describe the problem.

Both Docker build and podman build supports setting --ssh default to be able to forward an ssh key into the container during build. This can be used to do stuff like restore python dependencies from private github repos.

As far as I can tell, there is no option today to set the ssh flag when using AddDockerfile.

### Describe the solution you'd like

I would either add an api like WithSshMount, or be able to set any build flag with something like WithDockerBuildArgs

### Additional context

_No response_

Contributor guide

Open the contributing guide

Research direction

Start at the AddDockerfile API and trace how Docker build options are passed through for container builds. The work is done when callers can configure SSH forwarding for Docker and Podman builds, with coverage for the supported behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp, docker
Domain
devops, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.