Documentation ¶
Overview ¶
Package steps includes a number of step functions that have a different role
Index ¶
- func Archive(n *naming.Naming) error
- func Build(dock *docker.Docker, n *naming.Naming, maxAge time.Duration) error
- func Create(dock *docker.Docker, n *naming.Naming, extraPackages []string) error
- func Depends(dock *docker.Docker, n *naming.Naming, extraPackages []string) error
- func Package(dock *docker.Docker, n *naming.Naming, dpkgFlags string, withNetwork bool) error
- func Remove(dock *docker.Docker, n *naming.Naming) error
- func ShellOptional(dock *docker.Docker, n *naming.Naming) error
- func Start(dock *docker.Docker, n *naming.Naming) error
- func Stop(dock *docker.Docker, n *naming.Naming) error
- func Tarball(n *naming.Naming) error
- func Test(dock *docker.Docker, n *naming.Naming, lintianFlags string, noLintian bool) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Build ¶
Build function determines parent image name by querying DockerHub API for available "debian" and "ubuntu" tags and confronting them with debian/changelog's target distribution.
If image exists and is old enough, it will be rebuilt.
At last it commands Docker Engine to build image.
func Create ¶
Create function commands Docker Engine to create container.
If extra packages are provided, it checks if they are correct and mounts them.
If container already exists and mounts are different, then it removes the old one and creates new with proper mounts.
Also makes directories on host and moves tarball if needed.
func ShellOptional ¶
ShellOptional function interactively executes bash shell in container.
Types ¶
This section is empty.