Documentation ¶
Index ¶
- Variables
- func AS(image string, alias string) string
- func BuildBaseImageArgs() []string
- func BuildImageArgs(dockerFileDir string, imageName string, sourceDir string) []string
- func BuildIntegrationImageArgs(imagePath string) []string
- func CMD(command string) string
- func CMDShellWrap(command string) string
- func COPY(from string, to string) string
- func ContainerizeDependencyPaths(dependencyPaths []string, newDir string) []string
- func ContainerizeFilePaths(currentFilePaths []string, newDir string) []string
- func CreateBaseImageDockerFile() error
- func CreateIntegrationImageDockerFile(integrationRunCmd *exec.Cmd, startsFromLocalFolder bool) error
- func DockerfilePathArg(dockerfilePath string) []string
- func ENV(envVar string, value string) string
- func ENVAppend(envVar string, value string) string
- func ExtractRegistryName(image string) (string, error)
- func FROM(imageName string) string
- func FullImageArg(dockerImage string) []string
- func GetBaseImagePath() string
- func GetContainerDependenciesDir() string
- func GetContainerPropertiesDir() string
- func GetContainerRoutesDir() string
- func GetContainerWorkspaceDir() string
- func GetFullDockerImage(dockerImageName string, tag string) string
- func GetImage(dockerImageName string, tag string) string
- func GetLatestImage(dockerImageName string) string
- func ImageArg(dockerImageName string, tag string) []string
- func JoinPath(lhsPath string, rhsPath string) string
- func LatestImageArg(dockerImageName string) []string
- func RUN(command string) string
- func RUNMakeDir(dirName string) string
- func RUNMavenInstall() string
- func RunImageArgs(imagePath string, imageTag string) ([]string, error)
- func RunIntegrationImageArgs(imagePath string) ([]string, error)
- func WORKDIR(workDir string) string
Constants ¶
This section is empty.
Variables ¶
var BaseImageName = "integration-base-image"
BaseImageName -- base image name.
var BaseWorkingDirectory = ""
BaseWorkingDirectory -- directory used by Docker to construct the base image.
var IntegrationWorkingDirectory = ""
IntegrationWorkingDirectory -- directory used by Docker to construct the integration image.
var NetworkName = "host"
NetworkName -- network used by Docker when running the image.
var RegistryName = ""
RegistryName -- the docker registry name.
Functions ¶
func BuildImageArgs ¶
BuildImageArgs - standard docker build arguments.
func BuildIntegrationImageArgs ¶
BuildIntegrationImageArgs --.
func ContainerizeDependencyPaths ¶
ContainerizeDependencyPaths -- make dependency paths valid given a valid container directory in newDir.
func ContainerizeFilePaths ¶
ContainerizeFilePaths -- make paths valid container paths given a valid container directory in newDir.
func CreateBaseImageDockerFile ¶
func CreateBaseImageDockerFile() error
CreateBaseImageDockerFile --.
func CreateIntegrationImageDockerFile ¶
func CreateIntegrationImageDockerFile(integrationRunCmd *exec.Cmd, startsFromLocalFolder bool) error
CreateIntegrationImageDockerFile --.
func DockerfilePathArg ¶
DockerfilePathArg --.
func ExtractRegistryName ¶
ExtractRegistryName -- Extract registry name from image path.
func GetContainerDependenciesDir ¶
func GetContainerDependenciesDir() string
GetContainerDependenciesDir -- directory inside the container where all the integration dependencies are copied.
func GetContainerPropertiesDir ¶
func GetContainerPropertiesDir() string
GetContainerPropertiesDir -- directory inside the container where all the integration property files are copied.
func GetContainerRoutesDir ¶
func GetContainerRoutesDir() string
GetContainerRoutesDir -- directory inside the container where all the integration routes are copied.
func GetContainerWorkspaceDir ¶
func GetContainerWorkspaceDir() string
GetContainerWorkspaceDir -- directory inside the container where all the integration files are copied.
func GetFullDockerImage ¶
GetFullDockerImage - <docker-registry>/<image-name>:<tag>.
func GetLatestImage ¶
GetLatestImage - <image-name>:latest.
func RunImageArgs ¶
RunImageArgs -- standard docker run arguments.
func RunIntegrationImageArgs ¶
RunIntegrationImageArgs --.
Types ¶
This section is empty.