Documentation ¶
Overview ¶
Package build implements Inertia's build procedures
Index ¶
- type Builder
- func (b *Builder) Build(buildType string, d Config, cli *docker.Client, out io.Writer) (func() error, error)
- func (b *Builder) GetBuildStageName() string
- func (b *Builder) Prune(docker *docker.Client, out io.Writer) error
- func (b *Builder) PruneAll(docker *docker.Client, out io.Writer) error
- func (b *Builder) StopContainers(docker *docker.Client, out io.Writer) error
- type Config
- type ContainerBuilder
- type ProjectBuilder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
Builder manages build tools and executes builds
func NewBuilder ¶
func NewBuilder(conf cfg.Config, stopper containers.ContainerStopper) *Builder
NewBuilder creates a builder with given configuration
func (*Builder) Build ¶
func (b *Builder) Build(buildType string, d Config, cli *docker.Client, out io.Writer) (func() error, error)
Build executes build and deploy
func (*Builder) GetBuildStageName ¶
GetBuildStageName returns the name of the intermediary container used to build projects
type Config ¶
type Config struct { Name string BuildFilePath string BuildDirectory string PersistDirectory string EnvValues []string }
Config contains parameters required for builds to execute
type ContainerBuilder ¶ added in v0.5.0
type ContainerBuilder interface { Build(string, Config, *docker.Client, io.Writer) (func() error, error) GetBuildStageName() string StopContainers(*docker.Client, io.Writer) error Prune(*docker.Client, io.Writer) error PruneAll(*docker.Client, io.Writer) error }
ContainerBuilder builds projects and returns a callback that can be used to deploy the project. No relation to Bob the Builder, though a Bob did write this.
Click to show internal directories.
Click to hide internal directories.