Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildImage ¶
BuildImage builds a Docker image from the passed build context.
func MakeRelease ¶
func MakeRelease(sourcecode io.Reader, config MakeReleaseConfig) (release io.ReadCloser, err error)
MakeRelease builds a release from a sourcecode tar with a makefile specifying the mkrelease* targets. The release is returned as a Reader of a tar file. The caller shall close the returned Reader.
Types ¶
type CopyCloser ¶
type CopyCloser struct { io.ReadCloser // contains filtered or unexported fields }
CopyCloser is a Reader returned from CopyFromContainer with some cleanup procedures to close the connection etc. upon closing the ReadCloser.
func (CopyCloser) Close ¶
func (r CopyCloser) Close() (err error)
Close closes the ReadCloser and then runs further cleanup steps.
type MakeReleaseConfig ¶
MakeReleaseConfig is a struct holding information for the makerelease container. Give the name of the image to be used and possibly override the release targets.
Click to show internal directories.
Click to hide internal directories.