Documentation
¶
Index ¶
Constants ¶
View Source
const StackUnknown = stackUnknown
StackUnknown is the stack name reported when nothing in a directory identifies a supported tech stack.
Variables ¶
This section is empty.
Functions ¶
func DetectStack ¶ added in v0.7.158
DetectStack identifies the dominant tech stack in dir. It is the first step of DetectEnvironment, exported separately for callers that need only the stack name: unlike DetectEnvironment it never touches the network, so it is cheap enough to run on paths that must not block on Docker Hub.
func WriteDockerfile ¶
func WriteDockerfile(dir string, env *Environment) (string, error)
WriteDockerfile writes Dockerfile.test (and Dockerfile.test.dockerignore if needed) to dir and returns the path to the written Dockerfile.
Types ¶
type Environment ¶
type Environment = envspec.Environment
func DetectEnvironment ¶
func DetectEnvironment(ctx context.Context, dir string) (*Environment, error)
DetectEnvironment analyses the repository at dir and returns a detected Environment.
Click to show internal directories.
Click to hide internal directories.