ko-build / ko-build/ko

Consider adding an equivalence of EXPOSE

Open
#472 10 comments 0 reactions 0 assignees View on GitHub
lifecycle/frozen
Dominant language
Go
Stars
8.5k
Forks
447
PR merge metrics
No merged PRs in 30d

Description

Per https://docs.docker.com/engine/reference/builder/#expose:

> The EXPOSE instruction does not actually publish the port. It functions as a type of documentation between the person who builds the image and the person who runs the container, about which ports are intended to be published.

Some container service (like Azure App Service) consumes this metadata to automatically configure the correct port-mapping to the container. Without this metadata, users of these service will need to set this on the deployment side.

cc @jonjohnsonjr

Contributor guide

Open the contributing guide

Research direction

Start with the linked Docker EXPOSE documentation to understand the image metadata and how services consume it. Then inspect ko's image-building flow to identify where equivalent metadata could be represented; done means the built image carries the intended port information for consumers such as Azure App Service, with behavior verified by appropriate tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, go
Domain
build-system
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.