Documentation
¶
Overview ¶
Package image lazily builds the embedded sandbox base image on first use.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build builds ref from the embedded Dockerfile. The build context is a temp dir containing only the Dockerfile (the image needs no local files). Progress streams to stderr.
func Ref ¶
func Ref() string
Ref is the reference of the base image this build produces:
sandbox-base:<generation>-<short hash of the embedded Dockerfile>
The hash makes the tag content-addressed, so editing assets/Dockerfile always yields a new tag. EnsureImage then sees the image as absent and rebuilds it. Relying on a hand-bumped version instead let four image changes ship under one tag, leaving stale images that silently lacked the egress entrypoint and the pre-created cache directories.
Types ¶
This section is empty.