envbuilder

package
v0.7.161 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 28, 2026 License: MIT Imports: 13 Imported by: 0

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

func DetectStack(dir string) (string, error)

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.

type Step added in v0.7.35

type Step = envspec.Step

Step and Environment are defined in internal/envspec; alias them here so existing callers using envbuilder.Step / envbuilder.Environment continue to work.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL