Documentation ¶
Overview ¶
Package docker exposes functionality to manage building and posting Docker containers
Index ¶
- Constants
- func BuildDockerImage(serviceName string, dockerFilepath string, tags map[string]string, ...) error
- func BuildDockerImageWithFlags(serviceName string, dockerFilepath string, dockerTags map[string]string, ...) error
- func PushDockerImageToECR(localImageTag string, ecrRepoName string, awsSession *session.Session, ...) (string, error)
Constants ¶
View Source
const ( // BinaryNameArgument is the argument provided to docker build that // supplies the local statically built Go binary BinaryNameArgument = "SPARTA_DOCKER_BINARY" )
Variables ¶
This section is empty.
Functions ¶
func BuildDockerImage ¶
func BuildDockerImage(serviceName string, dockerFilepath string, tags map[string]string, logger *logrus.Logger) error
BuildDockerImage creates the smallest docker image for this Golang binary using the serviceName as the image name and including the supplied tags
func BuildDockerImageWithFlags ¶ added in v1.8.0
func BuildDockerImageWithFlags(serviceName string, dockerFilepath string, dockerTags map[string]string, buildTags string, linkFlags string, logger *logrus.Logger) error
BuildDockerImageWithFlags is an extended version of BuildDockerImage that includes support for build time tags
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.