From 8983fa561c3eabd1c6f561be34b02831a27a10b5 Mon Sep 17 00:00:00 2001 From: Tom Arnfeld Date: Wed, 23 Apr 2014 13:18:50 +0100 Subject: Added ability to specify the full build context --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 39bbced..04f7982 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,8 @@ is hosted. `version` is the version of the API the client will use and ```python c.build(path=None, tag=None, quiet=False, fileobj=None, nocache=False, - rm=False, stream=False) + rm=False, stream=False, timeout=None, + custom_context=False, encoding=None): ``` Similar to the `docker build` command. Either `path` or `fileobj` needs @@ -38,6 +39,11 @@ to be set. `path` can be a local path (to a directory containing a Dockerfile) or a remote URL. `fileobj` must be a readable file-like object to a Dockerfile. +If you have a tar file for the docker build context (including a dockerfile) +already, pass a readable file-like object to `fileobj` and also pass +`custom_context=True`. If the stream is compressed also, set `encoding` to +the correct value (e.g `gzip`). + ```python c.commit(container, repository=None, tag=None, message=None, author=None, conf=None) -- cgit v1.2.1