Merge pull request #1075 from KyleJamesWalker/master

Support alternate Dockerfile name.
This commit is contained in:
Daniel Nephin 2015-04-27 10:06:43 -04:00
commit a89bc304f6
6 changed files with 17 additions and 5 deletions

View File

@ -32,4 +32,4 @@ def docker_client():
) )
timeout = int(os.environ.get('DOCKER_CLIENT_TIMEOUT', 60)) 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)

View File

@ -35,6 +35,7 @@ DOCKER_CONFIG_KEYS = [
ALLOWED_KEYS = DOCKER_CONFIG_KEYS + [ ALLOWED_KEYS = DOCKER_CONFIG_KEYS + [
'build', 'build',
'dockerfile',
'expose', 'expose',
'external_links', 'external_links',
'name', 'name',

View File

@ -482,6 +482,7 @@ class Service(object):
stream=True, stream=True,
rm=True, rm=True,
nocache=no_cache, nocache=no_cache,
dockerfile=self.options.get('dockerfile', None),
) )
try: try:

View File

@ -39,6 +39,16 @@ Compose will build and tag it with a generated name, and use that image thereaft
build: /path/to/build/dir build: /path/to/build/dir
``` ```
### dockerfile
Alternate Dockerfile.
Compose will use an alternate file to build with.
```
dockerfile: Dockerfile-alternate
```
### command ### command
Override the default command. Override the default command.

View File

@ -1,8 +1,8 @@
PyYAML==3.10 PyYAML==3.10
docker-py==1.0.0 docker-py==1.1.0
dockerpty==0.3.2 dockerpty==0.3.2
docopt==0.6.1 docopt==0.6.1
requests==2.2.1 requests==2.6.1
six==1.7.3 six==1.7.3
texttable==0.8.2 texttable==0.8.2
websocket-client==0.11.0 websocket-client==0.11.0

View File

@ -27,10 +27,10 @@ def find_version(*file_paths):
install_requires = [ install_requires = [
'docopt >= 0.6.1, < 0.7', 'docopt >= 0.6.1, < 0.7',
'PyYAML >= 3.10, < 4', 'PyYAML >= 3.10, < 4',
'requests >= 2.2.1, < 2.6', 'requests >= 2.6.1, < 2.7',
'texttable >= 0.8.1, < 0.9', 'texttable >= 0.8.1, < 0.9',
'websocket-client >= 0.11.0, < 1.0', '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', 'dockerpty >= 0.3.2, < 0.4',
'six >= 1.3.0, < 2', 'six >= 1.3.0, < 2',
] ]