docker: Index | Files

package build

import ""


Package Files


func WithBuildContext Uses

func WithBuildContext(t testing.TB, contextOperators ...func(*fakecontext.Fake) error) func(*icmd.Cmd) func()

WithBuildContext sets up the build context

func WithContextPath Uses

func WithContextPath(path string) func(*icmd.Cmd) func()

WithContextPath sets the build context path

func WithDockerfile Uses

func WithDockerfile(dockerfile string) func(*icmd.Cmd) func()

WithDockerfile creates / returns a CmdOperator to set the Dockerfile for a build operation

func WithExternalBuildContext Uses

func WithExternalBuildContext(ctx *fakecontext.Fake) func(*icmd.Cmd) func()

WithExternalBuildContext use the specified context as build context

func WithFile Uses

func WithFile(name, content string) func(*fakecontext.Fake) error

WithFile adds the specified file (with content) in the build context

func WithStdinContext Uses

func WithStdinContext(closer io.ReadCloser) func(*icmd.Cmd) func()

WithStdinContext sets the build context from the standard input with the specified reader

func WithoutCache Uses

func WithoutCache(cmd *icmd.Cmd) func()

WithoutCache makes the build ignore cache

Package build imports 5 packages (graph) and is imported by 21 packages. Updated 2020-02-21. Refresh now. Tools for package owners.