docker

package
v0.0.0-...-ded4385 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BaseImageName string = "integration-base-image"

BaseImageName -- base image name.

View Source
var BaseWorkingDirectory string = ""

BaseWorkingDirectory -- directory used by Docker to construct the base image.

View Source
var IntegrationWorkingDirectory string = ""

IntegrationWorkingDirectory -- directory used by Docker to construct the integration image.

View Source
var NetworkName string = "host"

NetworkName -- network used by Docker when running the image.

View Source
var RegistryName = ""

RegistryName -- the docker registry name.

Functions

func AS

func AS(image string, alias string) string

AS --

func BuildBaseImageArgs

func BuildBaseImageArgs() []string

BuildBaseImageArgs --

func BuildImageArgs

func BuildImageArgs(dockerFileDir string, imageName string, sourceDir string) []string

BuildImageArgs - standard docker build arguments.

func BuildIntegrationImageArgs

func BuildIntegrationImageArgs(imagePath string) []string

BuildIntegrationImageArgs --

func CMD

func CMD(command string) string

CMD --

func CMDShellWrap

func CMDShellWrap(command string) string

CMDShellWrap --

func COPY

func COPY(from string, to string) string

COPY --

func ContainerizeDependencyPaths

func ContainerizeDependencyPaths(dependencyPaths []string, newDir string) []string

ContainerizeDependencyPaths -- make dependency paths valid given a valid container directory in newDir

func ContainerizeFilePaths

func ContainerizeFilePaths(currentFilePaths []string, newDir string) []string

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) error

CreateIntegrationImageDockerFile --

func DockerfilePathArg

func DockerfilePathArg(dockerfilePath string) []string

DockerfilePathArg --

func ENV

func ENV(envVar string, value string) string

ENV --

func ENVAppend

func ENVAppend(envVar string, value string) string

ENVAppend --

func ExtractRegistryName

func ExtractRegistryName(image string) (string, error)

ExtractRegistryName -- Extract registry name from image path.

func FROM

func FROM(imageName string) string

FROM --

func FullImageArg

func FullImageArg(dockerImage string) []string

FullImageArg --

func GetBaseImagePath

func GetBaseImagePath() string

GetBaseImagePath --

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

func GetFullDockerImage(dockerImageName string, tag string) string

GetFullDockerImage - <docker-registry>/<image-name>:<tag>

func GetImage

func GetImage(dockerImageName string, tag string) string

GetImage - <image-name>:<tag>

func GetLatestImage

func GetLatestImage(dockerImageName string) string

GetLatestImage - <image-name>:latest

func ImageArg

func ImageArg(dockerImageName string, tag string) []string

ImageArg --

func JoinPath

func JoinPath(lhsPath string, rhsPath string) string

JoinPath -- for container paths.

func LatestImageArg

func LatestImageArg(dockerImageName string) []string

LatestImageArg --

func RUN

func RUN(command string) string

RUN --

func RUNMakeDir

func RUNMakeDir(dirName string) string

RUNMakeDir --

func RUNMavenInstall

func RUNMavenInstall() string

RUNMavenInstall --

func RunImageArgs

func RunImageArgs(imagePath string, imageTag string) ([]string, error)

RunImageArgs -- standard docker run arguments.

func RunIntegrationImageArgs

func RunIntegrationImageArgs(imagePath string) ([]string, error)

RunIntegrationImageArgs --

func WORKDIR

func WORKDIR(workDir string) string

WORKDIR --

Types

This section is empty.

Jump to

Keyboard shortcuts

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