1
0
mirror of https://github.com/docker/compose.git synced 2025-04-08 17:05:13 +02:00

1556 Commits

Author SHA1 Message Date
Harald Albers
2cfda01ff4 Use consistent argument order in bash completion
In most of this file and in Dockers's bash completion the sort order of
options is to sort alphabetically by long option name.
The short options are put right behind their long couterpart.

This commit improves consistency.

Signed-off-by: Harald Albers <github@albersweb.de>
2015-08-26 18:31:36 +02:00
Harald Albers
b03a2f7910 Add completion for scale --timeout
Signed-off-by: Harald Albers <github@albersweb.de>
2015-08-26 18:31:36 +02:00
Harald Albers
7e22719090 Fix suppressed blank in completion of scale --help
Wrong placement of `compopt -o` introduces an unexpected behavior that did
not matter as long as --help was the only option (you would probably not
continue to type after --help): completion of options would not automatically
append a whitespace character as expected.

For the outstanding addition of the --timeout option, which has an
argument, this would mean that the user would have to type an extra
whitespace after completion of --timeout before the argument could be
added.

Signed-off-by: Harald Albers <github@albersweb.de>
2015-08-26 18:20:17 +02:00
Aanand Prasad
fc63454c99 Merge pull request from dnephin/python3
Support python 3
2015-08-25 18:22:40 +01:00
Daniel Nephin
1451a6e188 Python3 requires a locale
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-25 11:10:02 -04:00
Daniel Nephin
bd7c032a00 Fix service integration tests.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-25 10:48:48 -04:00
Daniel Nephin
71ff872e8e Update unit tests for stream_output to match the behaviour of a docker-py response.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-25 10:48:48 -04:00
Daniel Nephin
7e4c3142d7 Have log_printer use utf8 stream.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-25 10:47:06 -04:00
Daniel Nephin
feaa4a5f1a Unit tests passing again.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-25 10:47:06 -04:00
Daniel Nephin
2943ac6812 Cleanup requirements.txt so we don't have to maintain separate copies for py2 and py3.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-25 10:46:08 -04:00
funkyfuture
9aa61e596e Run tests against Python 2.6, 2.7, 3.3, 3.4 and PyPy2
In particular it includes:
- some extension of CONTRIBUTING.md
- one fix for Python 2.6 in tests/integration/cli_test.py
- one fix for Python 3.3 in tests/integration/service_test.py
- removal of unused imports

Make stream_output Python 3-compatible

Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
2015-08-25 10:41:09 -04:00
Daniel Nephin
809443d6d0 Support python 3
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-25 10:37:29 -04:00
Aanand Prasad
17682c58db Merge pull request from dnephin/add_pre_commit_hooks
Add pre commit hooks
2015-08-25 13:49:33 +01:00
Daniel Nephin
59d4f304ee Run pre-commit on all files
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-24 17:04:50 -04:00
Daniel Nephin
fae6454661 Add pre-commit hooks
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-24 17:04:45 -04:00
Aanand Prasad
2da8b7e511 Merge pull request from aanand/test-against-docker-1.8.1
Test against Docker 1.8.1
2015-08-24 16:23:33 +01:00
Aanand Prasad
60ff4549c9 Merge pull request from funkyfuture/pause_unpause
Adds pause and unpause-commands
2015-08-24 16:10:22 +01:00
Daniel Nephin
1212193c02 Merge pull request from aanand/verbose-debug
Set log level to DEBUG when `--verbose` is passed
2015-08-24 07:55:10 -07:00
Frank Sachsenheim
dd738b380b Makes Service.config_hash a property
Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
2015-08-21 12:43:13 +02:00
Frank Sachsenheim
227584b864 Adds pause and unpause-commands
Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
2015-08-21 12:43:13 +02:00
mnowster
59d024f4f2 Merge pull request from qzio/log-opt/address-to-syslog-address
log_opt: change address to syslog-address
2015-08-21 10:43:02 +01:00
Joel Hansson
8caaee9eac schema.json: remove specific log_opt properties
Signed-off-by: Joel Hansson <joel.hansson@ecraft.com>
2015-08-21 08:41:45 +02:00
Aanand Prasad
c699876617 Set log level to DEBUG when --verbose is passed
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-20 16:09:28 +01:00
Joel Hansson
61936f6b88 log_opt: change address to syslog-address
Signed-off-by: Joel Hansson <joel.hansson@ecraft.com>
2015-08-20 16:46:06 +02:00
Aanand Prasad
a806d9e77b Merge pull request from mnowster/number-is-a-valid-service-name
A number is a valid service name
2015-08-20 12:02:58 +01:00
mnowster
340eaf44fa Merge pull request from mrfuxi/1670-images-digest
Allow to specify image by digest. Fixes 
2015-08-20 10:55:00 +01:00
Karol Duleba
56f03bc20a Allow to specify image by digest. Fixes
Signed-off-by: Karol Duleba <mr.fuxi@gmail.com>
2015-08-19 21:13:34 +01:00
mnowster
5028e38261 Merge pull request from benhamill/fix_bash_completion
Fix Bash Completion
2015-08-19 14:54:30 +01:00
mnowster
8ff208babc Merge pull request from aanand/rename-changes.md-to-changelog.md
Rename CHANGES.md to CHANGELOG.md
2015-08-19 14:25:27 +01:00
mnowster
30b64e65cd Merge pull request from mrfuxi/extend-unexisting-service
Raise configuration error when trying to extend service that does not exist
2015-08-19 14:23:28 +01:00
mnowster
71ffa89890 Merge pull request from aanand/fix-volume-path-warning
Fix volume path warning
2015-08-19 14:21:19 +01:00
Aanand Prasad
6edc673aad Merge pull request from mhor/patch-1
remove extra ```
2015-08-18 12:12:46 +01:00
Maxime Horcholle
18a474211d remove extra ```
Signed-off-by: mhor <maxime.horcholle@gmail.com>
2015-08-18 09:09:37 +02:00
Aanand Prasad
0ad4725e7e Merge pull request from mnowster/improve-handling-of-parallelise-exceptions
Handle all exceptions from API
2015-08-17 17:04:45 +01:00
Mazz Mosley
f4a8fda283 Handle all exceptions
If we get back an error that wasn't an APIError, it was causing the
thread to hang. This catch all, while I appreciate feels risky to
have a catch all, is better than not catching and silently failing,
with a never ending thread.

