stuffer.docker module

class stuffer.docker.Epilogue[source]

Bases: stuffer.core.Action

Clean up the Docker image from temporary files.

Note that although files are removed, the Docker image does not necessarily shrink, since the files are present in lower file system layers.

command()[source]

Shell command to run. Override this or run().

Should either return a list of strings to pass to subprocess.check_output, or a string, in which case shell=True will be passed with subprocess.check_output..

class stuffer.docker.Prologue[source]

Bases: stuffer.core.Action

Check that the Docker base image is sound and prepare the image.

run()[source]

Run the Action command(s).

The default implementation runs the command returned by command().

str
The output of the command
subprocess.CalledProcessError
On execution failure.