Documentation ¶
Index ¶
Constants ¶
View Source
const ( // DefaultDockerfileName is the Default filename with Docker commands, read by docker build DefaultDockerfileName string = "Dockerfile" )
Variables ¶
This section is empty.
Functions ¶
func GetContextFromLocalDir ¶
func GetContextFromLocalDir(localDir, dockerfileName string) (absContextDir, relDockerfile string, err error)
GetContextFromLocalDir uses the given local directory as context for a `docker build`. Returns the absolute path to the local context directory, the relative path of the dockerfile in that context directory, and a non-nil error on success.
func ValidateContextDirectory ¶
ValidateContextDirectory checks if all the contents of the directory can be read and returns an error if some files can't be read symlinks which point to non-existing files don't trigger an error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.