Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion compose/cli/docker_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ def docker_client():
)

timeout = int(os.environ.get('DOCKER_CLIENT_TIMEOUT', 60))
return Client(base_url=base_url, tls=tls_config, version='1.15', timeout=timeout)
return Client(base_url=base_url, tls=tls_config, version='1.17', timeout=timeout)
1 change: 1 addition & 0 deletions compose/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@

ALLOWED_KEYS = DOCKER_CONFIG_KEYS + [
'build',
'dockerfile',
'expose',
'external_links',
'name',
Expand Down
1 change: 1 addition & 0 deletions compose/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ def build(self, no_cache=False):
stream=True,
rm=True,
nocache=no_cache,
dockerfile=self.options.get('dockerfile', None),
)

try:
Expand Down
10 changes: 10 additions & 0 deletions docs/yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,16 @@ Compose will build and tag it with a generated name, and use that image thereaft
build: /path/to/build/dir
```

### dockerfile

Alternate Dockerfile.

Compose will use an alternate file to build with.

```
dockerfile: Dockerfile-alternate
```

### command

Override the default command.
Expand Down
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
PyYAML==3.10
docker-py==1.0.0
docker-py==1.1.0
dockerpty==0.3.2
docopt==0.6.1
requests==2.2.1
requests==2.6.1
six==1.7.3
texttable==0.8.2
websocket-client==0.11.0
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ def find_version(*file_paths):
install_requires = [
'docopt >= 0.6.1, < 0.7',
'PyYAML >= 3.10, < 4',
'requests >= 2.2.1, < 2.6',
'requests >= 2.6.1, < 2.7',
'texttable >= 0.8.1, < 0.9',
'websocket-client >= 0.11.0, < 1.0',
'docker-py >= 1.0.0, < 1.2',
'docker-py >= 1.1.0, < 1.2',
'dockerpty >= 0.3.2, < 0.4',
'six >= 1.3.0, < 2',
]
Expand Down