Documentation
¶
Overview ¶
Package dockerfile ingests Dockerfiles as Image nodes, with a references edge for every local path the image copies in.
What an image copies is what it runs. A Gradle monorepo's service image copies its own module and the shared modules it builds against (COPY of the service's module, COPY of the shared modules), which is the evidence that a shared module is a library of that service and not a service of its own — and that a client declared in the library is code the service runs. A compose service's build names its Dockerfile, so the same node ties a deployment to the source it was built from.
Index ¶
Constants ¶
const ( KindImage = "Image" // ExtraRef marks an Image's references edge: RefCopy, Target "path:<src>" // with the source as written (relative to the build context, which the // Dockerfile does not name). ExtraRef = "dockerRef" RefCopy = "copy" )
Variables ¶
This section is empty.
Functions ¶
func IsDockerfile ¶
IsDockerfile reports whether a path is a Dockerfile: Dockerfile, Dockerfile.<variant> or <name>.Dockerfile.
Types ¶
This section is empty.