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) BuildAndPush ¶
type Dockerfile ¶
type Dockerfile []byte
func NewDockerfile ¶
func NewDockerfile(b []byte) Dockerfile
func (Dockerfile) MixinProxy ¶
func (df Dockerfile) MixinProxy(proxy string) Dockerfile
Click to show internal directories.
Click to hide internal directories.