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.


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 the Action command(s).

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

The output of the command
On execution failure.