Commit Graph

1810 Commits

Author SHA1 Message Date
Daniel Nephin 9ce1884925 Add upload to bintray from travis.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-07 14:54:05 -04:00
Daniel Nephin ad96e10938 Add travis.yml for building binaries.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-07 11:07:20 -04:00
mnowster c8cd618df9 Merge pull request #2145 from dnephin/update_release_scripts
Update release scripts for release image
2015-10-07 15:51:04 +01:00
Daniel Nephin dbe311caaa Merge pull request #2149 from mnowster/2146-improve-bool-warning-message
Improve boolean warning message.
2015-10-07 10:23:58 -04:00
Mazz Mosley 8efc39e616 Improve boolean warning message.
Including examples of more boolean types, eg yes/N as it's not
always immediately clear that they are treated as booleans.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-07 14:59:08 +01:00
Aanand Prasad 627f1acdc4 Merge pull request #2126 from mnowster/1188-support-ro-options-in-volumes-from
1188 support ro options in volumes from
2015-10-07 11:57:14 +01:00
Aanand Prasad 60c9225d22 Merge pull request #2140 from dnephin/fix_patch_stdout
Reduce the scope of sys.stdout patching
2015-10-07 11:43:25 +01:00
Mazz Mosley 21a1affc63 Re-word docs.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-07 11:27:13 +01:00
Mazz Mosley f9028703f4 Pick the first container
Rather than inefficiently looping through all the containers that a
service has and overriding each volumes_from value, pick the first
one and return that.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-07 11:27:13 +01:00
Mazz Mosley 0ff84a78c6 Use multiple returns rather than overriding.
Also added a doc string for clarity.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-07 11:27:13 +01:00
Mazz Mosley 467c731869 address PR feedback
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-07 11:27:13 +01:00
Aanand Prasad fda615008c Merge pull request #2142 from dnephin/fix_error_cant_connect
Fix error when compose can't connect to docker
2015-10-07 11:22:32 +01:00
Daniel Nephin 4ae2a0e610 Update release scripts for release image.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-06 15:21:34 -04:00
Aanand Prasad 807ab89750 Merge pull request #2144 from dnephin/remove_router_php
Remove unnecessary router.php from wordpress example.
2015-10-06 17:25:00 +01:00
Daniel Nephin 97dc4895ac Remove unnecessary router.php from wordpress example.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-06 11:37:36 -04:00
Aanand Prasad 02a20c0373 Merge pull request #2069 from dnephin/test_against_latest_version_tags
Test against a list of versions generated from docker/docker tags
2015-10-06 16:33:15 +01:00
Aanand Prasad bf2faf6cdb Merge pull request #2132 from dnephin/fix_build_against_swarm
Fix build against swarm
2015-10-06 16:26:48 +01:00
Daniel Nephin 6edb6fa262 Test against a list of versions generated from docker/docker tags.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-06 10:51:52 -04:00
Daniel Nephin 15d0c60a73 Fix split buffer with inconsistently delimited json objects.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-06 10:43:07 -04:00
Daniel Nephin 3661e8bc74 Fix build against the swarm cluster by joining buffered output before parsing json.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-06 10:37:05 -04:00
Daniel Nephin fe65c0258d Remove unused attach_socket function from Container.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-06 10:37:05 -04:00
Daniel Nephin 13d5efcd8b Merge pull request #2143 from aanand/windows-preparation-instructions
Add preparation instructions to Windows build script
2015-10-06 10:13:06 -04:00
Vincent Demeester 5b55a08846 Add support for ro option in volumes_from
Fixes #1188

Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2015-10-06 13:12:55 +01:00
Aanand Prasad 018b1b1c0f Add preparation instructions to Windows build script
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-10-06 12:57:01 +01:00
Daniel Nephin fbaea58fc1 Fix #2133 - fix call to get_client()
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-05 15:57:49 -04:00
Daniel Nephin aefb7a44b2 Refactor command class hierarchy to remove an unnecessary intermediate base class Command.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-05 15:49:35 -04:00
Daniel Nephin e230142a25 Reduce the scope of sys.stdout patching.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-03 01:24:28 -04:00
mnowster 19271898de Merge pull request #1806 from dnephin/run_script
Docker image and bash script for running compose in a container
2015-10-02 17:12:25 +01:00
mnowster 8616e291c5 Merge pull request #2034 from dnephin/release_scripts
Automated release scripts
2015-10-02 16:56:29 +01:00
Daniel Nephin 39cea970b8 alpine docker image for running compose and a script to pull and run it with the
correct volumes.

Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-10-02 11:38:35 -04:00
Daniel Nephin 04375fd566 Restore notes about building non-linux binaries.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-02 11:25:16 -04:00
Daniel Nephin 1a2a0dd53d Fix some bugs in the release scripts
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-02 11:21:38 -04:00
Daniel Nephin dc56e4f97e Update release process docs to use scripts.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-02 11:21:38 -04:00
Daniel Nephin da91b81bb8 Add scripts for automating parts of the release.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-02 11:21:38 -04:00
Aanand Prasad 6c88640887 Merge pull request #2122 from mnowster/2050-relative-volume-paths-windows
2050 ensure windows volume paths are compatible with engine
2015-10-02 16:17:43 +01:00
Mazz Mosley bef5c2238e Skip a test for now
This needs resolving outside of this PR, as it is a much bigger piece
of work.

