docker

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Overview

Package dockerfile supports interaction with Docker images and containers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Attach

func Attach(profile string, noCache bool, command []string) error

func Build

func Build(profile string, noCache bool) error

Build creates a Docker image per the specified Geode profile directory. If noCache is true, Build passes the --no-cache flag to the underlying 'docker build' command.

func BuildFromConfig

func BuildFromConfig(profile string, noCache bool, cfg *config) error

func Dockerfile

func Dockerfile(profile string, w io.Writer) error

WriteFile reads a Dockerfile template and docker.toml from the specified profile directory, and expands the template with the values from the TOML file to the specified writer.

func DockerfileFromConfig

func DockerfileFromConfig(profile string, cfg *config, w io.Writer) error

func Exec

func Exec(profile string, args []string) error

func RunCommand

func RunCommand(profile string, args []string) ([]string, error)

Returns arguments suitable for exec.Command.

func RunCommandFromConfig

func RunCommandFromConfig(cfg *config, args []string) []string

func RunFromConfig

func RunFromConfig(profile string, noCache bool, cfg *config, args []string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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