docker

package
v1.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2018 License: MIT Imports: 12 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 *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 PushDockerImageToECR

func PushDockerImageToECR(localImageTag string,
	ecrRepoName string,
	awsSession *session.Session,
	logger *logrus.Logger) (string, error)

PushDockerImageToECR pushes a local Docker image to an ECR repository

Types

This section is empty.

Jump to

Keyboard shortcuts

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