https://github.com/docker/compose/issues/2128

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-02 15:29:26 +01:00
Mazz Mosley af8032a5f4 Fix incorrect test name
I'd written relative, when I meant absolute. D'oh.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-02 12:01:56 +01:00
Mazz Mosley 2276326d7e volume path compatibility with engine
An expanded windows path of c:\shiny\thing:\shiny:rw
needs to be changed to be linux style path, including the drive,
like /c/shiny/thing /shiny
to be mounted successfully by the engine.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-02 12:01:56 +01:00
Daniel Nephin 5b95c989cd Merge pull request #2125 from aanand/pass-all-docker-env-vars-to-pytest
Pass all DOCKER_ env vars to py.test
2015-10-01 13:47:03 -04:00
Mazz Mosley 58270d8859 Remove duplicate and re-order alphabetically
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-01 16:06:57 +01:00
Mazz Mosley f4cd5b1d45 Handle windows volume paths
When a relative path is expanded and we're on a windows platform,
it expands to include the drive, eg C:\ , which was causing a ConfigError
as we split on ":" in parse_volume_spec and that was giving too many parts.

Use os.path.splitdrive instead of manually calculating the drive.

This should help us deal with windows drives as part of the volume
path better than us doing it manually.

Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-01 16:06:57 +01:00
mnowster c673ce37c7 Merge pull request #2124 from aanand/dont-expand-volume-names
Don't expand volume names
2015-10-01 15:05:38 +01:00
Aanand Prasad e38334efbd Don't expand volume names
Only expand volume host paths if they begin with a dot.

This is a breaking change. The deprecation warning preparing users for
this change has been removed.

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-10-01 14:48:38 +01:00
Aanand Prasad bb470798d4 Pass all DOCKER_ env vars to py.test
This ensures that `tox` will run against SSL-protected Docker daemons.

Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-10-01 12:26:58 +01:00
Daniel Nephin dabf1e8657 Merge pull request #2087 from dnephin/release_notes
Add release notes for 1.4.2
2015-09-24 14:37:10 -04:00
Daniel Nephin bd1373f527 Bump 1.4.2
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-23 14:24:13 -04:00
mnowster 03ae2462d4 Merge pull request #2086 from dnephin/windows
Build the windows binary on appveyor, and disable some unit tests on windows
2015-09-23 15:58:28 +01:00
Daniel Nephin 78c0734cbd Disable some tests in windows for now.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-23 10:42:57 -04:00
Daniel Nephin d5991761cd Fix building the binary on appveyor, and have it create an artifact.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-23 10:40:28 -04:00
Daniel Nephin 27e09dae5f Merge pull request #2083 from dnephin/fix_test_assumes_busybox
Fix a test case that assumes busybox image id
2015-09-23 09:40:45 -04:00