steps

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2020 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

Package steps includes a number of step functions that have a different role

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Archive

func Archive(n *naming.Naming) error

Archive function moves successful build to archive if files changed.

func Build

func Build(dock *docker.Docker, n *naming.Naming, maxAge time.Duration) error

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

func Create(dock *docker.Docker, n *naming.Naming, extraPackages []string) error

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 Depends

func Depends(dock *docker.Docker, n *naming.Naming, extraPackages []string) error

Depends function installs build dependencies of package in container.

func Package

func Package(dock *docker.Docker, n *naming.Naming, dpkgFlags string, withNetwork bool) error

Package function executes "dpkg-buildpackage" in container. enables network back.

func Remove

func Remove(dock *docker.Docker, n *naming.Naming) error

Remove function commands Docker Engine to remove container.

func ShellOptional

func ShellOptional(dock *docker.Docker, n *naming.Naming) error

ShellOptional function interactively executes bash shell in container.

func Start

func Start(dock *docker.Docker, n *naming.Naming) error

Start function commands Docker Engine to start container.

func Stop

func Stop(dock *docker.Docker, n *naming.Naming) error

Stop function commands Docker Engine to stop container.

func Tarball

func Tarball(n *naming.Naming) error

Tarball function finds orig upstream tarballs in parent or build directory and determines which one to use.

func Test

func Test(dock *docker.Docker, n *naming.Naming, lintianFlags string, noLintian bool) error

Test function executes "debi", "debc" and "lintian" in container.

Types

This section is empty.

Jump to

Keyboard shortcuts

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