docker

package
v3.0.0-...-bcda2dc Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package docker exposes functionality to manage building and posting Docker containers

Index

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 *zerolog.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 BuildDockerImageInDirectoryWithFlags

func BuildDockerImageInDirectoryWithFlags(serviceName string,
	dockerFilepath string,
	workingDirectory string,
	dockerTags map[string]string,
	buildTags string,
	linkFlags string,
	logger *zerolog.Logger) error

BuildDockerImageInDirectoryWithFlags is an extended version of BuildDockerImage that includes support for build time tags and allows the caller to provide the working directory

func BuildDockerImageWithFlags

func BuildDockerImageWithFlags(serviceName string,
	dockerFilepath string,
	dockerTags map[string]string,
	buildTags string,
	linkFlags string,
	logger *zerolog.Logger) error

BuildDockerImageWithFlags is an extended version of BuildDockerImage that includes support for build time tags

func PushDockerImageToECR

func PushDockerImageToECR(ctx context.Context,
	localImageTag string,
	ecrRepoName string,
	awsConfig awsv2.Config,
	logger *zerolog.Logger) (string, error)

PushDockerImageToECR pushes a local Docker image to an ECR repository

func PushECRTaggedImage

func PushECRTaggedImage(ctx context.Context,
	localImageTag string,
	awsConfig awsv2.Config,
	logger *zerolog.Logger) error

PushECRTaggedImage pushes previously tagged image to ECR

Types

This section is empty.

Jump to

Keyboard shortcuts

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