apple / apple/swift-container-plugin
`containertool` should be able to set which ports which should be exposed by default
- Dominant language
- Swift
- Stars
- 390
- Forks
- 26
- Avg merge
- 8m
- Merged PRs (30d)
- 1
Description
Add an `--expose` or `--port` command line parameter and add the value to the [`ExposedPorts`](https://github.com/apple/swift-container-plugin/blob/0c9ea97611f7344dc5408794f33df8c3c513e2a0/Sources/ContainerRegistry/Schema.swift#L106) field in the [`configuration inherited from the base image`](https://github.com/apple/swift-container-plugin/blob/0c9ea97611f7344dc5408794f33df8c3c513e2a0/Sources/containertool/containertool.swift#L184C60-L184C64).
Contributor guide
Research direction
Start in Sources/containertool/containertool.swift at the configuration inherited from the base image, then inspect Sources/ContainerRegistry/Schema.swift for ExposedPorts. Determine how the new --expose or --port argument should be represented and confirm that its value reaches ExposedPorts in the generated configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 52/100