Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 struct {
Stack string `json:"stack"`
Install string `json:"install"`
Test string `json:"test"`
SystemDeps []string `json:"system_deps"`
Image string `json:"image"`
ImageVersion string `json:"image_version"`
}
Environment describes the detected tech stack and build configuration for a repository.
func DetectEnvironment ¶
func DetectEnvironment(ctx context.Context, dir string) (*Environment, error)
DetectEnvironment analyses the repository at dir and returns a detected Environment.
func (*Environment) BinaryPaths ¶ added in v0.7.31
func (e *Environment) BinaryPaths() string
BinaryPaths returns colon-separated PATH prefixes needed for the detected stack. cimg images set these via Docker ENV which e2b does not propagate to SSH sessions.
Click to show internal directories.
Click to hide internal directories.