If something worse than an APIError has gone wrong, we want to stop
the incredible journey of what we're doing.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-17 16:31:57 +01:00
Aanand Prasad
65afce526a Test against Docker 1.8.1
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-14 12:42:33 +01:00
Aanand Prasad
478054af47 Rename CHANGES.md to CHANGELOG.md
To align with the docker/docker repo.

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-14 11:27:27 +01:00
Aanand Prasad
530d20db6d Fix volume path warning
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-14 11:15:22 +01:00
Mazz Mosley
67995ab9e3 Pre-process validation steps
In order to validate a service name that has been specified as an
integer we need to run that as a pre-process validation step
*before* we pass the config to be validated against the schema.

It is not possible to validate it *in* the schema, it causes a
type error. Even though a number is a valid service name, it
must be a cast as a string within the yaml to avoid type error.

Taken this opportunity to move the code design in a direction
towards:

1. pre-process
2. validate
3. construct

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-13 16:32:20 +01:00
Daniel Nephin
b87c09b9fc Merge pull request from mrfuxi/run-with-ports
Allow manual port mapping when using "run" command
2015-08-13 08:29:25 -07:00
Aanand Prasad
2ddce83c8a Merge pull request from aanand/document-release-process
Fill out release process documentation
2015-08-13 10:46:12 +01:00
Karol Duleba
2e7f08c2ef Raise configuration error when trying to extend service that does not exist. Fixes
Signed-off-by: Karol Duleba <mr.fuxi@gmail.com>
2015-08-12 22:34:25 +01:00
Karol Duleba
ff87ceabbd Allow manual port mapping when using "run" command. Fixes
Signed-off-by: Karol Duleba <mr.fuxi@gmail.com>
2015-08-12 18:54:42 +01:00
Aanand Prasad
7d5e26bd37 Merge pull request from mnowster/mem-limit-validation
memory values can be strings or numbers
2015-08-12 17:48:55 +01:00
Mazz Mosley
440099754d memory values can be strings or numbers
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-12 17:29:33 +01:00
Aanand Prasad
711b0b4daf Merge pull request from aanand/only-use-overlay-in-ci
Only use overlay driver in CI
2015-08-12 17:05:59 +01:00
Aanand Prasad
f1eef7b416 Fill out release process documentation
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-12 16:31:37 +01:00
mnowster
c443e95f07 Merge pull request from aanand/dedupe-unset-env-warnings
Avoid duplicate warnings if an unset env variable is used multiple times
2015-08-12 15:57:04 +01:00
Aanand Prasad
4c65891db1 Avoid duplicate warnings if an unset env variable is used multiple times
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-12 15:39:33 +01:00
Aanand Prasad
bcb977425b Only use overlay driver in CI
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-12 15:36:10 +01:00