dockerbuild

package
v0.0.0-...-b425644 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: Apache-2.0 Imports: 14 Imported by: 0

README

dockerbuild

Usage of dockerbuild:
  -H="": Docker Host (e.g. 127.0.0.1:4243)
  -R="": Git repository to add to docker archive (e.g. git@github.com:test/repo.git)
  -T="": Tag build with (e.g. elasticsearch)
  -X="": Http Proxy to use (e.g. http://127.0.0.1:1234)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Build

type Build struct {
	Proxy      string // http proxy to use for faster builds in local environment
	FileSystem http.FileSystem

	GitRepository string // repository to check out into the docker build archive
	GitRevision   string // revision of the repository to use

	// If this is a ruby project then add the Gemfiles to the archive separately. That way bundler's inefficiency can be
	// mitigated using docker's caching strategy. Just call copy the Gemfile's somewhere (using the 'ADD' command) and
	// run bundler on them. Then extract the sources and use the app. This way only changes to the Gemfiles will result
	// in a rerun of bundler.
	RubyProject bool

	DockerHost         string // IP of the host running docker.
	DockerPort         int    // Port docker is listening on.
	DockerHostUser     string // If set an SSH tunnel will be setup and used for communication.
	DockerHostPassword string // Password of the user, if required for SSH (public key authentication should be preferred).
	DockerImageTag     string // tag used for the resulting image

	ForceBuild bool // Build even if image already exists.
	Verbose    bool
	// contains filtered or unexported fields
}

func (*Build) Build

func (b *Build) Build() (string, error)

func (*Build) BuildAndPush

func (b *Build) BuildAndPush() (string, error)

type Dockerfile

type Dockerfile []byte

func NewDockerfile

func NewDockerfile(b []byte) Dockerfile

func (Dockerfile) MixinProxy

func (df Dockerfile) MixinProxy(proxy string) Dockerfile

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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