docker

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

Package docker contains docker images and metadata for the suite of scribe docker images and utilities

Index

Constants

This section is empty.

Variables

View Source
var (
	ArgumentDockerAuthToken = pipeline.NewStringArgument("docker-auth-token")
)
View Source
var Dockerfiles embed.FS
View Source
var Images = []Image{
	{
		Name:       "git",
		Dockerfile: "./ci/docker/scribe.git.Dockerfile",
		Context:    ".",
	},
	{
		Name:       "go",
		Dockerfile: "./ci/docker/scribe.go.Dockerfile",
		Context:    ".",
	},
	{
		Name:       "node",
		Dockerfile: "./ci/docker/scribe.node.Dockerfile",
		Context:    ".",
	},
	{
		Name:       "docker",
		Dockerfile: "./ci/docker/scribe.docker.Dockerfile",
		Context:    ".",
	},
}

Images is a list of images derived from the ScribeImage

View Source
var ScribeImage = Image{
	Name:       "scribe",
	Dockerfile: "./ci/docker/scribe.Dockerfile",
	Context:    ".",
}

ScribeImage has to be built before its derivitive images.

Functions

func BuildSteps

func BuildSteps(sw *scribe.Scribe, images []Image) []pipeline.Step

func Login

func Login(username, password pipeline.Argument) pipeline.Step

func PushSteps

func PushSteps(sw *scribe.Scribe, images []Image) []pipeline.Step

Types

type Image

type Image struct {
	Name       string
	Dockerfile string
	Context    string
}

func (Image) BuildStep

func (i Image) BuildStep(sw *scribe.Scribe) pipeline.Step

func (Image) PushStep

func (i Image) PushStep(sw *scribe.Scribe) pipeline.Step

func (Image) Tag

func (i Image) Tag() (string, error)

type ImageData

type ImageData struct {
	Version string
}

Jump to

Keyboard shortcuts

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