Joffrey F
aa8fb8f708
Merge pull request #4499 from xulike666/function-name-modification
...
function-name-modification for tests/*
2017-02-16 11:59:36 -08:00
Joffrey F
b49f42f9b7
Merge pull request #4496 from xulike666/quick-easy-typo-fix
...
fix a typo in script/release/utils.sh
2017-02-16 11:59:17 -08:00
Joffrey F
afd3bcfbf4
Merge pull request #4484 from shin-/4425-sys-path-fix
...
Reinitialize sys.path after it's been potentially modified by pip
2017-02-16 11:39:54 -08:00
Aaron.L.Xu
d20e3f3342
function-name-modification for tests/*
...
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
2017-02-16 15:25:20 +08:00
Aaron.L.Xu
27297fd1af
fix a typo in script/release/utils.sh
...
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
2017-02-16 11:14:49 +08:00
Joffrey F
66f4a795a2
Don't import pip inside Compose
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-15 16:31:50 -08:00
Joffrey F
40c26ca676
Merge pull request #4480 from shin-/4479-merge-secrets
...
Fix `config` command output with service.secrets section
2017-02-14 17:08:18 -08:00
Joffrey F
abce83ef25
Fix config command output with service.secrets section
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-13 16:51:50 -08:00
Joffrey F
bb5d7b2433
Merge pull request #4473 from Vehsamrak/patch-1
...
Compose file reference link fix in README.md
2017-02-13 13:03:39 -08:00
Petr Karmashev
252699c1d1
Compose file reference link fix in README.md
...
Signed-off-by: Petr Karmashev <smonkl@bk.ru>
2017-02-12 02:10:34 +03:00
Joffrey F
ad0e6d219b
Merge pull request #4469 from dnephin/fix_secrets_config
...
Fixes secrets config loading
2017-02-10 18:39:53 -08:00
Daniel Nephin
dc5b3f3b3e
Fix secrets config.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-02-10 17:11:24 -05:00
Joffrey F
1fe2443735
Merge pull request #4438 from fate-grand-order/master
...
fix typo in CHANGELOG.md
2017-02-09 16:35:35 -08:00
Joffrey F
27e0f31275
Merge pull request #4443 from xulike666/fix-accessibility
...
Referencing the right segment of code in compose/bundle.py
2017-02-09 16:34:48 -08:00
Joffrey F
2f13201b9e
Merge pull request #4453 from kevinetc123/patch-typo
...
fix typo in project.py
2017-02-09 16:33:07 -08:00
Joffrey F
276db7231a
Merge pull request #4455 from dnephin/fix_3.1
...
Fix version 3.1
2017-02-09 12:38:29 -08:00
Daniel Nephin
c092fa37de
Fix version 3.1
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-02-09 12:39:57 -05:00
kevinetc123
47e4442722
fix typo in project.py
...
Signed-off-by: kevinetc123 <kaiwentan@harmonycloud.cn>
2017-02-09 19:10:26 +08:00
Joffrey F
b306e843d3
Merge pull request #4448 from shin-/1.11-release
...
1.11 release-master realign
2017-02-08 13:54:12 -08:00
Joffrey F
fc7b74d7f9
Bump to next dev version
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-08 13:47:08 -08:00
Joffrey F
2cd6cb9a47
Bump 1.10.1
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-08 13:45:25 -08:00
Joffrey F
01d1895a35
Bump 1.11.0
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-08 13:44:40 -08:00
Joffrey F
979a0d53f7
Bump 1.11.0-rc1
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-08 13:44:31 -08:00
Aaron.L.Xu
f083526829
referencing right segment of code
...
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
2017-02-08 18:50:26 +08:00
fate-grand-order
b392b6e12e
fix typo in CHANGELOG.md
...
Signed-off-by: fate-grand-order <chenjg@harmonycloud.cn>
2017-02-07 15:59:34 +08:00
Joffrey F
165eb9c91a
Merge pull request #3558 from shin-/1135-pyinstaller-update
...
Use newer version of PyInstaller to fix prelinking issues
2017-02-06 15:00:39 -08:00
Joffrey F
1636985a7a
Merge pull request #4426 from shin-/4392-context-mgr
...
Close the open file handle using context manager
2017-02-06 13:30:49 -08:00
Kevin Jing Qiu
a3a9d8944a
Close the open file handle using context manager
...
Signed-off-by: Kevin Jing Qiu <kevin.qiu@points.com>
2017-02-03 14:50:40 -08:00
Joffrey F
951497c0f2
Merge pull request #4419 from shin-/4418-healthcheck-extends
...
Don't re-parse healthcheck values coming from extended services
2017-02-03 12:24:53 -08:00
Joffrey F
e22164ec9f
Merge pull request #4035 from urda/urda/compose-top
...
Added `top` to `docker-compose` to display running processes
2017-02-02 15:41:14 -08:00
Joffrey F
f106d23776
Merge pull request #4414 from shin-/4184-merge-pids
...
Add missing comma in DOCKER_CONFIG_KEYS list
2017-02-02 14:51:42 -08:00
Joffrey F
cf43e6edf7
Don't re-parse healthcheck values coming from extended services
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-02 14:50:53 -08:00
Joffrey F
7e8958e6ca
Add missing comma in DOCKER_CONFIG_KEYS list
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-01 16:40:43 -08:00
Joffrey F
11038c455b
Merge pull request #4334 from muicoder/master
...
add IMAGE_EVENTS: load/save
2017-02-01 15:49:03 -08:00
Peter Urda
a67500ee57
Added top to docker-compose to display running processes.
...
This commit allows `docker-compose` to access `top` for containers
much like running `docker top` directly on a given container.
This commit includes:
* `docker-compose` CLI changes to expose `top`
* Completions for `bash` and `zsh`
* Required testing for the new `top` command
Signed-off-by: Peter Urda <peter.urda@gmail.com>
2017-02-01 15:42:30 -08:00
Joffrey F
1f39b33357
Merge pull request #3989 from mattjbray/patch-1
...
Zsh completion: permit multiple --file arguments
2017-02-01 15:08:39 -08:00
Joffrey F
67e1111806
Merge pull request #4410 from shin-/4408-colors-no-tty
...
Don't strip ANSI color codes when output is not a TTY
2017-02-01 14:20:10 -08:00
Joffrey F
84774cacd2
Upgrade python and pip versions in Dockerfile
...
Add libbz2 dependency
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-02-01 14:12:41 -08:00
Joffrey F
c9eb9380ed
Merge pull request #4368 from dnephin/secrets-using-bind-mounts
...
Secrets using bind mounts
2017-02-01 14:11:20 -08:00
Joffrey F
c16cd77737
Merge pull request #4406 from shin-/bump_docker_py
...
Bump docker SDK version
2017-01-31 15:36:30 -08:00
Joffrey F
8efb7e6e8b
Don't strip ANSI color codes when output is not a TTY
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-31 12:51:46 -08:00
Daniel Nephin
59d1847d9b
Fix some test failures.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-01-31 09:53:40 -05:00
Daniel Nephin
3a2735abb9
Rebase compose v3.1 on the latest v3
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-01-31 09:53:16 -05:00
Daniel Nephin
0d609b68ac
Add a warning for unsupported secret fields.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-01-31 09:53:16 -05:00
Daniel Nephin
4053adc7d3
Add an integration test for secrets using bind mounts.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-01-31 09:53:16 -05:00
Daniel Nephin
e0c6397999
Implement secrets using bind mounts
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-01-31 09:53:16 -05:00
Daniel Nephin
add56ce818
Read service secrets as a type.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-01-31 09:53:16 -05:00
Daniel Nephin
a82de8863e
Add v3.1 with secrets.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-01-31 09:53:16 -05:00
Joffrey F
2593366a3e
Bump docker SDK version
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-30 16:49:05 -08:00
Joffrey F
22249add84
Use newer version of PyInstaller to fix prelinking issues
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-30 13:52:27 -08:00
Joffrey F
76d4f5bea6
Merge pull request #4383 from shin-/4344-detect-docker-py
...
Detect conflicting version of the docker python SDK
2017-01-30 12:14:27 -08:00
Joffrey F
5895d8bbc9
Detect conflicting version of the docker python SDK and prevent execution
...
until issue is fixed
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-26 17:12:41 -08:00
Joffrey F
e05a9f4e62
Merge pull request #4389 from shin-/4372-normalize-time-values
...
Convert time data back to string values when serializing config
2017-01-26 13:47:34 -08:00
Joffrey F
e10d1140b9
Convert time data back to string values when serializing config
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-26 11:59:22 -08:00
Joffrey F
56e01f25ea
Merge pull request #4367 from dnephin/add-missing-network-internal-to-v3
...
Add missing network.internal to v3 schema.
2017-01-25 13:41:41 -08:00
Joffrey F
c86faab4ec
Merge pull request #4370 from shin-/4357-win32-unicode-paths
...
Don't encode build context path on Windows
2017-01-23 12:04:42 -08:00
Joffrey F
20d6f450b5
Don't encode build context path on Windows
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-20 15:05:53 -08:00
Daniel Nephin
644e1716c3
Add missing network.internal to v3 schema.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2017-01-20 12:55:59 -05:00
Joffrey F
9a0962dacb
Merge pull request #4361 from shin-/4348-serialize-ext-volumes
...
Remove external_name from volume def in config output
2017-01-19 17:41:08 -08:00
Joffrey F
263b9e9317
Merge pull request #4360 from shin-/4359-volume-labels
...
Fix volume definition in v3 schema
2017-01-19 17:40:29 -08:00
Joffrey F
d83d31889e
Remove external_name from volume def in config output
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-19 16:05:13 -08:00
Joffrey F
5c2165eaaf
Fix volume definition in v3 schema
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-19 15:41:31 -08:00
Joffrey F
8a27a0f059
Merge pull request #4350 from shin-/fix-invalid-depends-on-merge
...
depends_on merge now retains condition information when present
2017-01-19 14:50:29 -08:00
Joffrey F
b47c97e94e
Merge pull request #4358 from shin-/1.11-dev
...
1.11.0dev
2017-01-19 14:50:10 -08:00
Joffrey F
a482c138d8
Merge pull request #4353 from xulike666/fight-for-readability
...
Fix typo in script/test/versions.py
2017-01-19 14:49:05 -08:00
Joffrey F
1c46525c2b
1.11.0dev
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-19 14:47:31 -08:00
Aaron.L.Xu
169289c8b6
find a fishbone
...
Signed-off-by: Aaron.L.Xu <likexu@harmonycloud.cn>
2017-01-20 00:52:19 +08:00
Joffrey F
1a02121ab5
depends_on merge now retains condition information when present
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-18 17:52:03 -08:00
Joffrey F
708c4f9534
Merge pull request #4339 from shin-/4328-catch-healthcheck-exception
...
Catch healthcheck exceptions in parallel_execute
2017-01-17 14:16:37 -08:00
Joffrey F
56a1b02aac
Catch healthcheck exceptions in parallel_execute
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-17 13:22:16 -08:00
muicoder
931027c598
add IMAGE_EVENTS: load/save
...
Signed-off-by: muicoder <muicoder@gmail.com>
2017-01-16 10:53:40 +08:00
Joffrey F
5ade097d74
Merge pull request #4324 from shin-/4321-v3-depends-on
...
Provide valid serialization of depends_on when format is not 2.1
2017-01-12 11:52:15 -08:00
Joffrey F
62cdd25b7d
Merge pull request #4323 from shin-/fix-push-release-script
...
Use correct wheel file name in twine upload command
2017-01-12 11:52:05 -08:00
Joffrey F
2df31bb13c
Provide valid serialization of depends_on when format is not 2.1
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-11 16:25:40 -08:00
Joffrey F
29b46d5b26
Use correct wheel file name in twine upload command
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-11 15:39:48 -08:00
Joffrey F
2091149fee
Merge pull request #4317 from shin-/release-script-fixes
...
Fix docker image build script when using universal wheels
2017-01-10 17:21:27 -08:00
Joffrey F
19190ea0df
Fix docker image build script when using universal wheels
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-10 16:43:26 -08:00
Joffrey F
1c1fe89e43
Merge pull request #4316 from shin-/update-setup-py
...
Update setup.py extra_requires
2017-01-10 15:50:11 -08:00
Joffrey F
52792b7a96
Update setup.py extra_requires
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-10 14:59:11 -08:00
Joffrey F
9f6778aa73
Merge pull request #4172 from graingert/enable-universal-wheels
...
enable universal wheels
2017-01-10 14:57:22 -08:00
Joffrey F
545153f117
Merge pull request #4288 from tntC4stl3/fix_404_issue
...
Fix 404 issue, change APIError to more accureate ImageNotFound
2017-01-09 16:43:57 -08:00
Joffrey F
3f7b3fbf0a
Merge pull request #4304 from shin-/4302-dockerignore-windows
...
Use docker SDK patch
2017-01-09 16:14:57 -08:00
Joffrey F
88294b46dd
Merge pull request #4294 from shin-/4240-compose-convert-false
...
Ensure falsy values in COMPOSE_CONVERT_WINDOWS_PATHS are properly recognized
2017-01-09 15:49:44 -08:00
Joffrey F
2c157e8fa9
Use docker SDK 2.0.1
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-09 15:27:20 -08:00
Joffrey F
b570cba965
Merge pull request #3961 from ankon/patch-1
...
Fix typo
2017-01-09 12:15:04 -08:00
Joffrey F
3bb8a7d178
Merge pull request #4297 from shin-/4271-fix-schemas
...
Fix config schemas (misplaced "additionalProperties")
2017-01-06 12:10:22 -08:00
Joffrey F
45c7ee4466
Merge pull request #4279 from dnephin/fix-schema-typo
...
Fix schema typo
2017-01-05 17:15:39 -08:00
Joffrey F
e063c5739f
Fix config schemas (misplaced "additionalProperties")
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-05 11:18:21 -08:00
Joffrey F
534b4ed820
Falsy values in COMPOSE_CONVERT_WINDOWS_PATHS are properly recognized
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-04 15:45:11 -08:00
Joffrey F
27d91bba01
Merge pull request #4293 from shin-/stop_timeout_v2.1
...
Add support for stop_grace_period in v2
2017-01-04 15:14:18 -08:00
Joffrey F
1be41f59c9
Add support for stop_grace_period in v2
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-04 14:30:20 -08:00
Joffrey F
838bdd71f3
Merge pull request #4291 from shin-/unify-healthcheck-def-v2v3
...
Unify healthcheck spec definition in v2 and v3
2017-01-04 13:53:39 -08:00
Joffrey F
47b672e393
Merge pull request #4051 from shin-/update-release-process
...
Update release process document to account for recent changes.
2017-01-04 13:15:49 -08:00
Joffrey F
8145429399
Unify healthcheck spec definition in v2 and v3
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-04 13:14:23 -08:00
Joffrey F
be88bb0e6c
Merge pull request #4267 from shin-/3754-depends-on-healthcheck
...
Allow service dependencies to wait on healthy containers
2017-01-04 13:00:19 -08:00
Joffrey F
bef2308530
Fix condition name in config tests
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-04 11:28:30 -08:00
Joffrey F
04394b1d0a
Expand depends_on to allow different conditions (service_start, service_healthy)
...
Rework "up" and "start" to wait on conditional state of dependent services
Add integration tests
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-04 11:28:30 -08:00
Joffrey F
f6edd610f3
Add 3.0 schema to docker-compose.spec
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-04 11:26:45 -08:00
Joffrey F
0edfe08bf0
Add healthchecks to 2.1 schema. Update depends_on
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2017-01-04 11:26:45 -08:00
Thomas Grainger
2648af6807
enable universal wheels
...
Signed-off-by: Thomas Grainger <tom.grainger@procensus.com>
2017-01-04 18:33:58 +00:00
Jun Guo
c73fc26824
Fix 404 issue, change APIError to more accureate ImageNotFound
...
Signed-off-by: Jun Guo <blackhumour.gj@gmail.com>
2017-01-04 15:42:31 +08:00
Daniel Nephin
a74b2f2f70
Fix schema typo.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-12-28 15:16:53 -05:00
Joffrey F
09690e1758
Merge pull request #4220 from shin-/4211-default_network_labels
...
Add default labels to networks and volumes created by Compose
2016-12-20 02:34:57 -08:00
Joffrey F
3058e39407
Merge pull request #4268 from shin-/jtakkala-3765-sysctl-support
...
Add sysctl option support when creating service
2016-12-20 02:34:02 -08:00
Joffrey F
e1ebb0df22
Merge pull request #4070 from shin-/use-colorama
...
Use colorama to enable colored output on Windows
2016-12-20 02:32:51 -08:00
Joffrey F
ba47fb99ba
Add default labels to networks and volumes created by Compose
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-19 20:43:35 -08:00
Joffrey F
346802715d
Use colorama to enable colored output on Windows
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-19 20:40:47 -08:00
Joffrey F
eb6441c8e3
Add sysctls option to 3.0 schema
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-19 20:35:09 -08:00
Joffrey F
82230071d5
Merge branch '3765-sysctl-support' of https://github.com/jtakkala/compose into jtakkala-3765-sysctl-support
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-19 20:33:54 -08:00
Joffrey F
e6b2949edc
Merge pull request #4216 from lawliet89/userns_mode
...
Implement `userns_mode` HostConfig for services
2016-12-19 18:12:15 -08:00
Joffrey F
ea7b565009
Merge pull request #4232 from shin-/attachable_networks
...
Make created networks attachable for file format >=2.1
2016-12-16 13:06:57 -08:00
Joffrey F
e736151ee4
Make created networks attachable for file format >=2.1
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-16 12:23:24 -08:00
Joffrey F
fb165d9c15
Add v3_only marker to healthcheck test
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-16 12:21:59 -08:00
Joffrey F
9cb6a70b6f
Merge pull request #4219 from shin-/dockerpy_2.0
...
Use docker SDK 2.0
2016-12-14 16:19:34 -08:00
Joffrey F
04e5925a23
Use docker SDK 2.0
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-14 15:36:08 -08:00
Joffrey F
635a281777
Merge pull request #4163 from aanand/add-healthcheck
...
Implement 'healthcheck' option
2016-12-14 15:35:05 -08:00
Aanand Prasad
599b29e405
Merge pull request #4213 from shin-/4212-interactive-connect
...
Win32 interactive run - Connect container to networks before starting
2016-12-08 13:41:33 +00:00
Aanand Prasad
30eac9f1ae
Merge pull request #4226 from dnephin/update-api-version-for-v3
...
Increase minimum version for compose format v3
2016-12-07 16:59:28 +00:00
Daniel Nephin
e04a12b5ca
Increase minimum version for v3.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-12-07 11:16:40 -05:00
Joffrey F
b453ee46e8
Merge pull request #4228 from shin-/bump_version
...
Bump master version to 1.10.0dev
2016-12-06 17:50:44 -08:00
Joffrey F
4d0575355c
Bump master version to 1.10.0dev
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-06 17:14:05 -08:00
Yong Wen Chua
62f8b1402e
Implement userns_mode HostConfig for services
...
Fixes #3349
This allows the key `userns_mode` to be used in service definitions.
Since `userns_mode` requires API version > 1.23, this is only available
in 2.1 and 3.0 versions of compose file
Signed-off-by: Yong Wen Chua <me@yongwen.xyz>
2016-12-05 14:25:56 +08:00
Joffrey F
6aacf51427
Win32 interactive run - Connect container to networks before starting
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-12-02 16:10:15 -08:00
Joffrey F
9bfb855b89
Merge pull request #4187 from ijc25/pull-urxvt-corruption
...
progress_stream: Avoid undefined ANSI escape codes
2016-12-02 13:54:08 -08:00
Ian Campbell
dc9184a90f
progress_stream: Avoid undefined ANSI escape codes
...
The ANSI escape codes \e[0A (cursor up 0 lines) and \e[0B (cursor down 0 lines)
are not well defined and are treated differently by different terminals. In
particular xterm treats 0 as a missing parameter and therefore defaults to 1,
whereas rxvt-unicode treats these escapes as a request to move 0 lines.
However the use of these codes is unnecessary and were really just hiding the
fact that we were not correctly computing diff when adding a new line. Having
added the new line to the ids map and output the corresponding \n the correct
diff would be 1 and not 0 (which xterm interprets as 1) as currently.
Rather than changing the hardcoded 0 to a 1 pull the diff calculation out and
always do it since it produces the correct answer in both cases.
This fixes similar corruption when compose is pulling an image to that seen
with `docker pull` and rxvt-unicode (and likely other terminals in that family)
seen in docker/docker#28111 .
This is the same as the fix made to Docker's pkg/jsonmessage in
https://github.com/docker/docker/pull/28238 (and I have shamelessly ripped off
most of this commit message from there).
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2016-11-25 10:16:37 +00:00
Joffrey F
def150a129
Merge pull request #4173 from graingert/case-pypi-correctly
...
case PyPI correctly
2016-11-22 18:15:10 -08:00
Aanand Prasad
af894b4dff
Merge pull request #4170 from dnephin/warn-on-deploy
...
Update messages about docker stack deploy
2016-11-22 17:07:13 +00:00
Thomas Grainger
024b5dd6da
case PyPI correctly
...
Signed-off-by: Thomas Grainger <tom.grainger@procensus.com>
2016-11-22 11:15:21 +00:00
Daniel Nephin
c26a2afaf3
Update messages about docker stack deploy.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-11-21 16:34:49 -05:00
Aanand Prasad
716a6baa59
Implement 'healthcheck' option
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-11-18 14:47:02 +00:00
Joffrey F
f5ad3e7577
Merge pull request #4165 from shin-/changelog_update
...
Changelog update
2016-11-17 13:29:32 -08:00
Joffrey F
b93211881b
Changelog update
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-11-16 13:35:29 -08:00
Aanand Prasad
466ebb6cc1
Merge pull request #4146 from dnephin/add-stop-grace-period
...
Add stop grace period to v3
2016-11-16 17:56:20 +00:00
Daniel Nephin
079c95c340
Use stop grace period for container stop.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-11-16 12:12:28 -05:00
Daniel Nephin
6cac48c056
Add a vendored and modified pytimeparse
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-11-16 12:10:32 -05:00
Aanand Prasad
586443ba5d
Merge pull request #4147 from aanand/version-3.0
...
Support version 3.0 of the Compose file format
2016-11-16 16:34:50 +00:00
Aanand Prasad
f75ef6862f
Warn if any services use 'deploy'
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-11-16 16:07:02 +00:00
Aanand Prasad
d717c88b6e
Support version 3.0 of the Compose file format
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-11-16 16:07:02 +00:00
Joffrey F
721bf89447
Merge pull request #4134 from shin-/fix_none_opts_network_check
...
Avoid breaking when remote driver options are null
2016-11-15 15:01:24 -08:00
Joffrey F
09540339e0
Merge pull request #4131 from aanand/test-environment-overrides-env-file
...
Test that values in 'environment' override env files
2016-11-15 14:18:54 -08:00
Joffrey F
7f60ff5ae6
Avoid breaking when remote driver options are null.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-11-15 12:00:52 -08:00
Joffrey F
3d0747017a
Merge pull request #4151 from shin-/fix_ignore_pull_failure_behavior_1.13
...
Handle new pull failures behavior in Engine 1.13
2016-11-15 12:00:19 -08:00
Joffrey F
efb4ed1b9e
Handle new pull failures behavior in Engine 1.13
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-11-15 11:30:52 -08:00
Joffrey F
d7e9748501
Merge pull request #4150 from shin-/test_only_ubuntu_host
...
Limit testing pool to Ubuntu hosts to avoid errors with dind
2016-11-14 18:04:30 -08:00
Joffrey F
0291d9ade5
Limit testing pool to Ubuntu hosts to avoid errors with dind not
...
starting properly.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-11-14 17:23:25 -08:00
Jari Takkala
91620ae97b
Add sysctl option support when creating service
...
Closes #3765
Signed-off-by: Jari Takkala <jtakkala@gmail.com>
2016-11-10 16:41:16 -05:00
Aanand Prasad
ba249e5179
Test that values in 'environment' override env files
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-11-09 15:10:27 +00:00
Joffrey F
0e28163ccb
Merge pull request #4115 from shin-/fix_overlay_options_mismatch
...
Call check_remote_network_config from Network.ensure
2016-11-08 15:35:38 -08:00
Aanand Prasad
0902edef43
Merge pull request #4113 from shin-/4103-merge-empty-logging
...
Fix logging dict merging
2016-11-08 14:56:27 +00:00
Joffrey F
4aa7d15d97
Call check_remote_network_config from Network.ensure
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-11-04 10:51:14 -07:00
Joffrey F
10417eebd7
Fix logging dict merging
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-11-03 17:22:31 -07:00
Joffrey F
9046e33ab2
Merge pull request #4112 from mikedougherty/rm-docs-checker
...
Remove docs checker from Jenkinsfile and use cleanWorkspace option on wrappedNode
2016-11-03 17:22:05 -07:00
Mike Dougherty
da1508051d
Remove docs checker from Jenkinsfile and use cleanWorkspace option on wrappedNode
...
Signed-off-by: Mike Dougherty <mike.dougherty@docker.com>
2016-11-03 14:00:17 -07:00
Joffrey F
969abca47f
Merge pull request #4098 from shin-/fix_overlay_options_mismatch
...
Add whitelisted driver option added by the overlay driver
2016-11-03 11:43:11 -07:00
Joffrey F
d525dd1846
Merge pull request #4104 from shin-/bump_docker_py
...
Bump docker-py
2016-11-03 11:43:04 -07:00
Joffrey F
7a430dbe96
Updated docker-py dependency to latest version
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-11-02 16:56:45 -07:00
Joffrey F
3b46a62f36
Merge pull request #4073 from mikedougherty/jenkinsfile
...
Update Jenkinsfile to run "janky" tasks
2016-11-02 14:55:11 -07:00
Joffrey F
ba43d08fbd
Add whitelisted driver option added by the overlay driver to avoid breakage
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-11-01 11:47:12 -07:00
Joffrey F
ed71391f66
Merge pull request #4062 from strayobject/patch-1
...
fix(docs): updated documentation links
2016-10-28 11:55:58 -07:00
Joffrey F
e563b58595
Merge pull request #4071 from NiR-/fix/run-as-container
...
Fix path of the parent dir of COMPOSE_FILE
2016-10-27 15:03:54 -07:00
Aanand Prasad
62c9ed93d0
Merge pull request #4084 from shin-/bump_docker_py
...
Bump docker-py version to include latest patch
2016-10-27 12:53:44 -07:00
Joffrey F
046144e8f4
Bump docker-py version to include latest patch
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-27 12:13:32 -07:00
Mike Dougherty
4871523d5e
Update Jenkinsfile to perform existing jenkins tasks
...
Signed-off-by: Mike Dougherty <mike.dougherty@docker.com>
2016-10-25 11:51:02 -07:00
Aanand Prasad
505c785c5c
Merge pull request #4066 from shin-/fix-schema-divergence
...
Fix schema divergence - add missing fields to compose 2.1 schema
2016-10-25 11:20:51 -07:00
Albin Kerouanton
99343fd76c
Fix path of the parent dir of COMPOSE_FILE
...
Signed-off-by: Albin Kerouanton <albin.kerouanton@knplabs.com>
2016-10-25 11:09:45 +02:00
Aanand Prasad
8b5782ba9f
Merge pull request #4067 from shin-/portable-find-exe
...
Replace "which" calls with the portable find_executable function
2016-10-24 16:15:21 -07:00
Aanand Prasad
d586328812
Merge pull request #4065 from shin-/refine-swarm-warning
...
Do not print Swarm mode warning when connecting to a UCP server
2016-10-24 16:15:14 -07:00
Aanand Prasad
021bb41fc6
Merge pull request #4069 from shin-/project_tests_robustness
...
Improve robustness of a couple integration tests with occasional failures
2016-10-24 15:35:52 -07:00
Joffrey F
60d005b055
Improve robustness of a couple integration tests with occasional failures
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-24 13:58:45 -07:00
Joffrey F
d2fb146913
Replace "which" calls with the portable find_executable function
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-24 13:22:52 -07:00
Joffrey F
43e29b41c0
Fix schema divergence - add missing fields to compose 2.1 schema
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-24 11:51:45 -07:00
Joffrey F
a652b6818c
Merge pull request #4064 from shin-/missing-2.1-spec
...
Add missing config schema to docker-compose.spec
2016-10-24 11:43:17 -07:00
Joffrey F
ea68be3441
Do not print Swarm mode warning when connecting to a UCP server
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-24 11:36:44 -07:00
Joffrey F
2c24bc3a08
Add missing config schema to docker-compose.spec
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-24 10:55:04 -07:00
Michal Zdrojewski
3d8dc6f47a
fix(docs): updated documentation links
...
Signed-off-by: Michal Zdrojewski <code@strayobject.co.uk>
2016-10-24 15:41:31 +01:00
Joffrey F
f039c8b43c
Update release process document to account for recent changes.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-20 17:47:07 -07:00
Joffrey F
3147090fb4
Merge pull request #4030 from shin-/npipe-fixes
...
Bump docker-py dependency (includes several npipe fixes)
2016-10-19 11:44:52 -07:00
Joffrey F
de15ec835a
Merge pull request #3980 from aanand/shell-out-attach
...
Attach interactively on Windows by shelling out
2016-10-19 11:14:36 -07:00
Joffrey F
2d3c76950f
Merge pull request #3972 from shin-/fix-contributors-script
...
Fix the contributors script
2016-10-18 15:25:55 -07:00
Joffrey F
932b3cc10a
Merge pull request #4026 from shin-/3923-windows-volumes
...
Do not normalize volume paths on Windows by default
2016-10-18 14:41:52 -07:00
Joffrey F
db5d2bcb10
Merge pull request #3990 from shin-/fix-osx-build
...
Fix openssl dependency in OSX binary build
2016-10-18 14:14:30 -07:00
Joffrey F
cd94c37f5d
Fix merge error (missing Network.labels attribute)
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-18 14:09:31 -07:00
Joffrey F
efb09af271
Do not normalize volume paths on Windows by default
...
Add environment variable to enable normalization if needed.
Do not normalize internal paths
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-18 12:17:56 -07:00
Joffrey F
f60c60205b
Merge branch 'dbdd4us-master'
2016-10-17 14:09:40 -07:00
Joffrey F
14716bc2da
Merge branch 'master' of https://github.com/dbdd4us/compose into dbdd4us-master
2016-10-17 14:09:09 -07:00
Joffrey F
882084932d
Upgrade docker-py to latest version
...
Adjust required requests version
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-17 14:03:21 -07:00
Joffrey F
a5c1e4b0cd
Merge pull request #3991 from shin-/3906-isolation-config
...
Add support for "isolation" in config
2016-10-17 11:02:11 -07:00
Joffrey F
95c6cc0420
Merge pull request #3994 from shin-/3430-enable-ipv6
...
Add support for enable_ipv6 in network definition.
2016-10-17 11:02:00 -07:00
Joffrey F
50faddb683
Merge pull request #4034 from realab/fix-restart-with-null-string
...
fix serialize restart spec with null string
2016-10-14 14:34:35 -07:00
Aanand Prasad
925915eb25
Show clear error when docker binary can't be found
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-10-14 17:31:21 +01:00
Aanand Prasad
8314a48a2e
Attach interactively on Windows by shelling out
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-10-14 17:31:21 +01:00
Aanand Prasad
8b383ad795
Refactor "docker not found" message generation, add Windows message
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-10-14 17:31:21 +01:00
realityone
22d91f60be
fix serialize restart spec with null string
...
Signed-off-by: realityone <realityone@me.com>
2016-10-14 18:20:55 +08:00
dbdd
bdcce13f4a
add support for creating volume and network with label definition
...
Signed-off-by: dbdd <wangtong2712@gmail.com>
2016-10-12 10:35:14 +08:00
Joffrey F
e4bb9bde30
Merge pull request #3964 from shin-/3963-unicode-env
...
Don't break when interpolating environment with unicode characters
2016-10-11 12:00:36 -07:00
Joffrey F
7f1606545d
Merge pull request #4004 from shin-/4000-extend-logging
...
Properly merge logging dictionaries in overriding configs
2016-10-11 12:00:06 -07:00
Joffrey F
0603b445e2
Properly merge logging dictionaries in overriding configs
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-10 15:39:05 -07:00
Joffrey F
9248298a4a
Merge pull request #4016 from shin-/4008-unicode-formatter
...
Handle formatter case where logrecord message is binary containing unicode
2016-10-06 16:49:03 -07:00
Joffrey F
bc3ed6dead
Merge pull request #3992 from shin-/3701-npipe-windows-default
...
Use docker-py's default behavior when no explicit host on Windows
2016-10-06 16:48:35 -07:00
Joffrey F
e5ded6ff9b
Add support for enable_ipv6 in network definition.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-06 15:49:08 -07:00
Joffrey F
804555bc4d
Merge pull request #4015 from dnephin/fix-inline-defaults
...
Support non-alphanumeric default values.
2016-10-06 15:46:35 -07:00
Joffrey F
17c5b45641
Handle formatter case where logrecord message is binary containing
...
unicode characters.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-06 15:39:47 -07:00
Daniel Nephin
2bce81508e
Support non-alphanumeric default values.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-10-06 17:04:19 -04:00
Victoria Bialas
8f636d8279
Merge pull request #4010 from londoncalling/add-vnext-info
...
updated README per vnext branch plan
2016-10-05 18:47:00 -07:00
Joffrey F
b50b14f937
Fix openssl dependency in OSX binary build
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-10-05 17:08:14 -07:00
Victoria Bialas
a8ff4285d1
updated README per vnext branch plan
...
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
2016-10-05 16:19:09 -07:00
Joffrey F
eac01a7cd5
Merge pull request #3108 from dnephin/inplace_var_defaults
...
Support inline default values for interpolation
2016-10-05 14:22:02 -07:00
John Mulhausen
85d6d7955f
Merge pull request #4005 from johndmulhausen/master
...
Remove old documentation source, add README on migration
2016-10-04 19:08:36 -07:00
John Mulhausen
1a4e81920b
Remove old documentation source, add README on migration
...
Signed-off-by: John Mulhausen <john@docker.com>
2016-10-04 17:58:44 -07:00
Matt Bray
a37d99f201
Zsh completion: change --file description text
...
Signed-off-by: Matt Bray <mattjbray@gmail.com>
2016-09-30 00:45:46 +01:00
Daniel Nephin
fe08be698d
Support inline default values.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-09-29 12:46:11 -04:00
Joffrey F
007cf96452
Use docker-py's default behavior when no explicit host on Windows
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-28 15:36:57 -07:00
Joffrey F
dc8a39f70d
Add support for "isolation" in config
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-28 15:31:58 -07:00
Matthew Bray
90356b7040
Zsh completion: permit multiple --file arguments
...
Before this change:
```
$ docker-compose --file docker-compose.yml -<TAB>
-- option --
--help -h -- Get help
--host -H -- Daemon socket to connect to
--project-name -p -- Specify an alternate project name (default: directory name)
--skip-hostname-check -- Don't check the daemon's hostname against the name specified in the client certificate (for example if your docker host is an IP address)
--tls -- Use TLS; implied by --tlsverify
--tlscacert -- Trust certs signed only by this CA
--tlscert -- Path to TLS certificate file
--tlskey -- Path to TLS key file
--tlsverify -- Use TLS and verify the remote
--verbose -- Show more output
--version -v -- Print version and exit
```
(Note the `--file` argument is no longer available to complete.)
After this change:
```
docker-compose --file docker-compose.yml -<TAB>
-- option --
--file -f -- Specify an alternate docker-compose file (default: docker-compose.yml)
--help -h -- Get help
--host -H -- Daemon socket to connect to
--project-name -p -- Specify an alternate project name (default: directory name)
--skip-hostname-check -- Don't check the daemon's hostname against the name specified in the client certificate (for example if your docker host is an IP address)
--tls -- Use TLS; implied by --tlsverify
--tlscacert -- Trust certs signed only by this CA
--tlscert -- Path to TLS certificate file
--tlskey -- Path to TLS key file
--tlsverify -- Use TLS and verify the remote
--verbose -- Show more output
--version -v -- Print version and exit
```
Signed-off-by: Matt Bray <mattjbray@gmail.com>
2016-09-28 12:04:13 +01:00
Joffrey F
5667de87e8
Fix the contributors script to show only contributors on the current branch
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-22 12:34:59 -07:00
Joffrey F
f65f89ad8c
Merge pull request #3653 from shin-/3637-link-local-ips
...
Add support for link-local IPs in service.networks definition
2016-09-22 11:58:29 -07:00
Daniel Nephin
5b27389571
Merge pull request #3956 from shin-/update_dockerpy_version
...
Bump docker-py dependency
2016-09-21 10:08:48 -04:00
Joffrey F
53fa44c01e
Don't break when interpolating environment with unicode characters
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-20 18:05:59 -07:00
Joffrey F
7687412e03
Merge pull request #3922 from shin-/3897-volumespec_parse_win32
...
Improve volumespec parsing on windows platforms
2016-09-20 13:09:37 -07:00
Joffrey F
33424189d4
Denormalize function defaults to latest version
...
Minor docs fix
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-20 11:47:14 -07:00
Joffrey F
7911659266
Improve volumespec parsing on windows platforms
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-20 11:24:24 -07:00
Andreas Kohn
cb3bf869f4
Fix typo
...
Signed-off-by: Andreas Kohn <andreas.kohn@gmail.com>
2016-09-20 13:59:17 +02:00
Joffrey F
1648a3e257
Merge pull request #3709 from Knetic/groupadd
...
Supported group_add
2016-09-19 17:18:06 -07:00
Joffrey F
fc6791f3f0
Bump docker-py dependency
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-16 14:12:15 -07:00
Joffrey F
1d03baa9b1
Merge pull request #3954 from shin-/windows_tcp_default
...
Force default host on windows to the default TCP host (instead of npipe)
2016-09-16 14:09:10 -07:00
Joffrey F
64517e31fc
Force default host on windows to the default TCP host (instead of npipe)
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-16 11:43:25 -07:00
Joffrey F
66b395d950
Include docker-py link-local fix and improve integration test
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-15 14:55:42 -07:00
Joffrey F
fd254caa68
Add support for link-local IPs in service.networks definition
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-15 14:55:14 -07:00
Joffrey F
651283eef9
Merge pull request #3941 from shin-/3888-recover-apierror-logs
...
Catch APIError while printing container logs
2016-09-13 12:58:40 -07:00
Joffrey F
f065ce0f73
Merge pull request #3942 from shin-/3873-syslog-logs-error
...
Only allow log streaming if logdriver is json-file
2016-09-13 12:28:27 -07:00
Joffrey F
3fcd648ba2
Catch APIError while printing container logs
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-13 12:10:41 -07:00
Joffrey F
7dd2e33057
Only allow log streaming if logdriver is json-file or journald
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-13 11:56:26 -07:00
Joffrey F
1b2354c6f4
Merge pull request #3943 from aanand/fix-integration-test-on-docker-for-mac
...
Fix integration test on Docker for Mac
2016-09-13 11:54:16 -07:00
Daniel Nephin
ac9198e638
Merge pull request #3930 from shin-/update_dockerpy_version
...
Update docker-py dependency to latest release
2016-09-13 10:35:56 -04:00
Daniel Nephin
9faa852d41
Merge pull request #3921 from shin-/3890-pull-services
...
Fix command hint in bundle to pull services instead of images
2016-09-13 10:32:14 -04:00
Aanand Prasad
9759f27fa6
Fix integration test on Docker for Mac
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-09-13 14:50:37 +01:00
Joffrey F
b64bd07f22
Update docker-py dependency to latest release
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-12 14:34:07 -07:00
George Lester
dada36f732
Supported group_add
...
Signed-off-by: George Lester <glester491@gmail.com>
2016-09-11 23:10:49 -07:00
Joffrey F
817c76c8e9
Fix command hint in bundle to pull services instead of images
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-09-08 11:17:39 -07:00
Joffrey F
3dec600d82
Merge pull request #3830 from shin-/3534-machine-config-args
...
Remove surrounding quotes from TLS paths, if present
2016-09-07 18:35:43 -07:00
Ben Firshman
c197e02ecc
Merge pull request #3814 from aanand/disambiguate-swarm
...
Disambiguate 'Swarm' in integration doc
2016-09-07 10:46:14 +01:00
Joffrey F
267a243f80
Merge pull request #3799 from aanand/handle-connection-error-on-project-init
...
Handle connection errors on project initialization
2016-09-06 10:25:48 -07:00
Sven Dowideit
08179fc7e3
Merge pull request #3865 from SvenDowideit/add-jenkinsfile
...
Add docs checking Jenkinsfile
2016-08-24 15:01:36 +10:00
Sven Dowideit
bf91c64983
Add docs checking Jenkinsfile
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-08-22 12:18:07 +10:00
Ben Firshman
acfe100686
Merge pull request #3542 from jfroche/add_swappiness
...
Add support for swappiness constraint
2016-08-16 13:58:33 +01:00
Jean-François Roche
d824cb9b06
Add support for swappiness constraint
...
Run a service using `docker run --memory-swappiness=0` (see
https://docs.docker.com/engine/reference/run/ )
refs #2383
Signed-off-by: Jean-François Roche <jfroche@affinitic.be>
2016-08-16 11:02:51 +02:00
Joffrey F
13bcd85eb3
Merge pull request #3808 from jgsqware/patch-1
...
Update rm.md
2016-08-09 15:16:48 -07:00
Joffrey F
c0305024f5
Remove surrounding quotes from TLS paths, if present
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-09 15:13:01 -07:00
JG²
17f46f8999
Update rm.md
...
Receiving this message when using the -a flag : `--all flag is obsolete. This is now the default behavior of `docker-compose rm`, I proposed to mark it in the docs but I don't know which way is the best
Signed-off-by: jgsqware <garciagonzalez.julien@gmail.com>
2016-08-05 13:41:20 +02:00
Aanand Prasad
4cba653eeb
Disambiguate 'Swarm' in integration doc
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-08-04 15:19:02 +01:00
Aanand Prasad
d29f8e1022
Merge pull request #3789 from shin-/3788-json-splitter-fix
...
json_splitter: Don't break when buffer contains leading whitespace.
2016-08-03 13:23:52 +01:00
Joffrey F
9abbe1b7f8
Catchable error for parse failures in split_buffer
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-08-02 12:48:32 -07:00
Aanand Prasad
b3a4d76d4f
Handle connection errors on project initialization
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-08-02 11:44:25 +01:00
Victoria
589fb4925e
Merge pull request #3797 from aanand/note-about-experimental-build
...
Add note to bundle docs about requiring an experimental Engine build
2016-08-01 12:25:38 -07:00
Aanand Prasad
48258e2b46
Add note to bundle docs about requiring an experimental Engine build
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-08-01 12:25:49 +01:00
Joffrey F
6ce066274e
Merge pull request #3784 from aanand/fix-timeout-error
...
Fix stacktrace when handling timeout error
2016-07-29 14:09:21 -07:00
Joffrey F
6f4be1cffc
json_splitter: Don't break when buffer contains leading whitespace.
...
Add error logging with detailed output for decode errors
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-07-29 14:05:59 -07:00
Aanand Prasad
5aeeecb6f2
Fix stacktrace when handling timeout error
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-29 17:12:46 +01:00
Daniel Nephin
dec2c83014
Merge pull request #3778 from shin-/1.8.0-release-master-changes
...
1.8.0 release master changes
2016-07-27 18:04:43 -04:00
Joffrey F
d5765b7856
Merge pull request #3771 from aanand/shell-completion-for-push-images
...
Shell completion for --push-images
2016-07-27 13:35:05 -07:00
Joffrey F
6ab0607e61
Switch back to dev version
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-07-27 13:30:52 -07:00
Joffrey F
1110af1bae
Bump 1.8.0
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-07-27 13:30:06 -07:00
Aanand Prasad
7fafd72c1e
Bump 1.8.0-rc3
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-27 13:22:20 -07:00
Aanand Prasad
60622026fa
Bump 1.8.0-rc2
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-27 13:22:07 -07:00
Joffrey F
22c0779a49
Bump 1.8.0-rc1
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-07-27 13:21:47 -07:00
Joffrey F
647f260b0a
Merge pull request #3774 from aanand/fix-tls-version-error-message
...
Fix error message for unrecognised TLS version
2016-07-27 10:35:21 -07:00
Aanand Prasad
ec825af3d3
Fix error message for unrecognised TLS version
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-27 18:26:40 +01:00
Aanand Prasad
6633f1962c
Shell completion for --push-images
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-27 16:00:53 +01:00
Aanand Prasad
e9d62e8404
Merge pull request #3676 from aanand/warn-for-swarm-mode
...
Show a warning when engine is in swarm mode
2016-07-27 15:38:09 +01:00
Aanand Prasad
ef4ad93d1e
Merge pull request #3760 from bfirsh/useragent
...
Add user agent to API calls
2016-07-27 14:55:18 +01:00
Aanand Prasad
69b91ef6ba
Merge pull request #3636 from dnephin/add_missing_ref_docs
...
Add missing reference docs for push and bundle
2016-07-27 14:30:17 +01:00
Ben Firshman
1877a41b92
Add user agent to API calls
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-07-27 14:26:15 +01:00
Aanand Prasad
5f0186e008
Merge pull request #3769 from shin-/upgrade-dockerpy-1.9.0
...
Update to docker-py 1.9.0
2016-07-27 11:56:13 +01:00
Joffrey F
7f3375c2ce
Update docker-py requirement to the latest release
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-07-26 13:07:38 -07:00
Daniel Nephin
2fec6966d4
Add reference docs for push and bundle.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-07-26 15:18:09 -04:00
Ben Firshman
4a8b88bc2e
Merge pull request #3763 from aanand/remove-experimental-networking-doc
...
Remove doc on experimental networking support
2016-07-26 14:24:04 +01:00
Aanand Prasad
8ffbe8e083
Remove note about .dsb
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-26 11:59:04 +01:00
Aanand Prasad
28e6508f4a
Add note about missing volume mount support
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-26 11:51:30 +01:00
Aanand Prasad
8924f6c05c
Fix example image hash
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-26 11:51:16 +01:00
Aanand Prasad
4598dfc79f
Merge pull request #3762 from aanand/pull-flag-on-bundle
...
Rename --fetch-digests to --push-images and remove auto-pull
2016-07-26 11:01:32 +01:00
Aanand Prasad
887ed8d1b6
Rename --fetch-digests to --push-images and remove auto-pull
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-25 17:36:24 +01:00
Aanand Prasad
583bbb4635
Copy experimental bundle docs into Compose docs so URL is stable
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-25 13:46:56 +01:00
Aanand Prasad
2c9e46f60f
Show a warning when engine is in swarm mode
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-25 13:46:56 +01:00
Aanand Prasad
07e2426d89
Remove doc on experimental networking support
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-25 13:38:04 +01:00
Daniel Nephin
619bf4c4df
Merge pull request #3705 from aanand/fix-timeout-message
...
Fix timeout value in error message
2016-07-22 10:57:41 -04:00
Daniel Nephin
10749e187c
Merge pull request #3718 from aanand/fix-run-entrypoint
...
Fix bugs with entrypoint/command in docker-compose run
2016-07-22 10:55:25 -04:00
Aanand Prasad
7f65caa97b
Merge pull request #3747 from aanand/clarify-env-docs
...
Clarify environment, env_file and build.args docs
2016-07-21 16:14:26 +01:00
Daniel Nephin
a9b5e5abe0
Merge pull request #3751 from ijc25/master
...
Tidy up remaining lingering docker.client.Client objects in test suite
2016-07-21 11:13:29 -04:00
Ian Campbell
d6f70dddc7
Call the superclass tearDown in VolumeTest
...
Currently it doesn't actually seem to make any practical difference that this
is missing, but it seems like good practice to do so anyway, to be robust
against future test case changes which might require cleanup done in the super
class.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2016-07-21 13:17:53 +01:00
Ian Campbell
3124fec01a
tearDown tmp_volumes array itself in VolumeTest
...
Each volume in the array holds a reference to a docker.client.Client object and
therefore a connection pool which leaves fds open once the test has completed.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2016-07-21 13:17:53 +01:00
Ian Campbell
5cdf30fc12
Teardown project and db in ResilienceTest
...
These hold a reference to a docker.client.Client object and therefore a
connection pool which leaves fds open once the test has completed.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2016-07-21 13:17:53 +01:00
Aanand Prasad
26b819ca67
Merge pull request #3748 from ijc25/master
...
tearDown the project override at the end of each test case
2016-07-20 16:28:45 +01:00
Ian Campbell
0483bcb472
delete DockerClientTestCase.client class attribute on tearDownClass
...
This is a docker.client.Client and therefore contains a connection pool, so
each subclass of DockerClientTestCase can end up holding on to up to 10 Unix
socket file descriptors after the tests contained in the sub-class are
complete.
Before this by the end of a test run I was seeing ~100 open file descriptors,
~80 of which were Unix domain sockets. By cleaning these up only 15 Unix
sockets remain at the end (out of ~25 fds, the rest of which are the Python
interpretter, opened libraries etc).
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2016-07-20 15:51:22 +01:00
Ian Campbell
6649e9aba3
tearDown the project override at the end of each test case
...
self._project.client is a docker.client.Client, so creating a new self._project
leaks (via the embedded connection pool) a bunch of Unix socket file
descriptors for each test which overrides self.project using this mechanism.
In my tests I observed the test harness using 800-900 file descriptor, which is
OK on Linux with the default limit of 1024 but breaks on OSX (e.g. with
Docker4Mac) where the default limit is only 256. The failure can be provoked on
Linux too with `ulimit -n 256`.
With this fix I have observed the process ending with ~100 file descriptors
open, including 83 Unix sockets, so I think there is likely at least one more
leak lurking.
Signed-off-by: Ian Campbell <ian.campbell@docker.com>
2016-07-20 14:34:12 +01:00
Aanand Prasad
425303992c
Reorder/clarify args docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-20 12:47:47 +01:00
Jarrod Pooler
9ab1d55d06
Updating arg docs in the proper place
...
Signed-off-by: Jarrod Pooler <jarrod.pooler@homesite.com>
2016-07-20 12:45:11 +01:00
Aanand Prasad
907b0690e6
Clarify environment and env_file docs
...
Add note to say that environment variables will not be automatically
made available at build time, and point to the `args` documentation.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-20 12:23:51 +01:00
Aanand Prasad
d7db15ce94
Merge pull request #3364 from TomasTomecek/3355-detailed-error-messages
...
service: detailed error messages for create and start
2016-07-11 16:29:35 -04:00
Aanand Prasad
593d1aeb09
Fix bugs with entrypoint/command in docker-compose run
...
- When no command is passed but `--entrypoint` is, set Cmd to `[]`
- When command is a single empty string, set Cmd to `[""]`
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-11 16:15:13 -04:00
Aanand Prasad
1e60030b94
Merge pull request #3488 from jgiannuzzi/internal_networks
...
Add support for creating internal networks
2016-07-11 15:24:29 -04:00
Jonathan Giannuzzi
83f35e132b
Add support for creating internal networks
...
Signed-off-by: Jonathan Giannuzzi <jonathan@giannuzzi.be>
2016-07-11 11:34:01 +02:00
Tomas Tomecek
fea970dff3
service: detailed error messages for create and start
...
Fixes : #3355
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2016-07-11 10:45:27 +02:00
Aanand Prasad
c3fd6a8f4d
Merge pull request #3704 from aanand/update-install-and-changelog-for-1.7.1
...
Update install.md and CHANGELOG.md for 1.7.1
2016-07-07 16:01:55 -07:00
Aanand Prasad
4207d43b85
Fix timeout value in error message
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-07 12:08:47 -07:00
Aanand Prasad
576a2ee7ae
Stop checking the deprecated DOCKER_CLIENT_TIMEOUT variable
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-07 11:58:10 -07:00
Aanand Prasad
49d4fd2795
Update install.md and CHANGELOG.md for 1.7.1
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-07 11:41:11 -07:00
Joffrey F
79ddf06267
Merge pull request #3662 from albers/completion-bundle--fetch-digests
...
bash completion for `docker-compose bundle --fetch-digests`
2016-07-07 10:39:18 -07:00
Aanand Prasad
89c9aed339
Merge pull request #3697 from aanand/pin-alpine-base-image
...
Pin base image to alpine:3.4 in Dockerfile.run
2016-07-06 18:04:47 -07:00
Aanand Prasad
08127625a0
Pin base image to alpine:3.4 in Dockerfile.run
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-06 18:01:27 -07:00
Aanand Prasad
1e176b58c5
Merge pull request #3592 from stakodiak/fix-privilege-typo
...
Fix a typo in a test's name.
2016-07-06 15:22:05 -07:00
Aanand Prasad
98818d4e50
Merge pull request #3591 from staticshock/togather
...
Fix a typo (togather -> together)
2016-07-06 11:45:22 -07:00
Aanand Prasad
554dc2496a
Merge pull request #3590 from Knetic/oomscore
...
Added support for oom_score_adj
2016-07-06 11:45:09 -07:00
Aanand Prasad
dcc09b677b
Merge pull request #3691 from aanand/fix-alias-tests-on-1.11
...
Fix alias tests on 1.11
2016-07-06 11:03:54 -07:00
Aanand Prasad
949b88fff9
Fix alias tests on 1.11
...
The fix in 8e04582052 caused a regression
when testing against 1.11.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-07-06 09:56:25 -07:00
Aanand Prasad
e659cd139b
Merge pull request #3689 from bfirsh/docker-mac-not-running-error
...
Suggest to run Docker for Mac if it isn't running
2016-07-06 09:55:19 -07:00
Ben Firshman
5dabc81c16
Suggest to run Docker for Mac if it isn't running
...
Instead of suggesting docker-machine.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-07-06 15:43:22 +01:00
George Lester
6fe5d2b543
Implemented oom_score_adj
...
Signed-off-by: George Lester <glester491@gmail.com>
2016-07-05 23:43:32 -07:00
Aanand Prasad
967dce5807
Merge pull request #3671 from dnephin/fix_pip_version_osx
...
Update pip in travis osx build
2016-07-05 16:08:51 -07:00
Aanand Prasad
edd3637b9b
Merge pull request #3669 from chrisclark/master
...
Docs: Typo leading to possible extreme agony
2016-07-05 16:08:08 -07:00
Ben Firshman
f9f151a51f
Merge pull request #3679 from allencloud/make-output-consistent-typo
...
make-output-consistent-typo
2016-07-05 17:36:59 +01:00
allencloud
931b01acf9
make-output-consistent-typo
...
Signed-off-by: allencloud <allen.sun@daocloud.io>
2016-07-02 23:33:13 +08:00
Aanand Prasad
f1974f6c5e
Merge pull request #3670 from aanand/3343-run-with-env-values-from-system
...
[Carry #3373 ] Unset env vars behavior in 'run' mirroring engine
2016-07-01 12:12:29 -07:00
Daniel Nephin
3d0a1de023
Upgrade pip on osx
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-30 20:52:15 -04:00
Aanand Prasad
50d5aab8ad
Fix test: check container's Env array instead of the output of 'env'
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-06-30 17:00:30 -07:00
Aanand Prasad
10ae81f8cf
Post-merge fix - restore Environment import in main.py
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-06-30 15:49:16 -07:00
Joffrey F
5d244ef6d8
Unset env vars behavior in 'run' mirroring engine
...
Unset env vars passed to `run` via command line options take the
value of the system's var with the same name.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-30 15:48:23 -07:00
Chris Clark
a62739b906
Signed-off-by: Chris Clark <chris@untrod.com>
...
The postgres image expects a specific volume path. The docs had a typo in that path. This can cause a lot of agony. This is not hypothetical agony, but very real agony that was very recently experienced :)
2016-06-30 15:30:22 -07:00
Daniel Nephin
3d20e25bf8
Merge pull request #3661 from dnephin/fix_requirements
...
Add missing deps to requirements.txt
2016-06-30 18:21:40 -04:00
Aanand Prasad
bc0939dcf0
Merge pull request #3645 from leonhartX/zsh-completion-bundle
...
add zsh completion support for bundle
2016-06-30 10:32:44 -07:00
Aanand Prasad
c0237a487b
Merge pull request #3221 from aeriksson/fix-zsh-autocomplete
...
Fix zsh autocomplete
2016-06-29 11:08:08 -07:00
Aanand Prasad
3c8fdb8752
Merge pull request #3615 from shin-/docker-py-bump190
...
Update docker-py version in requirements
2016-06-29 10:49:59 -07:00
Harald Albers
622de27c1e
bash completion for docker-compose bundle --fetch-digests
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-06-29 08:45:36 -07:00
Daniel Nephin
2b6ea847b9
Update requirements.txt
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-29 10:38:01 -04:00
Ben Firshman
da2aae2a29
Merge pull request #3570 from davidjb/patch-1
...
Fix minor YAML typo
2016-06-29 15:20:16 +01:00
Ke Xu
edd28f09d1
change dsb to dab
...
Signed-off-by: Ke Xu <leonhartx.k@gmail.com>
2016-06-29 11:01:50 +09:00
Joffrey F
93cc2675c8
Merge pull request #3625 from albers/completion-bundle
...
bash completion for `docker-compose bundle`
2016-06-28 15:52:37 -07:00
Joffrey F
3649df83ab
Merge pull request #3626 from albers/completion-push
...
bash completion for `docker-compose push`
2016-06-28 15:52:14 -07:00
Joffrey F
b89dc99e8e
Merge pull request #3646 from leonhartX/zsh-completion-push
...
add zsh completion for push
2016-06-28 15:50:32 -07:00
Joffrey F
a822406eb0
Update docker-py version in requirements
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-28 15:49:06 -07:00
Aanand Prasad
72d3d5d84b
Merge pull request #3612 from dnephin/tests_for_bundle
...
Add some unit tests and an acceptance test for bundle
2016-06-28 14:47:29 -07:00
Aanand Prasad
55e20d1727
Merge pull request #3652 from aanand/fix-tests-for-1.12
...
Fix tests to accommodate short-id container alias
2016-06-28 13:27:40 -07:00
Daniel Nephin
7c06f60573
Merge pull request #3563 from adamchainz/readthedocs.io
...
Convert readthedocs links for their .org -> .io migration for hosted projects
2016-06-28 12:35:19 -04:00
Daniel Nephin
00decf8677
Merge pull request #3638 from aanand/update-bundle-extension
...
Update bundle extension
2016-06-28 11:43:58 -04:00
Daniel Nephin
5640bd42a8
Add an acceptance test for bundle.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-28 10:18:59 -04:00
Daniel Nephin
95207561bb
Add some unit tests for new bundle and push commands.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-28 10:18:20 -04:00
Aanand Prasad
8e04582052
Fix tests to accommodate short-id container alias
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-06-27 16:21:19 -07:00
Aanand Prasad
058a7659ba
Update bundle extension
...
It's now .dab, for Distributed Application Bundle
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-06-27 14:16:44 -07:00
Aanand Prasad
fe0654603c
Merge pull request #3619 from jgiannuzzi/fix_tests
...
Fix assertion that was always true
2016-06-27 14:16:00 -07:00
Andre Eriksson
c3247e7af8
zsh autocomplete: update misleading comment
...
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:07:59 -07:00
Andre Eriksson
b3d4e9c9d7
zsh autocomplete: break out duplicated flag messages into variables
...
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:00:17 -07:00
Andre Eriksson
0058b4ba0c
zsh autocomplete: replace use of sed with cut
...
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:00:17 -07:00
Andre Eriksson
612d263d74
zsh autocomplete: fix issue when filtering on already selected services
...
Previously, the filtering on already selected services would break when
one service was a substring of another.
This commit fixes that.
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:00:17 -07:00
Andre Eriksson
048408af48
zsh autocomplete: fix missing services issue for build/pull commands
...
Previously, the autocomplete for the build/pull commands would only add
services for which build/image were the _first_ keys, respectively, in
the docker-compose file.
This commit fixes this, so the appropriate services are listed
regardless of the order in which they appear
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:00:17 -07:00
Andre Eriksson
d990f7899c
zsh autocomplete: pass all relevant flags to docker-compose/docker
...
For autocomplete to work properly, we need to pass along some flags when
calling docker (--host, --tls, …) and docker-compose (--file, --tls, …).
Previously flags would only be passed to docker-compose, and the only
flags passed were --file and --project-name.
This commit makes sure that all relevant flags are passed to both
docker-compose and docker.
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:00:17 -07:00
Andre Eriksson
97ba14c82a
zsh autocomplete: use two underscores for all function names
...
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:00:17 -07:00
Andre Eriksson
1b5a94f4e4
zsh autocomplete: bring flag help texts up to date
...
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:00:17 -07:00
Andre Eriksson
8d2fbe3a55
zsh autocomplete: add 'build' flag for 'create' and 'up'
...
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:00:17 -07:00
Andre Eriksson
eb10f41d13
zsh autocomplete: fix incorrect flag exclusions for 'create' and 'up'
...
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:00:17 -07:00
Andre Eriksson
73a1b60ced
zsh autocomplete: add missing 'remove-orphans' flag for 'up' and 'down'
...
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:00:17 -07:00
Andre Eriksson
b3d9652cc3
zsh autocomplete: add missing docker-compose base flags
...
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:00:17 -07:00
Andre Eriksson
cbb44b1a14
fix broken zsh autocomplete for version 2 docker-compose files
...
This has the added benefit of making autocompletion work when the
docker-compose config file is in a parent directory.
Signed-off-by: Andre Eriksson <aepubemail@gmail.com>
2016-06-27 11:00:17 -07:00
Ke Xu
a0a90b2352
add zsh completion for push
...
Signed-off-by: Ke Xu <leonhartx.k@gmail.com>
2016-06-27 18:00:52 +09:00
Ke Xu
aa7f522ab0
add zsh completion support for bundle
...
Signed-off-by: Ke Xu <leonhartx.k@gmail.com>
2016-06-27 17:48:14 +09:00
Sven Dowideit
5c1abe2e29
Merge pull request #3631 from jamesottaway/patch-1
...
Document `tmpfs` being v2 only
2016-06-27 11:50:15 +10:00
James Ottaway
f77dbc06cc
Document tmpfs being v2 only
...
Signed-off-by: James Ottaway <git@james.ottaway.io>
2016-06-24 10:54:51 +10:00
Harald Albers
f49b624d95
bash completion for docker-compose push
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-06-22 17:19:20 +02:00
Harald Albers
e5c5dc09f8
bash completion for docker-compose bundle
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-06-22 17:06:30 +02:00
Jonathan Giannuzzi
3c77db709f
Fix assertion that was always true
...
Signed-off-by: Jonathan Giannuzzi <jonathan@giannuzzi.be>
2016-06-20 14:48:45 +02:00
Anton Backer
80af26d2bb
togather -> together
...
Signed-off-by: Anton Backer <anton.backer@newsela.com>
2016-06-15 15:55:45 -07:00
Aanand Prasad
352cdf0a80
Merge pull request #3601 from aanand/warn-on-missing-digests
...
Warn on missing digests, don't push/pull by default
2016-06-15 14:28:49 -07:00
Aanand Prasad
020d46ff21
Warn on missing digests, don't push/pull by default
...
Add a --fetch-digests flag to automatically push/pull
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-06-14 16:37:32 -07:00
Joffrey F
317cd98c0d
Merge pull request #3599 from shin-/tls-version-unavailable-test
...
Skip TLS version test if TLSv1_2 is not available on platform
2016-06-14 12:34:43 -07:00
Victoria
f8f582f349
Merge pull request #3600 from londoncalling/fix-broken-links-PR-23492
...
fixes broken links in 3 Compose docs files due to topic re-org in PR#…
Merging to address broken links. One more to go in (DTR).
2016-06-14 12:30:41 -07:00
Victoria Bialas
a56e44f96e
fixes broken links in 3 Compose docs files due to topic re-org in PR#23492
...
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
2016-06-14 12:24:30 -07:00
Joffrey F
ee68a51e28
Skip TLS version test if TLSv1_2 is not available on platform
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-14 12:23:04 -07:00
Joffrey F
0fe82614a6
Merge pull request #3595 from dnephin/add-push-and-bundle
...
Add docker-compose push and docker-compose bundle
2016-06-14 10:57:32 -07:00
Aanand Prasad
8f8c17bf66
Merge pull request #3549 from shin-/KalleDK-master
...
Add support for COMPOSE_TLS_VERSION config option
2016-06-14 10:57:12 -07:00
Daniel Nephin
9b7bd69cfc
Support entrypoint, labels, and user in the bundle.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-06-14 13:00:12 -04:00
Aanand Prasad
1ea9dda1d3
Implement 'docker-compose push' and 'docker-compose bundle'
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-06-14 12:06:14 -04:00
Aanand Prasad
21f20cbc9b
Merge pull request #3449 from Andrey9kin/ready/3281
...
Fix #3281 : Unexpected result when using build args with default values
2016-06-14 08:05:07 -07:00
alex
68d73183eb
Fix a typo in a test's name.
2016-06-13 23:36:34 -04:00
Aanand Prasad
2123906586
Merge pull request #3577 from sanmai-NL/3576-byte_str_fix
...
Fix byte/str typing error
2016-06-14 01:58:27 +01:00
Aanand Prasad
59e96fea4f
Merge pull request #3588 from shin-/3285-root-mount
...
Fix split_path_mapping behavior when mounting "/"
2016-06-14 01:45:20 +01:00
Joffrey F
60f7e021ad
Fix split_path_mapping behavior when mounting "/"
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-13 15:32:10 -07:00
Sander Maijers
61324ef308
Fix byte/str typing error
...
Signed-off-by: Sander Maijers <S.N.Maijers@gmail.com>
2016-06-10 16:30:46 +02:00
David Beitey
0287486b14
Fix minor YAML typo
...
Signed-off-by: David Beitey <david@davidjb.com>
2016-06-09 17:00:31 +10:00
Adam Chainz
9ddb7f3c90
Convert readthedocs links for their .org -> .io migration for hosted projects
...
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/ ) ‘Securing subdomains’:
> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.
Test Plan: Manually visited all the links I’ve modified.
Signed-off-by: Adam Chainz <adam@adamj.eu>
2016-06-08 03:52:12 +01:00
Aanand Prasad
e502417df2
Merge pull request #3475 from shin-/3429-networks-config-serialize
...
Output valid config in config command
2016-06-07 18:01:39 +02:00
Ben Firshman
6e2d1eb80e
Merge pull request #3516 from albers/completion-rm--all
...
remove command completion for `docker-compose rm --a`
2016-06-06 22:23:56 +01:00
Joffrey F
ea640f3821
Remove external_name from serialized config output
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-03 12:10:09 -07:00
Joffrey F
427ec899df
Merge pull request #3504 from denismakogon/issue-3503
...
Issue-3503: Improve timestamp validation in tests
2016-06-03 11:57:55 -07:00
Joffrey F
e7a8b2fed5
Update TLS version configuration code. Tests.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-06-03 11:45:22 -07:00
Sven Dowideit
17b219454f
Merge pull request #3522 from SvenDowideit/fix-links
...
Fix links
2016-05-31 16:36:29 -07:00
Sven Dowideit
dd3590180d
more fixes
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-05-31 21:18:42 +00:00
Andrey Devyatkin
a67ba5536d
Fix #3281 : Unexpected result when using build args with default values
...
Fix the issue when build arg is set to None instead of empty string. Usecase:
cat docker-compose.yml
.... args:
- http_proxy
- https_proxy
- no_proxy
If http_proxy, https_proxy, no_proxy environment variables are not defined then http_proxy,
https_proxy, no_proxy build args will be set to string None which breaks all downloads
With this change undefined build args will be set to empty string instead of string None
Signed-off-by: Andrey Devyatkin <andrey.a.devyatkin@gmail.com>
2016-05-28 11:39:41 +02:00
Sven Dowideit
90fba58df9
Fix links
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-05-27 21:29:47 +00:00
Andrey Devyatkin
c148849f0e
Fix #3281 : Unexpected result when using build args with default values
...
Fix the issue when build arg is set to None instead of empty string. Usecase:
cat docker-compose.yml
.... args:
- http_proxy
- https_proxy
- no_proxy
If http_proxy, https_proxy, no_proxy environment variables are not defined then http_proxy,
https_proxy, no_proxy build args will be set to string None which breaks all downloads
With this change undefined build args will be set to empty string instead of string None
Signed-off-by: Andrey Devyatkin <andrey.a.devyatkin@gmail.com>
2016-05-27 20:16:52 +02:00
Denis Makogon
1298b9aa5d
Issue-3503: Improve timestamp validation in tests
...
CLITestCase.test_events_human_readable fails due to
wrong assumption that host where tests were launched
will have the same date time as Docker daemon.
This fix introduces internal method for validating
timestamp in Docker logs
Signed-off-by: Denys Makogon <lildee1991@gmail.com>
2016-05-27 14:50:13 +03:00
Andrey Devyatkin
e3e8a619cc
Fix #3281 : Unexpected result when using build args with default values
...
Fix the issue when build arg is set to None instead of empty string.
Usecase:
cat docker-compose.yml
....
args:
- http_proxy
- https_proxy
- no_proxy
If http_proxy, https_proxy, no_proxy environment variables are not defined
then http_proxy, https_proxy, no_proxy build args will be set to string None which breaks all downloads
With this change build args will not passed to docker engine if they are equal to string None
Signed-off-by: Andrey Devyatkin <andrey.a.devyatkin@gmail.com>
2016-05-27 07:48:13 +02:00
Harald Albers
c46737ed02
remove command completion for docker-compose rm --a
...
As `--all|-a` is deprecated, there's no use to suggest it any
more in command completion.
Signed-off-by: Harald Albers <github@albersweb.de>
2016-05-26 12:48:53 -07:00
Aanand Prasad
86b5ed1a84
Merge pull request #3473 from shin-/3461-merge-port-mappings
...
Eliminate duplicates when merging port mappings from config files
2016-05-26 16:57:43 +01:00
Joffrey F
4bb80c25d3
Merge pull request #3483 from aanand/env-disambiguation
...
Add "disambiguation" page for environment variables
2016-05-24 13:29:22 -07:00
Joffrey F
048360d1ed
Merge pull request #3489 from aanand/update-openssl-mac
...
Use latest OpenSSL version when building Mac binary on Travis
2016-05-23 13:52:51 -07:00
Aanand Prasad
a34cd5ed54
Add "disambiguation" page for environment variables
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-05-23 15:03:25 +01:00
Joffrey F
c4229b469a
Improve merging for several service config attributes
...
All uniqueItems lists in the config now receive the same treatment removing
duplicates.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-05-20 15:29:04 -07:00
Joffrey F
842e372258
Eliminate duplicates when merging port mappings from config files
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-05-20 15:28:35 -07:00
Aanand Prasad
33bed5c706
Use latest OpenSSL version (1.0.2h) when building Mac binary on Travis
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-05-20 12:04:37 +01:00
Aanand Prasad
7763122ecb
Merge pull request #3459 from shin-/2487-split-volume-path
...
Always use the Windows version of splitdrive when parsing volume mappings
2016-05-20 11:42:43 +01:00
Joffrey F
2b5b665d3a
Add test for path mapping with Windows containers
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-05-19 14:53:37 -07:00
Joffrey F
9a39208741
Merge pull request #3482 from aanand/fix-prompt-buffering
...
Fix bug where confirmation prompt doesn't show due to line buffering
2016-05-19 08:52:34 -07:00
Aanand Prasad
ce8df9e789
Merge pull request #3466 from shin-/3330-rm-all-default
...
Update rm command to always remove one-off containers.
2016-05-19 16:46:31 +01:00
Aanand Prasad
0c8aeb9e05
Fix bug where confirmation prompt doesn't show due to line buffering
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-05-19 15:44:17 +01:00
Joffrey F
db0a6cf2bb
Always use the Windows version of splitdrive when parsing volume mappings
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-05-17 16:33:59 -07:00
Joffrey F
844b7d463f
Update rm command to always remove one-off containers.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-05-16 14:59:33 -07:00
Joffrey F
ca3aef0c84
Merge pull request #3436 from shin-/3374-exec-windows
...
Fail gracefully when -d is not provided for exec command on Win32
2016-05-12 15:14:15 -07:00
Joffrey F
e5645595e3
Fail gracefully when -d is not provided for exec command on Win32
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-05-12 14:00:54 -07:00
Joffrey F
c9fe8920c9
Merge pull request #3457 from dnephin/fix_versions_script
...
Skip invalid git tags in versions.py
2016-05-12 13:52:20 -07:00
Daniel Nephin
4bf5271ae2
Skip invalid git tags in versions.py
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-05-12 14:41:40 -04:00
Aanand Prasad
72f6a5c8d3
Merge pull request #3433 from anton44eg/issue_3432
...
add msg attribute to ProjectError class
2016-05-12 16:55:11 +01:00
Joffrey F
dc88e54010
Merge pull request #3399 from yorkedork/fix/env-file-validation
...
Adds additional validation to 'env_vars_from_file'.
2016-05-12 08:53:25 -07:00
Anton Simernia
4b01f6dcd6
add msg attribute to ProjectError class
...
Signed-off-by: Anton Simernia <anton.simernya@gmail.com>
2016-05-09 18:26:20 +07:00
Sven Dowideit
f1603a3ee2
Merge pull request #3092 from wenchma/service_image
...
Update image format for service conf reference
2016-05-09 10:16:37 +10:00
Sven Dowideit
5fa81c4044
Merge pull request #3417 from spectralsun/patch-1
...
Small typo
2016-05-09 10:15:56 +10:00
Garrett Seward
3b7191f246
Small typo
...
Signed-off-by: spectralsun <garrett@spectralsun.com>
2016-05-04 10:47:01 -07:00
Daniel Nephin
3bf75b7330
Merge pull request #3398 from shin-/docker-py-1.8.1
...
Require latest docker-py version
2016-05-03 15:47:47 -04:00
Sven Dowideit
c1c8c70800
Merge pull request #3392 from SvenDowideit/use-docs-base-oss
...
convert docs Dockerfiles to use docs/base:oss
2016-05-03 10:47:00 +10:00
Joffrey F
94bcbd1fb6
Merge pull request #3388 from andrerom/patch-1
...
Clarify env-file doc that .env is read from cwd
2016-05-02 16:04:03 -07:00
Joffrey F
3e11a95056
Merge pull request #3400 from shin-/3333-raise-up-errors
...
Properly handle APIError failures in Project.up
2016-05-02 14:34:12 -07:00
Joffrey F
310b3d9441
Properly handle APIError failures in Project.up
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-05-02 13:42:05 -07:00
Thom Linton
28fb91b344
Adds additional validation to 'env_vars_from_file'.
...
The 'env_file' directive and feature precludes the use of the name
'.env' in the path shared with 'docker-config.yml', regardless of
whether or not it is enabled.
This change adds an additional validation to allow the use of this
path provided it is not a file.
Signed-off-by: Thom Linton <thom.linton@gmail.com>
2016-04-29 17:53:31 -07:00
Joffrey F
c41f30c3ff
Merge pull request #3385 from shin-/3316-skip-statusless-events
...
Skip event objects that don't contain a status field
2016-04-29 17:50:32 -07:00
Joffrey F
fe17e0f948
Skip event objects that don't contain a status field
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-04-29 16:39:42 -07:00
Joffrey F
bd7ec24e25
Merge pull request #3384 from shin-/3264-shorthand-host-support
...
Support combination of shorthand flag and equal sign for host option
2016-04-29 16:39:16 -07:00
Joffrey F
e4bb678875
Require latest docker-py version
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-04-29 16:37:26 -07:00
André R
84aa39e978
Clarify env-file doc that .env is read from cwd
...
Closes #3381
Signed-off-by: André R <ar@ez.no>
2016-04-28 23:14:06 +02:00
Joffrey F
8cc7d68a00
Merge pull request #3390 from aronahl/master
...
Add missing log event filter when using docker-compose logs.
2016-04-28 12:53:04 -07:00
Joffrey F
0b24883cef
Support combination of shorthand flag and equal sign for host option
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-04-28 12:52:00 -07:00
Aaron Nall
2efcec776c
Add missing log event filter when using docker-compose logs.
...
Signed-off-by: Aaron Nall <aronahl@hotmail.com>
2016-04-28 15:14:44 +00:00
Daniel Nephin
61794ba97c
Merge pull request #3377 from shin-/3372-windowserror
...
Define WindowsError on non-win32 platforms
2016-04-28 10:33:18 -04:00
Sven Dowideit
87ee38ed2c
convert docs Dockerfiles to use docs/base:oss
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2016-04-28 12:57:02 +00:00
Aanand Prasad
7ad7eb71ca
Merge pull request #3164 from aanand/fix-config-v1
...
WIP: Fix output of 'config' for v1 files
2016-04-26 20:34:18 +01:00
Joffrey F
d3e645488a
Define WindowsError on non-win32 platforms
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-04-26 11:40:31 -07:00
Aanand Prasad
756ef14edc
Fix format of 'restart' option in 'config' output
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-26 19:21:03 +01:00
Aanand Prasad
6064d200f9
Fix output of 'config' for v1 files
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-26 19:21:03 +01:00
Aanand Prasad
84a3e2fe79
Check full error message in test_up_with_net_is_invalid
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-26 19:21:03 +01:00
Aanand Prasad
a4d3dd6197
Remove v2_only decorators on config tests
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-26 19:21:03 +01:00
Joffrey F
0cd35913c3
Merge pull request #3382 from dnephin/upgrade_pip
...
Upgade pip to latest - attempt to fix jenkins builds
2016-04-26 09:38:12 -07:00
Daniel Nephin
26fe8213aa
Upgade pip to latest
...
Hopefully fixes our builds.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-04-26 11:58:41 -04:00
Daniel Nephin
ac82597ac1
Merge pull request #3360 from bfirsh/better-validation-error-messages
...
Make validation errors less robotic
2016-04-21 11:32:23 -04:00
Daniel Nephin
1988dfeaf0
Merge pull request #3359 from bfirsh/clarify-compose-file-networks-documentation
...
Clarify service networks documentation
2016-04-21 11:19:32 -04:00
Joffrey F
da1d603463
Merge pull request #3351 from shin-/3342-setup-requirements
...
Force docker-py 1.8.0 or above
2016-04-20 17:40:51 -07:00
Joffrey F
75bcc382d9
Force docker-py 1.8.0 or above
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-04-20 16:56:48 -07:00
Ben Firshman
b67f110620
Explain the explanation about file versions
...
This explanation looked like it was part of the error. Added an
extra new line and a bit of copy to explain the explanation.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-04-20 16:40:16 -07:00
Ben Firshman
27628f8655
Make validation error less robotic
...
"ERROR: Validation failed in file './docker-compose.yml', reason(s):"
is now:
"ERROR: The Compose file './docker-compose.yml' is invalid because:"
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-04-20 16:38:09 -07:00
Ben Firshman
55fcd1c3e3
Clarify service networks documentation
...
When jumping straight to this bit of the docs, it's not clear
that these are options under a service rather than the top-level
`networks` key. Added a service to make this super clear.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-04-20 15:58:12 -07:00
Ben Firshman
a0aea42f75
Merge pull request #3326 from CRogers/patch-1
...
Readme should use new docker compose format instead of the old one
2016-04-20 23:06:35 +01:00
Ben Firshman
6ff3c47630
Merge pull request #3222 from jonlemmon/patch-1
...
Rails Docs: Add nodejs to apt-get install command
2016-04-20 22:57:50 +01:00
Daniel Nephin
8a34ee0eaa
Merge pull request #3356 from metal3d/fix-help-acceptance-test
...
Fix the tests from jenkins
2016-04-20 12:18:20 -04:00
Patrice FERLET
ba10f1cd55
Fix the tests from jenkins
...
Acceptance tests didn't set "help" command to return "0" EXIT_CODE.
close #3354
related #3263
Signed-off-by: Patrice Ferlet <metal3d@gmail.com>
2016-04-20 13:23:37 +02:00
Aanand Prasad
cafe1315b2
Merge pull request #3334 from werehuman/fix-config-hash-change
...
Fix #3248 : Accidental config_hash change
2016-04-19 12:42:19 +01:00
Aanand Prasad
984f839d33
Merge pull request #3263 from twitherspoon/3191_2_help_cli_feature
...
Added code to support no argument help command
2016-04-19 12:14:24 +01:00
Aanand Prasad
d21e1c5a30
Merge pull request #3335 from johnharris85/master
...
Fix CLI docstring to reflect Docopt behaviour.
2016-04-19 12:13:20 +01:00
Aanand Prasad
52fa010ac7
Merge pull request #3337 from dnephin/check_for_short_id_alias
...
Check for short id alias, and don't disconnect if it already exists
2016-04-19 12:12:43 +01:00
Daniel Nephin
d4bebbb1ba
Merge pull request #3340 from johnharris85/2922-config-does-not-catch-missing-links
...
Fix #2922 : Config does not catch missing links
2016-04-18 10:13:47 -04:00
johnharris85
6d2805917c
Account for aliased links
...
Fix failing tests
Signed-off-by: John Harris <john@johnharris.io>
2016-04-17 15:25:06 -04:00
johnharris85
377be5aa1f
Adding tests
...
Signed-off-by: John Harris <john@johnharris.io>
2016-04-17 14:01:06 -04:00
johnharris85
68272b0216
Config now catches undefined service links
...
Fixes issue #2922
Signed-off-by: John Harris <john@johnharris.io>
2016-04-17 14:00:07 -04:00
Daniel Nephin
56c6e29819
Unit test for skipping network disconnect.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-04-15 16:28:59 -04:00
Vladimir Lagunov
4702703615
Fix #3248 : Accidental config_hash change
...
Signed-off-by: Vladimir Lagunov <lagunov.vladimir@gmail.com>
2016-04-15 15:34:30 +03:00
johnharris85
ad306f0479
Fix CLI docstring to reflect Docopt behaviour.
...
Signed-off-by: John Harris <john@johnharris.io>
2016-04-15 13:30:13 +01:00
Daniel Nephin
e1356e1f6f
Set networking_config when creating a container.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-04-14 18:09:06 -04:00
Daniel Nephin
abb5ae7fe4
Only disconnect if we don't already have the short id alias.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-04-14 16:05:14 -04:00
Callum Rogers
e71c62b8d1
Readme should use new docker compose format instead of the old one
...
Signed-off-by: Callum Rogers <callumrogers@hotmail.co.uk>
2016-04-14 10:49:10 +01:00
Aanand Prasad
e2cb7b0237
Merge pull request #3299 from dannyprout/2096-only-show-port-clash-warning-when-starting-multiple-containers
...
Only show port clash warning if multiple containers are about to be started
2016-04-14 10:40:02 +01:00
Aanand Prasad
aebb3d5d0a
Merge pull request #3320 from dnephin/make_it_dev_again
...
Update release notes and set version to 1.8.0dev
2016-04-14 10:22:01 +01:00
Daniel Nephin
50287722f2
Update release notes and set version to 1.8.0dev
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-04-13 13:27:18 -04:00
Danyal Prout
339ebc0483
Fixes #2096 : Only show multiple port clash warning if multiple containers
...
are about to be started.
Signed-off-by: Danyal Prout <me@dany.al>
2016-04-12 20:58:21 +01:00
Tony Witherspoon
ae46bf8907
Updated StringIO import to support io module
...
Signed-off-by: Tony Witherspoon <tony.witherspoon@gmail.com>
2016-04-12 12:29:59 -04:00
Tony Witherspoon
276738f733
Updated cli_test.py to validate against the updated help command conditions
...
Signed-off-by: Tony Witherspoon <tony.witherspoon@gmail.com>
2016-04-12 11:47:15 -04:00
Daniel Nephin
f10bc8072e
Merge pull request #3310 from aanand/fix-logs-test
...
Attempt to fix flaky logs test
2016-04-12 10:44:04 -04:00
Aanand Prasad
7781f62ddf
Attempt to fix flaky logs test
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-12 12:07:13 +01:00
Aanand Prasad
3d3f331404
Merge pull request #3303 from aanand/clarify-rm-and-down
...
Clarify behaviour of rm and down
2016-04-12 11:31:22 +01:00
Daniel Nephin
d05feb1a4d
Merge pull request #3302 from aanand/feed-queue-refactor
...
feed_queue() refactor
2016-04-11 12:58:11 -04:00
Aanand Prasad
7cfb5e7bc9
Fix race condition
...
If processing of all objects finishes before the queue is drained,
parallel_execute_iter() returns prematurely.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-11 17:05:52 +01:00
Aanand Prasad
3722bb38c6
Clarify behaviour of rm and down
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-11 16:31:27 +01:00
Aanand Prasad
15c5bc2e6c
Rename a couple of functions in parallel.py
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-11 13:05:30 +01:00
Aanand Prasad
0671b8b8c3
Document parallel helper functions
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-11 12:51:27 +01:00
Aanand Prasad
0e3db185cf
Small refactor to feed_queue()
...
Put the event tuple into the results queue rather than yielding it from
the function.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-11 12:37:00 +01:00
Victoria
97467c7dec
Merge pull request #3295 from londoncalling/docs-format-followup-PR3275
...
added some formatting on the Wordress steps, and made heading levels …
2016-04-08 16:56:57 -07:00
Victoria Bialas
4192a009da
added some formatting on the Wordress steps, and made heading levels in these sample app topics consistent
...
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
2016-04-08 16:40:07 -07:00
Victoria
80614cff9b
Merge pull request #3275 from activatedgeek/patch-1
...
Updated Wordpress tutorial
2016-04-08 16:12:44 -07:00
Sanyam Kapoor
d4e9a3b6b1
Updated Wordpress tutorial
...
The new tutorial now uses official Wordpress Docker Image.
Signed-off-by: Sanyam Kapoor <1sanyamkapoor@gmail.com>
2016-04-09 02:05:45 +05:30
Daniel Nephin
3ca8858897
Merge pull request #3292 from dnephin/fix_up_build
...
Remove extra ensure_image_exists() which causes duplicate builds.
2016-04-08 15:45:37 -04:00
Daniel Nephin
83df95d511
Remove extra ensure_image_exists() which causes duplicate builds.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-04-08 15:21:12 -04:00
Daniel Nephin
e5443717fb
Merge pull request #3291 from aanand/parallel-execute-refactor
...
Parallel execution refactor/fixes
2016-04-08 15:15:41 -04:00
Daniel Nephin
91a545813a
Merge pull request #3276 from shin-/bump_docker_py
...
Use docker-py 1.8.0
2016-04-08 15:15:01 -04:00
Aanand Prasad
be27e266da
Reduce queue timeout
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-08 19:07:40 +01:00
Aanand Prasad
5450a67c2d
Hold state in an object
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-08 19:06:07 +01:00
Aanand Prasad
54b6fc4219
Refactor so there's only one queue
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-08 18:54:02 +01:00
Aanand Prasad
ffab27c049
Test events coming out of parallel_execute_stream in error case
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-08 18:53:16 +01:00
Aanand Prasad
3720b50c3b
Extract get_deps test helper
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-08 18:48:07 +01:00
Aanand Prasad
af9526fb82
Move queue logic out of parallel_execute()
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-08 18:30:28 +01:00
Aanand Prasad
141b96bb31
Abort operations if their dependencies fail
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-08 17:51:09 +01:00
Aanand Prasad
bcdf541c8c
Refactor setup_queue()
...
- Stop sharing set objects across threads
- Use a second queue to signal when producer threads are done
- Use a single consumer thread to check dependencies and kick off new
producers
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-04-08 16:24:29 +01:00
Tony Witherspoon
f5b80640fe
Merge branch '3191_2_help_cli_feature' of https://github.com/twitherspoon/compose into 3191_2_help_cli_feature
2016-04-07 12:46:27 -04:00
twitherspoon
9f47e43b5c
Merge branch 'master' into 3191_2_help_cli_feature
2016-04-07 12:43:34 -04:00
Tony Witherspoon
5d0aab4a8e
updated cli_test.py to no longer expect raised SystemExit exceptions
...
Signed-off-by: Tony Witherspoon <tony.witherspoon@gmail.com>
2016-04-07 12:42:14 -04:00
Joffrey F
3ef6b17bfc
Use docker-py 1.8.0
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-04-06 13:28:45 -07:00
Daniel Nephin
958f96c78a
Merge pull request #3269 from dnephin/fix_logs_and_scale_down
...
Prevent unnecessary inspection of containers
2016-04-06 12:45:46 -04:00
Daniel Nephin
b33d7b3dd8
Prevent unnecessary inspection of containers when created from an inspect.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-04-06 11:14:42 -04:00
Tony Witherspoon
129fb5b356
Added code to output the top level command options if docker-compose help with no command options provided
...
Signed-off-by: Tony Witherspoon <tony.witherspoon@gmail.com>
2016-04-04 13:15:28 -04:00
Aanand Prasad
86530287d6
Merge pull request #2627 from bfirsh/update-roadmap
...
Update roadmap
2016-04-04 12:52:54 +01:00
Ben Firshman
c1026e815a
Update roadmap
...
Bring it inline with current plans:
- Use in production is not necessarily about the command-line
tool, but also improving file format, integrations, new tools,
etc.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-04-01 12:55:16 -07:00
Ben Firshman
c72d62f96d
Merge pull request #3187 from bfirsh/update-wordpress-example-to-use-official-images
...
Update wordpress example to use official images
2016-04-01 20:53:37 +01:00
Daniel Nephin
a63a05964b
Merge pull request #3249 from aanand/better-env-substitution-example
...
Better variable substitution example
2016-04-01 15:12:18 -04:00
Joffrey F
9509508f3e
Merge pull request #3226 from shin-/3210-assert-hostname
...
Fix assert_hostname logic in tls_config_from_options
2016-04-01 10:32:13 -07:00
Joffrey F
1a7a65f84d
Include docker-py requirements fix
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-31 18:01:51 -07:00
Aanand Prasad
3034803258
Better variable substitution example
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-31 15:45:14 +01:00
Joffrey F
78a8be07ad
Re-enabling assert_hostname when instantiating docker_client from the
...
environment.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-30 11:11:19 -07:00
Joffrey F
d27b82207c
Remove obsolete assert_hostname tests
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-30 10:58:15 -07:00
Joffrey F
71c86acaa4
Update docker-py version to include match_hostname fix
...
Removed unnecessary assert_hostname computation in tls_config_from_options
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-29 18:01:27 -07:00
Aanand Prasad
85e2fb63b3
Merge pull request #3218 from sdurrheimer/zsh-completion-run-workdir
...
Add zsh completion for 'docker-compose run -w --workdir'
2016-03-29 16:50:12 +01:00
Aanand Prasad
024a810617
Merge pull request #3217 from sdurrheimer/zsh-completion-up-build
...
Add zsh completion for 'docker-compose up --build'
2016-03-29 16:49:49 +01:00
Aanand Prasad
668d45c7cc
Merge pull request #3216 from sdurrheimer/zsh-completion-logs
...
Add zsh completion for 'docker-compose logs -f --follow --tail -t --t…
2016-03-29 16:49:36 +01:00
Aanand Prasad
09ea74245d
Merge pull request #3215 from sdurrheimer/zsh-completion-exec-command
...
Add zsh completion for 'docker-compose exec' command
2016-03-29 16:49:15 +01:00
Aanand Prasad
386edd892c
Merge pull request #3214 from sdurrheimer/zsh-completion-rm-all
...
Add zsh completion for 'docker-compose rm -a --all'
2016-03-29 16:48:53 +01:00
Joffrey F
7116aefe43
Fix assert_hostname logic in tls_config_from_options
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-28 17:39:20 -07:00
Jon Lemmon
93901ec480
Rails Docs: Add nodejs to apt-get install command
...
When using the latest version of Rails, the tutorial currently errors when running `docker-compose up` with the following error:
```
/usr/local/lib/ruby/gems/2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'. (Bundler::GemRequireError)
```
Installing nodejs in the build fixes the issue.
Signed-off-by: Jon Lemmon <jon.lemmon@enspiral.com>
2016-03-28 13:31:40 +13:00
Steve Durrheimer
8ae8f7ed4b
Add zsh completion for 'docker-compose run -w --workdir'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-03-25 19:25:33 +01:00
Steve Durrheimer
9729c0d3c7
Add zsh completion for 'docker-compose up --build'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-03-25 19:15:34 +01:00
Steve Durrheimer
9d58b19ecc
Add zsh completion for 'docker-compose logs -f --follow --tail -t --timestamps'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-03-25 19:09:53 +01:00
Steve Durrheimer
63b448120a
Add zsh completion for 'docker-compose exec' command
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-03-25 19:03:36 +01:00
Steve Durrheimer
0f1fb42326
Add zsh completion for 'docker-compose rm -a --all'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-03-25 18:52:28 +01:00
Daniel Nephin
aa50023507
Merge pull request #3057 from shin-/2636-env-file
...
Add support for a default environment file
2016-03-24 14:26:03 -04:00
Joffrey F
12ad3ff301
Injecting os.environ in Environment instance happens outside of init method
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:28 -07:00
Joffrey F
1506f997de
Better windows support for Environment class
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:28 -07:00
Joffrey F
b99037b4a6
Add support for DOCKER_* variables in .env file
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:28 -07:00
Joffrey F
c7afe16419
Account for case-insensitive env on windows platform
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Joffrey F
36f1b4589c
Limit occurrences of creating an environment object.
...
.env file is always read from the project_dir
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Joffrey F
0ff53d9668
Less verbose environment invocation
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Joffrey F
dcdcf4869b
Mention environment file in envvars.md
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Joffrey F
21aa7a0448
Documentation for .env file
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Joffrey F
f48da96e8b
Test get_project_name from env file
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Joffrey F
d55fc85fea
Added default env file test.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Joffrey F
1801f83bb8
Environment class cleanup
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Joffrey F
fd020ed2cf
Tests use updated get_config_paths_from_options signature
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Joffrey F
5831b869e8
Update tests for new environment handling
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Joffrey F
b9ca5188a2
Remove Environment singleton, instead carry instance during config processing
...
Project name and compose file detection also updated
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Joffrey F
bf8e501b5e
Fix pre-commit config
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Joffrey F
c69d8a3bd2
Implement environment singleton to be accessed throughout the code
...
Load and parse environment file from working dir
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:57:01 -07:00
Daniel Nephin
d1d8df7f72
Merge pull request #3192 from shin-/use-dockerpy-1.8
...
Require docker-py 1.8.0rc2
2016-03-24 13:55:59 -04:00
Joffrey F
d78b013bb0
Merge pull request #3204 from albers/completion-rm--all
...
bash completion for `docker-compose rm --all`
2016-03-24 10:44:36 -07:00
Joffrey F
aabeb56527
Merge pull request #3206 from albers/completion-exec
...
bash completion for `docker-compose exec`
2016-03-24 10:44:19 -07:00
Joffrey F
60470fb9f1
Require docker-py 1.8.0rc2
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-24 10:13:56 -07:00
Daniel Nephin
84a2e634a8
Merge pull request #3200 from dnephin/disable_broken_test
...
Disable a test that is failing against 1.11.0rc1.
2016-03-24 13:09:35 -04:00
Harald Albers
c9b02b7b34
bash completion for docker-compose exec
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-03-24 18:02:12 +01:00
Joffrey F
87231a25be
Merge pull request #3202 from albers/completion-logs
...
bash completion for new `docker logs` options
2016-03-24 09:56:12 -07:00
Joffrey F
353c4deb19
Merge pull request #3203 from albers/completion-up--build
...
bash completion for `docker-compose up --build`
2016-03-24 09:55:58 -07:00
Daniel Nephin
732531b722
Disable a test that is failing against 1.11.0rc1.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-24 12:32:13 -04:00
Harald Albers
b030c3928a
bash completion for docker-compose rm --all
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-03-24 17:29:04 +01:00
Harald Albers
5416e4c99b
bash completion for docker-compose up --build
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-03-24 17:21:56 +01:00
Harald Albers
d8fb9d8831
bash completion for new docker logs options
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-03-24 17:11:10 +01:00
Aanand Prasad
2b063d332e
Merge pull request #3196 from albers/completion-daemon-options
...
bash completion for new TLS options
2016-03-24 15:11:55 +00:00
Daniel Nephin
b09b6e390f
Merge pull request #3199 from aanand/add-tls-flags-to-overview
...
Add TLS flags to CLI reference
2016-03-24 10:48:50 -04:00
Aanand Prasad
8282bb1b24
Add TLS flags to CLI reference
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-24 14:41:51 +00:00
Harald Albers
5b2c2e332f
bash completion for TLS options
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-03-24 12:06:10 +01:00
Harald Albers
9094c4d97d
prepare bash completion for new TLS options
...
Up to now there were two special top-level options that required special
treatment: --project-name and --file (and their short forms).
For 1.7.0, several TLS related options were added that have to be passed
to secondary docker-compose invocations as well.
This commit introduces a scalable treatment of those options.
Signed-off-by: Harald Albers <github@albersweb.de>
2016-03-24 12:05:59 +01:00
Victoria
2a09fb02db
Merge pull request #3182 from londoncalling/docs-fix-links-build-errors
...
fixed links showing as build errors per PR #3180
2016-03-23 15:08:25 -07:00
Victoria Bialas
d1ea4d72ac
fixed links showing as build errors per PR #3180
...
fixed links per build errors
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
2016-03-23 14:58:45 -07:00
Aanand Prasad
c3eca82749
Merge pull request #3128 from dnephin/add_network_settings_to_config_hash
...
Include network settings as part of the service config hash.
2016-03-23 17:01:32 +00:00
Ben Firshman
a53b29467a
Update wordpress example to use official images
...
The orchardup images are very old and not maintained.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-03-22 17:19:50 -07:00
Daniel Nephin
2be2029791
Merge pull request #3139 from shin-/1716-tls-flags-support
...
Add support for TLS config command-line options
2016-03-22 18:24:52 -04:00
Joffrey F
2cc87555cb
tls_config_from_options unit tests
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-22 11:57:45 -07:00
Joffrey F
4727115317
Bump docker-py version to include tcp host fix
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-22 11:47:53 -07:00
Joffrey F
442dff72b4
Improve assert_hostname setting in tls_config_from_options
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-22 11:47:53 -07:00
Joffrey F
26f3861791
Specifying --tls no longer overrides all other TLS options
...
Add an option to skip hostname verification
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-22 11:47:53 -07:00
Joffrey F
7166408d2a
Fixed typos + simplified TLSConfig creation process.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-22 11:47:53 -07:00
Joffrey F
1ac33ea7e5
Add support for TLS config command-line options
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-22 11:47:53 -07:00
Aanand Prasad
4f5123bda9
Merge pull request #3168 from dnephin/fix_tty_timeout
...
Handle all timeout errors consistently
2016-03-22 10:14:52 +00:00
Aanand Prasad
aaa7b09369
Merge pull request #3181 from dnephin/fix_partial_change_test_failure
...
Fix flaky partial_change state test
2016-03-22 10:14:28 +00:00
Aanand Prasad
a20b84e6d2
Merge pull request #3178 from aanand/2774-off-one-offs
...
Remove one-off containers in `rm` and `down`
2016-03-22 10:12:21 +00:00
Daniel Nephin
5c968f9e15
Fix flaky partial_change state test.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-21 19:07:50 -04:00
Daniel Nephin
6718e82966
Merge pull request #3179 from dnephin/fix_tmpfs_test_failure
...
Only allow tmpfs with the v2 format
2016-03-21 18:40:51 -04:00
Daniel Nephin
be1476f24b
Only allow tmpfs on v2.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-21 14:41:28 -04:00
Aanand Prasad
2bf5e46857
Stop and remove still-running one-off containers in 'down'
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-21 18:08:07 +00:00
Aanand Prasad
a2317dfac2
Remove one-off containers in 'docker-compose down'
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-21 16:15:49 +00:00
Aanand Prasad
81f6d86ad9
Warn when --all is not passed to rm
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-21 15:14:31 +00:00
Aanand Prasad
1bc9469674
Don't allow boolean values for one_off in Project methods
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-21 14:42:57 +00:00
Joffrey F
5826a2147b
Use enum to represent 3 possible states of the one_off filter
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-21 12:12:52 +00:00
Joffrey F
187ea4cd81
Add --all option to rm command - remove one-off containers
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-21 12:12:52 +00:00
Aanand Prasad
28120148f4
Merge pull request #3137 from dnephin/add_tmpfs_to_config
...
Add support for docker run --tmpfs flag.
2016-03-21 12:10:12 +00:00
Kalle Møller
7fc40dd7cc
Adding ssl_version to docker_clients kwargs
...
Select tls version based of COMPOSE_TLS_VERSION
Changed from SSL to TLS
Also did docs - missing default value
Using getattr and raises AttributeError in case of unsupported version
Signed-off-by: Kalle Møller <github.com@k-moeller.dk>
2016-03-19 01:15:03 +01:00
Daniel Nephin
dfac48f3f5
Make a new flaky test less flaky.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-18 18:20:03 -04:00
Daniel Nephin
089ec66522
Include network settings as part of the service config hash.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-18 18:20:03 -04:00
Philip Walls
85c7d3e5ce
Add support for docker run --tmpfs flag.
...
Signed-off-by: Philip Walls <pawalls@rabidgeek.com>
2016-03-18 18:19:48 -04:00
Daniel Nephin
f1dce50b3d
Handle all timeout errors consistently.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-18 18:19:35 -04:00
Daniel Nephin
25cbc2aae9
Fix flaky network test.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-18 18:19:16 -04:00
Daniel Nephin
d5ef0dfa92
Merge pull request #3162 from albers/completion-workdir
...
bash completion for `docker-compose run --workdir`
2016-03-18 11:25:41 -04:00
Harald Albers
e3c1b5886a
bash completion for docker-compose run --workdir
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-03-18 10:47:17 +01:00
Daniel Nephin
3a63a0815d
Merge pull request #3158 from aanand/windows-install-docs
...
Windows install docs
2016-03-17 14:40:22 -04:00
Aanand Prasad
50fe014ba9
Remove hardcoded host from Engine install URLs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-17 18:10:32 +00:00
Aanand Prasad
10dfd54ebe
Update install page with link to Windows Toolbox install instructions
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-17 18:09:38 +00:00
Aanand Prasad
72ed4d3f97
Merge pull request #3152 from aanand/update-mac-install-url
...
Update Mac Engine install URL in error message
2016-03-17 17:56:34 +00:00
Joffrey F
312d764c9c
Merge pull request #3156 from graingert/fix-type-error-in-exc-handling
...
Fix TypeError in Exception handling
2016-03-17 08:51:33 -07:00
Daniel Nephin
b2b58402b3
Merge pull request #3154 from aanand/move-ip-docs-to-reference
...
Move ipv4_address/ipv6_address docs to reference section
2016-03-17 11:44:42 -04:00
Thomas Grainger
20bf05a6e3
Fix TypeError in Exception handling
...
Traceback (most recent call last):
File "/tmp/tmp.02tgGaAGtW/docker-compose/bin/docker-compose", line 11, in <module>
sys.exit(main())
File "/tmp/tmp.02tgGaAGtW/docker-compose/lib/python3.4/site-packages/compose/cli/main.py", line 68, in main
log_api_error(e)
File "/tmp/tmp.02tgGaAGtW/docker-compose/lib/python3.4/site-packages/compose/cli/main.py", line 89, in log_api_error
if 'client is newer than server' in e.explanation:
TypeError: 'str' does not support the buffer interface
Signed-off-by: Thomas Grainger <tagrain@gmail.com>
2016-03-17 15:13:01 +00:00
Aanand Prasad
7424938fc8
Move ipv4_address/ipv6_address docs to reference section
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-17 11:32:36 +00:00
Aanand Prasad
92d69b0cb6
Update Mac Engine install URL in error message
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-17 09:56:44 +00:00
Aanand Prasad
371ea479f5
Merge pull request #3075 from dnephin/reactive_logs
...
Display logs for new containers started after the command is run
2016-03-16 21:03:25 +00:00
Aanand Prasad
abddabfb0a
Merge pull request #3135 from dnephin/fix_down_idempotency
...
Make down idempotent, continue to remove resources if one is missing
2016-03-16 20:26:18 +00:00
Joffrey F
dd40331b44
Merge pull request #3102 from shin-/1477-a-modest-proposal
...
Add flag to up/down to remove orphaned containers
2016-03-16 10:58:15 -07:00
Aanand Prasad
1696506ff4
Merge pull request #3136 from dnephin/add_workdir_to_run
...
Add workdir to run
2016-03-16 12:45:00 +00:00
Joffrey F
20c29f7e47
Add flag to up/down to remove orphaned containers
...
Add --remove-orphans to CLI reference docs
Add --remove-orphans to bash completion file
Test orphan warning and remove_orphan option in up
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-15 16:11:49 -07:00
Daniel Nephin
52b791a264
Split off build_container_options() to reduce the complexity of run
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-15 15:29:24 -04:00
Simon van der Veldt
658803edf8
Add -w or --workdir to compose run to override workdir from commandline
...
Signed-off-by: Simon van der Veldt <simon.vanderveldt@gmail.com>
2016-03-15 15:28:32 -04:00
Daniel Nephin
bf96edfe11
Reduce the args of some functions by including presenters as part of the thread_args.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-15 15:15:00 -04:00
Daniel Nephin
e5529a89e1
Make down idempotent, continue to remove resources if one is missing.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-15 13:26:29 -04:00
Daniel Nephin
e8a93821d4
Fix race condition where a container stopping and starting again would cause logs to miss logs.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-15 13:17:11 -04:00
Daniel Nephin
8d9adc0902
Fix flaky log test by using container status, instead of boolean state.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-15 13:17:10 -04:00
Daniel Nephin
3f7e5bf768
Filter logs by service names.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-15 13:17:10 -04:00
Daniel Nephin
48ed68eeaa
Fix geneartors for python3.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-15 13:17:10 -04:00
Daniel Nephin
4312c93eae
Add an acceptance test to show logs behaves properly for stopped containers.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-15 13:17:10 -04:00
Daniel Nephin
4cad2a0c5f
Handle events for removed containers.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-15 13:17:10 -04:00
Daniel Nephin
44c1747127
Add tests for reactive log printing.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-15 13:17:10 -04:00
Daniel Nephin
65797558f8
Refactor log printing to support containers that are started later.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-15 13:17:10 -04:00
Aanand Prasad
94b1862579
Merge pull request #2679 from IlyaSkriblovsky/dependency-ordered-start-stop
...
Parallel up/start/stop
2016-03-15 11:51:44 +00:00
Ilya Skriblovsky
34de1f0a4c
Removed unused parallel.parallel_stop
...
Signed-off-by: Ilya Skriblovsky <IlyaSkriblovsky@gmail.com>
2016-03-14 22:56:58 +03:00
Ilya Skriblovsky
5df774bd10
Fixed testing error handling by up
...
Signed-off-by: Ilya Skriblovsky <IlyaSkriblovsky@gmail.com>
2016-03-14 22:55:42 +03:00
Ilya Skriblovsky
f933381a12
Dependency-ordered start/stop/up
...
Signed-off-by: Ilya Skriblovsky <IlyaSkriblovsky@gmail.com>
2016-03-14 22:55:42 +03:00
Aanand Prasad
e5cd869c61
Merge pull request #3095 from dnephin/refactor_command_dispatch
...
Refactor command dispatch and fix api version mismatch error
2016-03-14 16:18:29 +00:00
Aanand Prasad
9853b876af
Merge pull request #3101 from bfirsh/less-scary-swarm-compose-docs
...
Better Compose in production docs
2016-03-14 16:12:46 +00:00
Ben Firshman
1485a56c75
Better Compose in production docs
...
The Compose/Swarm integration has been working really well for
users, so it seems pretty safe to remove the scary warnings about
it not being ready.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-03-10 08:55:07 -08:00
Daniel Nephin
99d68be815
Merge pull request #3011 from mdaue/2804
...
Fix #2804 : Add ipv4 and ipv6 static addressing
2016-03-09 16:28:15 -08:00
Matt Daue
ee136446a2
Fix #2804 : Add ipv4 and ipv6 static addressing
...
- Added ipv4_network and ipv6_network to the networks section in the
service section for each configured network
- Added feature documentation
- Added unit tests
Signed-off-by: Matt Daue <mattdaue@gmail.com>
2016-03-09 18:37:52 -05:00
Daniel Nephin
8a86e204a0
Merge pull request #3063 from albers/completion-multiple-compose-files
...
add support for multiple compose files to bash completion
2016-03-09 11:12:34 -08:00
Joffrey F
7a30fc0983
Merge pull request #3089 from ltiao/patch-1
...
Fixed indentation level in example.
2016-03-09 10:56:50 -08:00
Joffrey F
7033042656
Merge pull request #3039 from dbonev/3020-build-arguments-object-syntax
...
Allowing null for build args
2016-03-09 10:55:05 -08:00
Daniel Nephin
7de9b08ca5
Merge pull request #3066 from shin-/3062-dont-log-noop-volume-create
...
Don't call create on existing volumes
2016-03-08 15:04:59 -08:00
Daniel Nephin
0a091055d2
Improve handling of connection errors and error messages.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-08 15:39:11 -05:00
Daniel Nephin
886328640f
Convert some cli tests to pytest.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-08 14:42:51 -05:00
Daniel Nephin
9f9dcc098a
Make TopLevelCommand use the project field.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-08 14:36:53 -05:00
Daniel Nephin
53bea8a720
Refactor command dispatch to improve unit testing and support better error messages.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-08 14:23:27 -05:00
Daniel Nephin
a6649b308e
Merge pull request #3094 from aanand/fix-version-in-docs-example
...
Fix version in aliases example
2016-03-08 11:18:45 -08:00
Aanand Prasad
e700d7ca6a
Fix version in docs example
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-08 18:15:18 +01:00
wenchma
000eaee16a
Update image format for service conf reference
...
Signed-off-by: Wen Cheng Ma <wenchma@cn.ibm.com>
2016-03-08 17:14:38 +08:00
Louis Tiao
88a719b4b6
Fixed indentation level in example.
...
Signed-off-by: Louis Tiao <louistiao@gmail.com>
2016-03-08 15:53:55 +11:00
Joffrey F
d2b065e615
Don't raise ConfigurationError for volume driver mismatch
...
when driver is unspecified
Add testcase
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-07 18:07:41 -08:00
Joffrey F
698998c410
Don't call create on existing volumes
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-03-07 18:00:27 -08:00
Dimitar Bonev
81b7fba33e
Allowing null for build args
...
Signed-off-by: Dimitar Bonev <dimitar.bonev@gmail.com>
2016-03-05 15:57:06 +02:00
Aanand Prasad
9e242cdc75
Merge pull request #3032 from dnephin/multiple_files_from_env_var
...
Support multiple files in COMPOSE_FILE env var
2016-03-03 17:23:22 +00:00
Aanand Prasad
4ae71f41dd
Merge pull request #2832 from aanand/refactor-cli-unit-tests
...
Refactor CLI initialization and unit tests
2016-03-02 16:10:44 -08:00
Daniel Nephin
53a3d14046
Support multiple files in COMPOSE_FILE env var.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-02 18:47:58 -05:00
Aanand Prasad
20caf02bf6
Create real Project objects in CLI unit tests
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-02 15:11:34 -08:00
Aanand Prasad
4644f2c0f9
Remove environment-overriding unit test for 'run'
...
There's already an acceptance test for it
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-02 15:11:32 -08:00
Aanand Prasad
575b48749d
Remove unused global_options arg from dispatch()
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-02 15:09:48 -08:00
Aanand Prasad
2c75a8fdf5
Extract helper methods for building config objects from dicts
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-02 15:09:48 -08:00
Aanand Prasad
f75408923e
Merge pull request #3053 from dnephin/handle_booleans_in_mappings
...
Don't allow booleans for mapping types
2016-03-02 15:04:20 -08:00
Aanand Prasad
3f98c0716e
Merge pull request #3052 from dnephin/merge_v1_logging
...
Fix merging of logging options in v1 config
2016-03-02 15:03:36 -08:00
Aanand Prasad
f84ebf9b18
Merge pull request #3048 from dnephin/osx_bin_from_travis
...
Build OSX binary on Travis
2016-03-02 15:02:57 -08:00
Aanand Prasad
1655be6c5b
Merge pull request #2601 from dnephin/dont_build_on_up
...
Only build as part of `up` if `--build` flag is set
2016-03-02 15:02:18 -08:00
Daniel Nephin
e1b87d7be0
Update reference docs for the new flag.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-02 15:32:51 -05:00
Daniel Nephin
b7fb3a6d9b
Add --build flag for up and create
...
Also adds a warning when up builds an image without the --build flag
so that users know it wont happen on the next up.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-02 15:32:51 -05:00
Harald Albers
0049743615
add support for multiple compose files to bash completion
...
Since 1.6.0, Compose supports multiple compose files specified with `-f`.
These need to be passed to the docker invocations done by the
completion.
Signed-off-by: Harald Albers <github@albersweb.de>
2016-03-02 21:18:33 +01:00
Aanand Prasad
3f3c05e465
Merge pull request #3049 from aanand/clarify-depends-on
...
Clarify depends_on logic
2016-03-02 11:59:06 -08:00
Aanand Prasad
aa7b862f4c
Clarify depends_on logic
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-03-02 10:29:24 -08:00
Aanand Prasad
0b3561a7d5
Merge pull request #2720 from seguins/2227-improvements-logs
...
Add flags on logs
2016-03-01 17:41:31 -08:00
Aanand Prasad
af12c78915
Merge pull request #3056 from dnephin/fix_shutdown_errors
...
Fix signal handling with pyinstaller.
2016-03-01 14:56:27 -08:00
Daniel Nephin
ed4473c849
Fix signal handling with pyinstaller.
...
Raise a ShutdownException instead of a KeyboardInterupt when a thread.error
is caught. This thread.error is only raised when run from a pyinstaller
binary (for reasons unknown).
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-01 16:39:43 -05:00
Stéphane Seguin
038da4eea3
Logs args of LogPrinter as a dictionary
...
Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
2016-03-01 20:24:15 +01:00
Stéphane Seguin
9b36dc5c54
Add --tail flag as option on logs.
...
Closes #265
Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
2016-03-01 20:23:46 +01:00
Stéphane Seguin
d9b4286f91
Add -t, --timestamps flag as option on logs.
...
Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
2016-03-01 20:23:46 +01:00
Stéphane Seguin
82632098a3
Add -f, --follow flag as option on logs.
...
Closes #2187
Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
2016-03-01 20:23:43 +01:00
Aanand Prasad
7684604830
Merge pull request #3023 from londoncalling/fix-note-3019
...
WIP: updated note format for dockerfile per Aanand's comments on PR #…
2016-03-01 11:11:55 -08:00
Daniel Nephin
18510b4024
Don't allow booleans for mapping types.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-01 11:57:35 -05:00
Daniel Nephin
b726f508a6
Fix merging of logging options in v1 config.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-01 11:43:26 -05:00
Daniel Nephin
04877d47aa
Build osx binary on travis and upload to bintray.
...
This requires a change to the make-branch script, to have it push the bump branch
to the docker remote instead of the user remote. Pushing to the docker remote
triggers the travis build, which builds the binary.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-03-01 11:34:54 -05:00
Aanand Prasad
fc99c7ee19
Merge pull request #2584 from mjgpy3/patch-1
...
Update `volumes_from` docs to state default
2016-02-29 15:37:46 -08:00
Aanand Prasad
210856179d
Merge pull request #3036 from JesusTinoco/master
...
Display in the log output the name of those containers created using …
2016-02-29 15:17:14 -08:00
Daniel Nephin
f5ce31d43e
Merge pull request #3024 from aanand/update-build-image-docs
...
Update docs about using build and image together
2016-02-29 14:03:54 -08:00
Daniel Nephin
4db1fef58c
Merge pull request #3022 from aanand/update-build-image-extends-note
...
Update note about build + image with extends
2016-02-29 14:03:28 -08:00
Daniel Nephin
8d24af92e0
Merge pull request #3030 from aanand/document-startup-order-workarounds
...
Document ways to make services wait for dependencies
2016-02-29 13:01:32 -08:00
Aanand Prasad
97c9c12660
Merge pull request #2023 from TomasTomecek/593-implement-exec
...
implement exec
2016-02-29 12:21:41 -08:00
Aanand Prasad
6b947ee478
Document ways to make services wait for dependencies
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-29 11:24:58 -08:00
Jesus
6bfb23baaa
Display containers name when scale a container
...
Display in the log output the name of those containers created using the scale command and
change the test_scale_with_api_error test to support the containers name when scale
Signed-off-by: Jesus Rodriguez Tinoco <jesus.rodriguez.tinoco@gmail.com>
2016-02-29 20:19:03 +01:00
Tomas Tomecek
d28c5dda92
implement exec
...
Resolves #593
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2016-02-29 10:50:09 +01:00
Aanand Prasad
62fb6b99eb
Update FAQ regarding long stop times
...
- It happens on recreate, not just stop
- We now support `stop_signal`, which can help in some cases
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-26 14:34:44 -08:00
Aanand Prasad
1502c5a14d
Merge pull request #3025 from aanand/release-notes-1.6.2
...
Add release notes for 1.6.2
2016-02-26 10:36:26 -08:00
Aanand Prasad
c72e9b3843
Add release notes for 1.6.2
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-25 17:55:04 -08:00
Aanand Prasad
5be48ba1ed
Update docs about using build and image together
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-25 17:19:58 -08:00
Aanand Prasad
adb8de367e
Merge pull request #2388 from dnephin/fix_long_lines
...
Wrap long lines
2016-02-25 16:52:33 -08:00
Aanand Prasad
42f4d814d7
Merge pull request #2880 from dnephin/merge_jsonschemas
...
Merge jsonschemas to a single schema file per version
2016-02-25 16:51:56 -08:00
Victoria Bialas
5cc420e727
WIP: updated note format for dockerfile per Aanand's comments on PR #3019
...
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
2016-02-25 16:47:46 -08:00
Aanand Prasad
c2c8c41ef2
Merge pull request #2608 from dnephin/more_cyclomatic_reduction
...
More cyclomatic complexity reduction
2016-02-25 16:41:49 -08:00
Aanand Prasad
2cd1b94dd3
Update note about build + image with extends
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-25 15:15:18 -08:00
Aanand Prasad
5111d0862c
Merge pull request #2672 from dnephin/organize_scripts
...
Organize scripts into directories
2016-02-25 14:09:03 -08:00
Daniel Nephin
11dc720752
Move test scripts to script/test.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-24 16:24:13 -08:00
Daniel Nephin
ec6bb1660d
Move run scripts to script/run
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-24 16:24:13 -08:00
Daniel Nephin
a87d482a3b
Move all build scripts to script/build
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-24 16:24:13 -08:00
Daniel Nephin
dc3a5ce624
Refactor config validation to support constraints in the same jsonschema
...
Reworked the two schema validation functions to read from the same schema but
use different parts of it. Error handling is now split as well by the
schema that is being used to validate.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-24 16:20:17 -08:00
Daniel Nephin
43ecf8793a
Address old TODO, and small refactor of container name logic in service.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-24 16:19:38 -08:00
Daniel Nephin
cdda616d6b
Reduce complexity of sort_service_dicts.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-24 16:19:38 -08:00
Daniel Nephin
84a1822e40
Reduce complexity of _get_container_create_options
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-24 16:19:38 -08:00
Daniel Nephin
be554c3a74
Merge v1 config jsonschemas into a single file.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-24 15:59:10 -08:00
Daniel Nephin
adb64ef8d5
Merge v2 config jsonschemas into a single file.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-24 15:59:10 -08:00
Daniel Nephin
38dd342b7b
Merge pull request #3009 from dnephin/update_release_notes
...
Add release notes for 1.6.1
2016-02-23 16:02:18 -08:00
Joffrey F
f48d321b5b
Merge pull request #3008 from shin-/update_dockerpy_version
...
Update docker-py version in requirements to 1.7.2
2016-02-23 15:41:11 -08:00
Daniel Nephin
49ef8a271d
Add release notes for 1.6.1
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-23 15:13:01 -08:00
Daniel Nephin
0467bc3dcf
Merge pull request #2998 from londoncalling/docs-wordpress-example
...
updated Wordpress example to be easier to follow, added/updated images
2016-02-23 15:10:11 -08:00
Joffrey F
97bbee19b7
Update docker-py version in requirements to 1.7.2
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-23 14:55:06 -08:00
Victoria Bialas
e6797e1166
updated Wordpress example to be easier to follow, added/updated images
...
docs update per Mary's comments on the PR
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
2016-02-23 11:59:19 -08:00
Daniel Nephin
f2ccbeff76
Merge pull request #2997 from dnephin/fix_env_var_without_value
...
Fix env var without value
2016-02-23 11:58:30 -08:00
Daniel Nephin
d451578152
Make environment variables without a value the same as docker-cli.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-23 11:14:59 -08:00
Daniel Nephin
4b04280db8
Revert "Change special case from '_', None to ()"
...
This reverts commit 677c50650c .
Revert "Modify service_test.py::ServiceTest::test_resolve_env to reflect new behavior"
This reverts commit 0019037712 .
Revert "Mangle the tests. They pass for better or worse!"
This reverts commit 7ab9509ce6 .
Revert "If an env var is passthrough but not defined on the host don't set it."
This reverts commit 6540efb3d3 .
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-23 11:13:57 -08:00
Daniel Nephin
1d67e6f0f0
Merge pull request #2995 from dnephin/fix_warning_about_bools
...
Fix warning about boolean values
2016-02-23 11:11:54 -08:00
Daniel Nephin
ba799d2e86
Merge pull request #2996 from dnephin/fix_abort_on_container_exit
...
Fix abort on container exit
2016-02-23 10:52:12 -08:00
Joffrey F
a7fd578b14
Merge pull request #2962 from shin-/2960-volume-driver
...
Update docs for volume_driver option
2016-02-22 17:23:07 -08:00
Joffrey F
176b966486
Update documentation for volume_driver option.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-22 16:51:33 -08:00
Daniel Nephin
7e3d756a18
Merge pull request #2992 from shin-/update_dockerpy_version
...
Use docker-py 1.7.1
2016-02-22 16:50:36 -08:00
Daniel Nephin
15b2094bad
Stop other containers if the flag is set.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-22 16:48:46 -08:00
Richard Bann
bf2bf21720
Add failing test for --abort-on-container-exit
...
Handle --abort-on-container-exit. Fixes #2940
Signed-off-by: Richard Bann <richardbann@gmail.com>
2016-02-22 16:39:40 -08:00
Daniel Nephin
0a06d827fa
Fix warning about boolean values.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-22 14:56:01 -08:00
Joffrey F
ba39d4cc77
Use docker-py 1.7.1
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-22 12:56:54 -08:00
Daniel Nephin
d5514965d5
Merge pull request #2975 from dnephin/fix_crash_on_none_in_config
...
Fix validation message when there are multiple nested oneOf validations.
2016-02-19 15:53:26 -05:00
Daniel Nephin
02535f0cf1
Fix validation message when there are multiple ested oneOf validations.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-19 14:22:55 -05:00
Daniel Nephin
c7ceacfeae
Merge pull request #2948 from dnephin/validate_top_level
...
Validate that each section of the config is a mapping
2016-02-19 13:41:50 -05:00
Aanand Prasad
bed0cfeb32
Merge pull request #2807 from aanand/swarm-doc
...
Update Swarm integration guide and make it an official part of the docs
2016-02-19 10:25:28 -08:00
Daniel Nephin
0d218c34c7
Make config validation error messages more consistent.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-19 13:12:57 -05:00
Daniel Nephin
4b2a666231
Validate that each section of the config is a mapping before running interpolation.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-19 12:38:52 -05:00
Aanand Prasad
520c695bf4
Update Swarm integration guide and make it an official part of the docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-19 09:32:43 -08:00
Aanand Prasad
1f2c2942d7
Merge pull request #2963 from londoncalling/docs-alias-repr2829
...
corrected description of network aliases, added real-world example pe…
2016-02-19 09:26:40 -08:00
Victoria Bialas
753c953870
Merge branch 'docs-alias-repr2829' of github.com:londoncalling/compose into docs-alias-repr2829
...
Fixed file format of one word, legacy, adding signature to that commit.
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
2016-02-18 18:32:44 -08:00
Victoria Bialas
eb4a98c0d1
corrected description of network aliases, added real-world example per #2907
...
copyedit to make show as file format
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
2016-02-18 18:05:52 -08:00
Victoria Bialas
630a50295b
copyedit to make show as file format
...
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
2016-02-18 18:05:30 -08:00
Victoria Bialas
068a56eb97
corrected description of network aliases, added real-world example per #2907
...
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
2016-02-18 17:49:28 -08:00
Joffrey F
5fc0df4be2
Merge pull request #2907 from shin-/2829-net-alias
...
Allow user to specify custom network aliases
2016-02-18 16:01:30 -08:00
Joffrey F
0cb8ba3775
Use modern set notation in _get_aliases
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-18 15:28:12 -08:00
Joffrey F
7152f7ea76
Handle mismatched network formats in config files
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-18 15:24:41 -08:00
Joffrey F
825a0941f0
Network aliases are now part of the network dictionary
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-18 15:23:47 -08:00
Joffrey F
4b99b32ffb
Add v2_only decorator to network aliases test
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-18 15:23:47 -08:00
Joffrey F
41e399be98
Fix network list serialization in py3
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-18 15:23:47 -08:00
Joffrey F
7801cfc5d1
Document network_aliases config
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-18 15:23:47 -08:00
Joffrey F
633e349ab9
Test network_aliases feature
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-18 15:23:46 -08:00
Joffrey F
2b5d3f51cb
Allow user to specify custom network aliases
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-18 15:23:46 -08:00
Joffrey F
d3a95c2892
Merge pull request #2938 from shin-/2927-buildargs-types
...
Constraint build argument types. Numbers are cast into strings.
2016-02-18 15:07:09 -08:00
Joffrey F
93a02e497d
Apply driver_opts processing to network configs
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-18 10:53:40 -08:00
Aanand Prasad
85ba08bb13
Merge pull request #2932 from AvdN/patch-1
...
reset colors after warning
2016-02-18 09:25:02 -08:00
Aanand Prasad
50dc27aed7
Merge pull request #2913 from clkao/container-install-fixes
...
A few fixes to the container-based install, which is broken on:
2016-02-18 09:24:10 -08:00
Aanand Prasad
bd72670947
Merge pull request #2894 from dnephin/only_set_constraint_with_volumes
...
Only set a container affinity if there are volumes to copy over
2016-02-18 08:46:29 -08:00
Daniel Nephin
4f7530c480
Only set a container affinity if there are volumes to copy over.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-17 22:35:14 -05:00
Joffrey F
1952b52392
Constraint build argument types. Numbers are cast into strings
...
Numerical driver_opts are also valid and typecast into strings.
Additional config tests.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-17 11:53:29 -08:00
Joffrey F
706062ad16
Merge pull request #2934 from dnephin/fix_volume_copy
...
Fix copying of volumes by using the name of the volume
2016-02-17 11:52:18 -08:00
Daniel Nephin
d4f2f54cf8
Merge pull request #2936 from dnephin/update_docs_for_161
...
Update docs, fix broken link, use v2 compose file format
2016-02-17 13:34:39 -05:00
Daniel Nephin
4a09da43ea
Fix copying of volumes by using the name of the volume instead of the host path.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-17 13:34:14 -05:00
Joffrey F
89108f2a0f
Merge pull request #2939 from AvdN/patch-2
...
for 1.6.0 the version value needs to be a string
2016-02-17 09:42:41 -08:00
Anthon van der Neut
1512793b30
for 1.6.0 the version value needs to be a string
...
After conversion a file would immediately not load in docker-compose 1.6.0 with the message:
ERROR: Version in "./converted.yml" is invalid - it should be a string.
Signed-off-by: Anthon van der Neut anthon@mnt.org
Signed-off-by: Anthon van der Neut <a.van.der.neut@ruamel.eu>
2016-02-17 10:01:16 +01:00
Daniel Nephin
471264239f
Update guides to use v2 config format.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-16 16:43:26 -05:00
Daniel Nephin
4de12ad7a1
Update link to docker volume create docs.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-16 16:43:22 -05:00
Joffrey F
ec3af7d491
Merge pull request #2920 from londoncalling/docs-examples
...
update to description of files generated from examples, which are no …
2016-02-16 11:51:14 -08:00
Victoria Bialas
8af0a0f85b
update to description of files generated from examples, which are no longer owned by root w/new release
...
updated descriptions of changing file ownership and images per Seb's comments
fixed line wraps
fixed line breaks per Joffrey's comments
Signed-off-by: Victoria Bialas <victoria.bialas@docker.com>
2016-02-16 11:34:59 -08:00
moxiegirl
b8c35e1298
Merge pull request #2884 from moxiegirl/remove-tutorials
...
Updating Dockerfile
2016-02-16 08:09:49 -08:00
Anthon van der Neut
69d0154718
reset colors after warning
...
If a warning is shown, and you happen to have no color setting in your (bash) prompt, the \033[37m setting, stays active. With the message hardly readable (light grey on my default light yellow background), that means the prompt is barely visible and you need to do `tput reset`.
Would probably be better if the background color was set as well in case you have dark on light theme by default in your terminal.
Signed-off-by: Anthon van der Neut <a.van.der.neut@ruamel.eu>
2016-02-16 15:42:43 +01:00
Chia-liang Kao
2204b642ef
Quote argv as they are
...
Signed-off-by: Chia-liang Kao <clkao@clkao.org>
2016-02-14 01:57:04 +08:00
Chia-liang Kao
e6a675f338
Detect -t and -i separately
...
Signed-off-by: Chia-liang Kao <clkao@clkao.org>
2016-02-14 01:56:26 +08:00
Chia-liang Kao
dd55415d4f
Don't mount pwd if it is /
...
Signed-off-by: Chia-liang Kao <clkao@clkao.org>
2016-02-14 01:56:17 +08:00
Daniel Nephin
74dc1b1411
Merge pull request #2893 from shin-/2833-run-dependencies
...
Bring up all dependencies when running a single service.
2016-02-12 16:33:01 -05:00
Daniel Nephin
16200b0bce
Merge pull request #2903 from shin-/2899-invalid-driver-opts
...
driver_opts can only be of type string
2016-02-12 14:41:05 -05:00
Joffrey F
a8fda480e3
driver_opts can only be of type string
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-12 10:51:11 -08:00
Joffrey F
367fabdbfa
Bring up all dependencies when running a single service.
...
Added test for running a depends_on service
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-12 09:46:10 -08:00
Joffrey F
e1d67ad68a
Merge pull request #2882 from shin-/2715-old-server-error
...
Detailed error message when daemon version is too old.
2016-02-11 16:03:20 -08:00
Daniel Nephin
b6812b8600
Merge pull request #2877 from dnephin/fix_merging_build
...
Fix build section without context
2016-02-11 18:53:23 -05:00
Joffrey F
79f993f52c
Detailed error message when daemon version is too old.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-11 15:20:32 -08:00
Joffrey F
77cf67ba8a
Merge pull request #2888 from dnephin/upgrade_pyinstaller
...
Upgrade pyinstaller.
2016-02-11 12:11:57 -08:00
Joffrey F
5eb45a31e6
Merge pull request #2883 from shin-/2849-log-volume-creation
...
Add logging when initializing a volume.
2016-02-11 12:11:28 -08:00
Joffrey F
e225f12551
Add logging when initializing a volume.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-02-11 11:40:22 -08:00
Joffrey F
830a9fc118
Merge pull request #2889 from dnephin/fix_test_broken_on_master
...
Shm_size requires docker 1.10
2016-02-11 11:18:45 -08:00
Daniel Nephin
532dffd688
Fix build section without context.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-11 14:12:02 -05:00
Daniel Nephin
1e7dd2e740
Upgrade pyinstaller.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-11 13:50:41 -05:00
Daniel Nephin
740329a131
Shm_size requires docker 1.10.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-11 13:50:23 -05:00
Daniel Nephin
7bae4cdbb2
Merge pull request #2875 from aanand/fix-version-in-install-guide
...
Fix version in install guide
2016-02-11 12:43:51 -05:00
Aanand Prasad
23ab2c7e44
Merge pull request #2878 from dnephin/merge_build_args
...
Merge build.args when merging services
2016-02-11 17:41:41 +00:00
Aanand Prasad
b8f7bbb84e
Merge pull request #2830 from nubs/master
...
Add support for shm_size. Fixes #2823 .
2016-02-11 17:34:44 +00:00
Joffrey F
a5d95612e0
Merge pull request #2881 from humitos/patch-1
...
Typo fixed
2016-02-11 09:28:08 -08:00
Mary Anthony
643166ae98
Updating Dockerfile
...
Signed-off-by: Mary Anthony <mary@docker.com>
2016-02-10 20:47:15 -08:00
Manuel Kaufmann
ac14642d94
Typo fixed
...
Signed-off-by: Manuel Kaufmann <humitos@gmail.com>
2016-02-10 19:00:17 -05:00
Spencer Rinehart
ab40d389d0
Fix sorting of DOCKER_START_KEYS.
...
Make sure it's sorted!
Signed-off-by: Spencer Rinehart <anubis@overthemonkey.com>
2016-02-10 15:25:18 -06:00
Spencer Rinehart
5e6dc3521c
Add support for shm_size. Fixes #2823 .
...
shm_size controls the size of /dev/shm in the container and requires
Docker 1.10 or newer (API version 1.22). This requires docker-py 1.8.0
(docker/docker-py#923 ).
Similar to fields like `mem_limit`, `shm_size` may be specified as
either an integer or a string (e.g., `64M`).
Updating docker-py to the master branch in order to get the unreleased
dependency on `shm_size` there in place.
Signed-off-by: Spencer Rinehart <anubis@overthemonkey.com>
2016-02-10 15:25:18 -06:00
Daniel Nephin
37564a73c3
Merge build.args when merging services.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-10 13:54:40 -05:00
Aanand Prasad
7b5bad6050
Merge pull request #2851 from cr7pt0gr4ph7/2839-fix-networks-merging
...
Fix merge behavior for 'networks' and 'network_mode'.
2016-02-10 17:51:01 +00:00
Aanand Prasad
c43b25b0cf
Merge pull request #2827 from loic/patch-1
...
Fixed typo in compose-file.md
2016-02-10 15:58:54 +00:00
Aanand Prasad
ab9d82b400
Merge pull request #2842 from michael-k/links
...
Fixed broken links on pypi
2016-02-10 15:58:39 +00:00
Aanand Prasad
88b11afde2
Merge pull request #2858 from dnephin/fix_upgrading_url_in_changelog
...
Fix upgrading url in changelog
2016-02-10 15:58:02 +00:00
Aanand Prasad
28689a57a7
Merge pull request #2871 from yograterol/patch-1
...
Typo into the doc with `networks` in yaml
2016-02-10 15:57:45 +00:00
Aanand Prasad
ab6e07da7d
Fix version in install guide
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-10 15:56:50 +00:00
Yohan Graterol
59a2920758
Typo into the doc with networks in yaml
...
Signed-off-by: Yohan Graterol <yohangraterol92@gmail.com>
2016-02-09 18:45:04 -05:00
Daniel Nephin
6f06b3bd30
Merge pull request #2853 from dnephin/fix_short_id_alias
...
Use 12 characters for the short id
2016-02-09 14:56:24 -05:00
Michael Käufl
481caa8e48
Used absolute links in readme
...
This prevents links being broken on pypi
(e.g. https://pypi.python.org/pypi/docs/index.md#features )
Signed-off-by: Michael Käufl <docker-compose@c.michael-kaeufl.de>
2016-02-09 13:29:14 +01:00
Daniel Nephin
63870fbccd
Fix upgrading url.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-08 18:15:21 -05:00
cr7pt0gr4ph7
582de19a5a
Simplify unit tests in config/config_test.py by using class variables instead of methods for parametrizing tests.
...
Signed-off-by: cr7pt0gr4ph7 <cr7pt0gr4ph7@gmail.com>
2016-02-08 21:57:15 +01:00
Daniel Nephin
859cc2348c
Merge pull request #2744 from aanand/pytest-ini
...
Add pytest.ini
2016-02-08 14:19:40 -05:00
Joffrey F
fdf4a2e89e
Merge pull request #2734 from jrabbit/empty-env-var-2359
...
Empty env var #2359
2016-02-08 11:17:54 -08:00
Daniel Nephin
421981e7d2
Use 12 characters for the short id to match docker and fix backwards compatibility.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-08 12:18:48 -05:00
Lukas Waslowski
5bd88f634f
Handle the 'network_mode' key when merging multiple compose files.
...
Fixes docker/compose#2840 .
Signed-off-by: Lukas Waslowski <cr7pt0gr4ph7@gmail.com>
2016-02-08 15:33:26 +01:00
Lukas Waslowski
5a3a10d43b
Correctly merge the 'services/<service>/networks' key in the case of multiple compose files.
...
Fixes docker/compose#2839 .
Signed-off-by: Lukas Waslowski <cr7pt0gr4ph7@gmail.com>
2016-02-08 15:17:21 +01:00
Lukas Waslowski
e929086c49
Separate MergePortsTest from MergeListsTest and add MergeNetworksTest.
...
Signed-off-by: Lukas Waslowski <cr7pt0gr4ph7@gmail.com>
2016-02-08 14:29:03 +01:00
jrabbit
677c50650c
Change special case from '_', None to ()
...
Signed-off-by: jrabbit <jackjrabbit@gmail.com>
2016-02-06 02:54:06 -05:00
Aanand Prasad
8acb5e17e8
Add pytest section to tox.ini
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-05 13:07:01 +00:00
Loïc Bistuer
b635647105
Fixed typo in compose-file.md
...
Signed-off-by: Loïc Bistuer <loic.bistuer@gmail.com>
2016-02-05 09:50:22 +07:00
Daniel Nephin
57fc85b457
Wrap long lines and restrict lines to 105 characters.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-04 19:05:39 -05:00
Daniel Nephin
28e652daec
Merge pull request #2826 from aanand/bump-1.7.0dev
...
Bump 1.7.0dev
2016-02-04 18:56:27 -05:00
Aanand Prasad
869e815213
Bump 1.7.0dev
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-04 23:46:41 +00:00
Aanand Prasad
422ff623b4
Merge pull request #2819 from bfirsh/improve-names-in-compose-file-2-example
...
Improve names in Compose file 2 example
2016-02-04 19:42:22 +00:00
Aanand Prasad
c2db1a24bf
Merge pull request #2822 from aanand/update-docker-py-and-dockerpty
...
Update docker-py and dockerpty
2016-02-04 19:40:41 +00:00
Aanand Prasad
be236d8801
Update docker-py and dockerpty
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-04 19:16:01 +00:00
Aanand Prasad
93426cec4c
Merge pull request #2824 from dnephin/docs_version_is_a_string
...
Update docs for version being a string
2016-02-04 17:20:32 +00:00
Daniel Nephin
a7c2987991
Update docs for version being a string.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-04 12:19:43 -05:00
Aanand Prasad
386974f831
Merge pull request #2814 from nubs/patch-1
...
Fix example formatting for depends_on.
2016-02-04 15:56:27 +00:00
Daniel Nephin
80d02e84e2
Merge pull request #2808 from aanand/connect-before-start
...
Connect container to networks before starting it
2016-02-03 23:49:56 -05:00
Ben Firshman
bdddbe3a73
Improve names in Compose file 2 example
...
Just makes it a bit clearer what's going on.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2016-02-03 17:42:57 -08:00
Spencer Rinehart
f612bc98d9
Fix example formatting for depends_on.
...
Markdown was acting against expectations here by merging the example indented YAML into the previous list item instead of treating it as a code block.
I decided that a better way of handling this would be to add a "Simple example:" line that is also used elsewhere in this file. It resets the markdown indentation in a way that works.
Signed-off-by: Spencer Rinehart <anubis@overthemonkey.com>
2016-02-03 14:36:46 -06:00
Daniel Nephin
89c5b800e6
Merge pull request #2782 from dbonev/2772-compose-project-name-empty
...
Falling back to default project name on empty COMPOSE_PROJECT_NAME
2016-02-02 20:37:38 -05:00
Sven Dowideit
bd1c8973ab
Merge pull request #2809 from moxiegirl/fixing-dup-identifier
...
Fixing duplicate identifiers for 1.10
2016-02-02 15:43:09 -08:00
Mary Anthony
a713447e0b
Fixing duplicate identifiers
...
Signed-off-by: Mary Anthony <mary@docker.com>
2016-02-02 12:04:13 -08:00
Aanand Prasad
2651c00f0c
Connect container to networks before starting it
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-02 19:31:49 +00:00
Daniel Nephin
4c4e94bc19
Merge pull request #2785 from dnephin/depends_on_with_extends
...
Fix list options when used with extends and multiple files
2016-02-02 13:36:46 -05:00
Daniel Nephin
1cb67b781c
Merge pull request #2777 from dnephin/reorder_docs
...
Re-order docs in menu, fix menu title capitalization, cleanup command reference
2016-02-02 11:26:26 -05:00
Daniel Nephin
c290e560cb
Merge pull request #2786 from dnephin/refactor_project
...
Fix a few bugs around networking and project initilization
2016-02-02 11:19:34 -05:00
Aanand Prasad
7a197e5a69
Merge pull request #2802 from dnephin/appveyor_to_bintray_deploy
...
Deploying to bintray from appveyor using the new bintray support
2016-02-02 16:13:07 +00:00
Daniel Nephin
c81cc24e72
Merge pull request #2806 from aanand/run-tests-with-tty
...
Run test containers in TTY mode
2016-02-02 10:56:21 -05:00
Daniel Nephin
3d3388d59b
Extract volume init and removal from project.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-02 10:53:04 -05:00
Daniel Nephin
e551988616
Include networks in the config_hash.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-02 10:52:03 -05:00
Daniel Nephin
0810eeba10
Don't initialize networks that aren't used by any services.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-02 10:52:03 -05:00
Daniel Nephin
8e838968fe
Refactor project network initlization.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-02 10:51:31 -05:00
Daniel Nephin
3ec87adccc
Update merge docs with depends_on, and correction about how links and volumes_from are merged.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-02 10:49:43 -05:00
Daniel Nephin
e32863f89e
Make links unique-by-alias when merging
...
Factor out MergeDict from merge_service_dicts to reduce complexity below limit.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-02 10:48:47 -05:00
Daniel Nephin
bf6a5d3e49
Fix merging of lists with multiple files.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-02 10:48:18 -05:00
Ryan Taylor Long
c70c72f49a
Add depends_on to ALLOWED_KEYS
...
This ensures and already existing `depends_on` is not deleted when the service on which it is defined also employs `extends`.
Signed-off-by: Ryan Taylor Long <ryan@rtlong.com>
2016-02-02 10:48:18 -05:00
Daniel Nephin
7b03de7d01
Move command reference to overview.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-02 10:46:52 -05:00
Daniel Nephin
cf24c36c55
Rename the old environment variable page to link environment variables.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-02 10:46:29 -05:00
Daniel Nephin
2df5593e8f
Cleanup command-line reference docs by renaming overview to envvars.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-02 10:46:28 -05:00
Daniel Nephin
5e30f089e3
Use the same capitalization for all menu items in the docs.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-02 10:46:28 -05:00
Daniel Nephin
4f92004d9a
Re-order compose docs so that quickstart guides come before other documentation.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-02 10:46:28 -05:00
Aanand Prasad
60a5b39f6f
Merge pull request #2783 from aanand/fix-validation-v2
...
Fix validation and version checking
2016-02-02 15:19:50 +00:00
Aanand Prasad
1152c5b25b
Tweak and test warning shown when version is a dict
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-02 13:58:34 +00:00
Aanand Prasad
ef8db3650a
Improve error messages for invalid versions
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-02 13:58:34 +00:00
Aanand Prasad
aeef61fcd8
Make 'version' a string
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-02 13:58:34 +00:00
Aanand Prasad
a8de582425
Remove redundant check - self.config should never be None
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-02 13:47:44 +00:00
Aanand Prasad
4ac004059a
Normalise/fix config field designators in validation messages
...
- Instead of "Service 'web' configuration key 'image'", just say
"web.image"
- Fix the "Service 'services'" bug in the v2 file format
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-02 13:47:43 +00:00
Aanand Prasad
d40bc6e4a0
Convert validation error tests to pytest style
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-02 13:47:43 +00:00
Aanand Prasad
e8756905ba
Run test containers in TTY mode
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-02-02 13:31:28 +00:00
Daniel Nephin
6928c24323
Deploying to bintray from appveyor using the new bintray support.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-02-01 16:44:45 -05:00
Daniel Nephin
9c6c50c607
Merge pull request #2796 from mustafau/patch-1
...
Update link to "Common Use Cases" title
2016-02-01 11:24:18 -05:00
Aanand Prasad
1816147d57
Merge pull request #2740 from albers/completion-create
...
bash completion for `docker-compose create`
2016-02-01 15:44:07 +00:00
Aanand Prasad
c1cb75cc4f
Merge pull request #2741 from sdurrheimer/zsh-completion-create-command
...
Add zsh completion for 'docker-compose create'
2016-02-01 15:43:47 +00:00
Aanand Prasad
b912b306f1
Merge pull request #2784 from dnephin/signal_race
...
Fix race condition with up and setting signal handlers
2016-02-01 15:15:59 +00:00
Mustafa Ulu
0b7877d82a
Update link to "Common Use Cases" title
...
It is now under overview.md
Signed-off-by: Mustafa Ulu <mustafau@sabanciuniv.edu>
2016-02-01 00:17:18 +02:00
Dimitar Bonev
34ccb90d7e
Falling back to default project name when COMPOSE_PROJECT_NAME is set to empty
...
Signed-off-by: Dimitar Bonev <dimitar.bonev@gmail.com>
2016-01-30 10:14:45 +02:00
Daniel Nephin
b4868d0259
Fix race condition with up and setting signal handlers.
...
Also print stdout on wait_for_container().
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-29 13:04:04 -05:00
Daniel Nephin
40d69675f3
Merge pull request #2745 from albers/completion-services
...
Fix computation of service lists in bash completion
2016-01-28 16:08:46 -05:00
Daniel Nephin
517d3a581c
Merge pull request #2768 from aanand/fix-make-branch
...
Fixes to make-branch script
2016-01-28 15:05:21 -05:00
Daniel Nephin
883e45626f
Merge pull request #2706 from dnephin/dont_copy_host_volumes
...
Don't copy host volumes on recreate
2016-01-28 15:02:53 -05:00
Aanand Prasad
12af889e26
Merge pull request #2737 from moxiegirl/new-navigation
...
New navigation for 1.10 release
2016-01-28 12:38:28 +00:00
Mary Anthony
3fc72038c5
New navigation for 1.10 release
...
Updating with Joffrey's comments
Signed-off-by: Mary Anthony <mary@docker.com>
2016-01-27 12:05:56 -08:00
Aanand Prasad
634ae7daa5
Let the user specify any repo as their fork
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-27 15:40:28 +00:00
Aanand Prasad
3547c55523
Default to vim if EDITOR is not set
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-27 15:40:28 +00:00
Aanand Prasad
8c250e220c
Merge pull request #2754 from aanand/upgrading-improvements
...
Improvements to upgrade guide and script
2016-01-27 13:48:23 +00:00
Aanand Prasad
888f4b43c9
Merge pull request #2762 from aanand/remove-links-warnings
...
Remove outdated warnings about links from docs
2016-01-27 13:08:15 +00:00
Aanand Prasad
d3a1cea170
Remove outdated warnings about links from docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-27 02:34:59 +00:00
Aanand Prasad
3aa545eb8e
Merge pull request #2755 from aanand/fix-rebase-script
...
Fix rebase-bump-commit script
2016-01-27 02:05:24 +00:00
Aanand Prasad
ca81672b82
Merge pull request #2761 from aanand/fix-bridge-plus-host
...
Remove ability to join bridge network + user-defined networks
2016-01-27 01:41:07 +00:00
Aanand Prasad
650b0cec38
Remove ability to join bridge network + user-defined networks
...
Containers connected to the bridge network can't have aliases, so it's
simpler to rule that they can *either* be connected to the bridge
network (via `network_mode: bridge`) *or* be connected to user-defined
networks (via `networks` or the default network).
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-27 00:42:09 +00:00
Joffrey F
e69ef1c456
Bump docker-py version to latest RC
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-27 00:36:38 +00:00
Aanand Prasad
d3d09ceb08
Merge pull request #2756 from aanand/external-links-v2
...
Add back external links in v2
2016-01-27 00:34:17 +00:00
Aanand Prasad
cd4cc8b8c6
Merge pull request #2760 from aanand/fix-docs-whitespace
...
Fix trailing whitespace in docker-compose.md
2016-01-26 23:39:59 +00:00
Aanand Prasad
b84da7c78b
Fix trailing whitespace in docker-compose.md
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-26 23:22:21 +00:00
Aanand Prasad
0ba02b4a18
Add back external links in v2
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-26 18:48:43 +00:00
Aanand Prasad
e40a46349f
Fix rebase-bump-commit script
...
Trim whitespace from wc's output before constructing arguments to `git rebase`
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-26 17:42:44 +00:00
Aanand Prasad
bacc2b730e
Merge pull request #2748 from schmunk42/master
...
fixed documentation about traversing yml files
2016-01-26 17:20:40 +00:00
Aanand Prasad
7d403d09cf
Extract helper methods
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-26 16:08:34 +00:00
Aanand Prasad
aa4d43af0b
Create declarations for named volumes
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-26 16:07:26 +00:00
Aanand Prasad
f86fe11825
Make sure version line is at the top of the file
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-26 15:54:18 +00:00
Aanand Prasad
47b22e90f9
Make warnings a bit more readable
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-26 15:53:25 +00:00
Aanand Prasad
4736b4409a
Update for links, external_links, network_mode
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-26 15:53:02 +00:00
Aanand Prasad
c39d5a3f06
Add note about named volumes to upgrade guide
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-26 15:51:09 +00:00
Joffrey F
4b84d088e0
Merge pull request #2743 from aanand/network-mode
...
Implement network_mode option
2016-01-25 18:26:35 -08:00
Aanand Prasad
ed1b204804
Rename 'net' to 'network mode' in various classes/methods
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-25 23:55:20 +00:00
Aanand Prasad
a9c623fdf2
Test that net can be extended
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-25 23:55:20 +00:00
Aanand Prasad
e566a4dc1c
Implement network_mode in v2
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-25 23:24:55 +00:00
Aanand Prasad
a267d8fe3c
Merge pull request #2728 from shin-/2709_service_volumes
...
Match named volumes in service definitions with declared volumes
2016-01-25 23:24:09 +00:00
Joffrey F
af6b18cad8
Merge pull request #2746 from aanand/alias-containers-by-short-id
...
Alias containers by short id
2016-01-25 13:55:30 -08:00
Tobias Munk
5fe0b57e5c
fixed documentation about traversing yml files
...
Signed-off-by: Tobias Munk <schmunk@usrbin.de>
2016-01-25 19:33:39 +01:00
Aanand Prasad
313c584185
Alias containers by short id
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-25 16:14:21 +00:00
Harald Albers
73a0d83075
Fix computation of service list in bash completion
...
The previous approach assumed that the service list could be extracted
from a single file. It did not follow extends and overrides.
Signed-off-by: Harald Albers <github@albersweb.de>
2016-01-25 15:51:58 +01:00
Aanand Prasad
3fff286e1a
Merge pull request #2727 from dbonev/2703-strict-validation-of-networks
...
Network fields schema validation
2016-01-25 14:39:54 +00:00
Steve Durrheimer
381d58bc66
Add zsh completion for 'docker-compose create'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-01-25 10:27:21 +01:00
Harald Albers
7f3a319ecc
bash completion for docker-compose create
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-01-25 10:15:14 +01:00
jrabbit
0019037712
Modify service_test.py::ServiceTest::test_resolve_env to reflect new behavior
...
Signed-off-by: jrabbit <jackjrabbit@gmail.com>
2016-01-24 15:25:06 -05:00
jrabbit
7ab9509ce6
Mangle the tests. They pass for better or worse!
...
Signed-off-by: jrabbit <jackjrabbit@gmail.com>
2016-01-23 16:19:17 -05:00
jrabbit
6540efb3d3
If an env var is passthrough but not defined on the host don't set it.
...
This doesn't change too much code and keeps the generators.
Signed-off-by: jrabbit <jackjrabbit@gmail.com>
2016-01-23 15:58:06 -05:00
Joffrey F
139c7f7830
Move named volumes matching to config validation phase
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-22 17:42:24 -08:00
Joffrey F
48377a354f
is_named_volume also tests for home paths ~
...
Fix bug with VolumeSpec not being updated
Fix integration test
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-22 16:05:21 -08:00
Dimitar Bonev
3a72edb906
Network fields schema validation
...
Signed-off-by: Dimitar Bonev <dimitar.bonev@gmail.com>
2016-01-22 16:42:10 +02:00
Aanand Prasad
35788f47ff
Merge pull request #2729 from shin-/bump_docker_py
...
Use latest docker-py rc
2016-01-22 11:40:35 +00:00
Aanand Prasad
49c83b16c2
Merge pull request #2726 from aanand/no-logs-on-interactive-run
...
Pass logs=False to dockerpty
2016-01-22 11:37:58 +00:00
Joffrey F
9e67eae311
Match named volumes in service definitions with declared volumes
...
Raise ConfigurationError for undeclared named volumes
Test new behavior
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-21 18:10:53 -08:00
Joffrey F
77b435f4fe
Use latest docker-py rc
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-21 18:07:14 -08:00
Daniel Nephin
963ec1ceda
Merge pull request #2707 from dnephin/add_stop_signal_to_docs
...
Add stop signal to the docs
2016-01-21 18:41:28 -05:00
Aanand Prasad
da2b6329ae
Add test for logs=False
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Conflicts:
compose/cli/main.py
2016-01-21 19:20:50 +00:00
Alf Lervag
6e73fb38ea
Fixes #2448
...
Signed-off-by: Alf Lervag <alf.lervag@bouvet.no>
Conflicts:
compose/cli/main.py
requirements.txt
2016-01-21 19:19:37 +00:00
Aanand Prasad
8662ce8e21
Merge pull request #2723 from aanand/fix-run-with-networking
...
Fix 'run' behaviour with networks
2016-01-21 19:07:53 +00:00
Aanand Prasad
730c33b28c
Merge pull request #2699 from aanand/update-compose-file-docs
...
Update Compose file documentation for version 2
2016-01-21 18:57:16 +00:00
Joffrey F
fec8cc9f80
Update documentation for external param
...
Signed-off-by: Joffrey F <joffrey@docker.com>
Conflicts:
docs/compose-file.md
2016-01-21 18:51:28 +00:00
Aanand Prasad
59493dd7aa
Add links to networks key references
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-21 18:51:28 +00:00
Aanand Prasad
2f41f3aa7e
Update documentation for links
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-21 18:51:28 +00:00
Aanand Prasad
9a3378930f
Document depends_on
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-21 18:50:44 +00:00
Aanand Prasad
0554c6e6fd
Update Compose file documentation for version 2
...
- Explain each version in its own section
- Explain how to upgrade from version 1 to 2
- Note which keys are restricted to particular versions
- A few corrections to the docs for version-specific keys
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-21 18:50:44 +00:00
Aanand Prasad
f3e55568d1
Fix interactive run with networking
...
Make sure we connect the container to all required networks *after*
starting the container and *before* hijacking the terminal.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-21 18:42:59 +00:00
Aanand Prasad
09dbc7b4cb
Stop connecting to all networks on container creation
...
This relies on an Engine behaviour which is a bug, not an intentional
feature - we have to connect to networks one at a time
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-21 18:04:50 +00:00
Aanand Prasad
a14906fd35
Fix 'run' behaviour with networks
...
- Test that one-off containers join all networks
- Don't set any aliases
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-21 17:28:55 +00:00
Aanand Prasad
1e51b7e88b
Merge pull request #2722 from aanand/fix-scale-race-condition
...
Fix scale race condition
2016-01-21 17:08:15 +00:00
Aanand Prasad
013c5ea3f9
Merge pull request #2713 from aanand/links-v2
...
Support links in v2 files
2016-01-21 17:08:05 +00:00
Aanand Prasad
7a4fdfd034
Merge pull request #2712 from jzvelc/fix_v2_service_extend
...
Fix `extends` when using v2 config format
2016-01-21 17:06:21 +00:00
Aanand Prasad
642e71b4c7
Stop and remove containers in parallel when scaling down
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-21 15:28:40 +00:00
Aanand Prasad
755c49b500
Fix scale when containers exit immediately
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-21 15:19:55 +00:00
Aanand Prasad
ee63075a34
Support links in v2 files
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-21 14:34:26 +00:00
Aanand Prasad
5a249bd9f5
Fix Windows build failures when installing dependencies from git
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-21 11:39:08 +00:00
Jure Žvelc
907c3ce42b
Fix for extending services written in v2 format.
...
Signed-off-by: Jure Žvelc <jzvelc@gmail.com>
2016-01-20 18:46:16 +01:00
Aanand Prasad
e35bf47a7f
Merge pull request #2708 from dnephin/implement_depends_on
...
Implement depends_on
2016-01-20 17:46:10 +00:00
Aanand Prasad
fd6b7d1747
Merge pull request #2693 from dnephin/migrate_v1_to_v2
...
Add a migration script for v1 to v2 compose format
2016-01-20 17:45:01 +00:00
Daniel Nephin
3b1a0e6fc9
Add stop signal to the docs.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-19 21:33:04 -05:00
Daniel Nephin
5aadf5a187
Update tests in sort_services_test.py to use pytest.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-19 15:52:17 -05:00
Daniel Nephin
146587643c
Move ulimits validation to validation.py and improve the error message.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-19 15:47:57 -05:00
Daniel Nephin
0bce467782
Implement depends_on to define an order for services in the v2 format.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-19 15:41:45 -05:00
Daniel Nephin
85619842be
Add migration script.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-19 14:50:41 -05:00
Daniel Nephin
c39489f540
Don't copy over volumes that were previously host volumes, and are now container volumes.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-19 14:41:21 -05:00
Daniel Nephin
c47aea9c12
Merge pull request #2698 from aanand/fix-name-is-reserved
...
Fix "name is reserved" with Engine 1.10 RC1
2016-01-19 10:15:06 -05:00
Daniel Nephin
1be147f775
Merge pull request #2696 from aanand/test-external-default
...
Test that you can set the default network to be external
2016-01-19 10:09:42 -05:00
Aanand Prasad
2106481c23
Fix "name is reserved" with Engine 1.10 RC1
...
Ensure link aliases are unique (this deduping was previously performed
on the server).
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-19 11:27:27 +00:00
Aanand Prasad
5b2b4cbb07
Merge pull request #2692 from aanand/fix-tls-paramater-error
...
Catch TLSParameterErrors from docker-py
2016-01-19 11:25:21 +00:00
Aanand Prasad
746033ed9d
Test that you can set the default network to be external
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-19 10:57:12 +00:00
Aanand Prasad
413cdbcb81
Merge pull request #2675 from sdurrheimer/zsh-completion-up-abort-on-container-exit
...
Add zsh completion for 'docker-compose up --abort-on-container-exit'
2016-01-19 10:41:08 +00:00
Aanand Prasad
683c8b0067
Merge pull request #2676 from sdurrheimer/zsh-completion-down-command
...
Add zsh completion for 'docker-compose down'
2016-01-19 10:40:29 +00:00
Aanand Prasad
9d2e1f58d9
Merge pull request #2677 from sdurrheimer/zsh-completion-fix-invalid-commands-cache
...
Fix zsh completion to ensure we have enough commands to store in the …
2016-01-19 10:40:03 +00:00
Aanand Prasad
adedbee41b
Merge pull request #2694 from dnephin/release_script_fixes
...
Fix some bugs in release scripts
2016-01-19 10:39:06 +00:00
Aanand Prasad
9ccef1ea91
Catch TLSParameterErrors from docker-py
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-18 21:48:12 +00:00
Daniel Nephin
66dd9ae9a4
Fix some bugs in release scripts.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-18 15:59:40 -05:00
Aanand Prasad
341fa58b21
Merge pull request #2690 from aanand/ipam-config
...
Allow custom ipam config
2016-01-18 19:44:07 +00:00
Aanand Prasad
b863fe5723
Merge pull request #2687 from aanand/update-networking-docs
...
Update networking docs
2016-01-18 18:59:33 +00:00
Aanand Prasad
afae365050
Allow custom ipam config
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-18 18:56:18 +00:00
Aanand Prasad
6b105a6e92
Update networking docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-18 18:45:29 +00:00
Aanand Prasad
da490f5b0a
Merge pull request #2686 from aanand/fix-custom-default-network
...
Allow overriding of config for the default network
2016-01-18 17:08:25 +00:00
Aanand Prasad
e7673bf920
Allow overriding of config for the default network
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-18 16:17:39 +00:00
Aanand Prasad
53d56ea245
Quote network names in error messages
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-18 16:15:52 +00:00
Steve Durrheimer
d54190167a
Fix zsh completion to ensure we have enough commands to store in the cache
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-01-16 13:53:16 +01:00
Steve Durrheimer
f6561f1290
Add zsh completion for 'docker-compose down'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-01-16 13:47:48 +01:00
Steve Durrheimer
e7180982aa
Add zsh completion for 'docker-compose up --abort-on-container-exit'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-01-16 13:22:02 +01:00
Joffrey F
a677a2c1f0
Merge pull request #2674 from dnephin/use-1.10-rc1
...
Test against docker 1.10.0-rc1
2016-01-15 17:13:56 -08:00
Daniel Nephin
ab927b986f
Test against 1.10rc1.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-15 19:04:01 -05:00
Daniel Nephin
cce3b29688
Merge pull request #2665 from dnephin/check_extends_use_same_version
...
Validate that an extended config file has the same version as the base
2016-01-15 18:07:56 -05:00
Daniel Nephin
9e805731e7
Merge pull request #2671 from dnephin/fix_linux_master_build
...
Fix linux master build
2016-01-15 15:23:24 -05:00
Daniel Nephin
82b288b25b
Fix linux master build.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-15 15:02:19 -05:00
Daniel Nephin
0f1a798f28
Increase the timeout for all acceptance tests.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-15 10:14:55 -05:00
Aanand Prasad
a104e11191
Merge pull request #2659 from aanand/default-network-alias
...
Containers join each network aliased to their service's name
2016-01-15 03:30:07 +00:00
Daniel Nephin
dc1104649f
Validate that an extended config file has the same version as the base.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-14 22:28:20 -05:00
Aanand Prasad
de6d6a42d7
Tag some more v2-dependent tests
...
Not clear why the config tests are v2-dependent; needs investigating
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-15 02:46:24 +00:00
Aanand Prasad
4772815491
Disable tests until Engine 1.10 change has been worked around
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-15 02:46:24 +00:00
Aanand Prasad
fbc275e06b
Work around error message change in Engine
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-15 02:46:24 +00:00
Aanand Prasad
cba75627e1
Fix error when joining host/bridge network
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-15 02:46:24 +00:00
Aanand Prasad
ab2d18851f
Test against a dev build of Engine 1.10
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-15 02:46:20 +00:00
Aanand Prasad
406b6b28f4
Tag v2-only tests
...
- Don't run them against Engine < 1.10
- Set the API version appropriately for the Engine version, so all tests
use API version 1.22 against Engine 1.10
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-15 02:08:20 +00:00
Aanand Prasad
abd031cb3d
Containers join each network aliased to their service's name
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-15 02:08:20 +00:00
Daniel Nephin
2a2eb81215
Merge pull request #2662 from dnephin/fix_config_printing_unicode
...
Fix config printing unicode objects
2016-01-14 19:26:39 -05:00
Aanand Prasad
493df49d55
Merge pull request #2658 from dnephin/warn_on_caps
...
Error when the project name is invalid for the default image name
2016-01-14 23:41:04 +00:00
Daniel Nephin
1bfbba36b2
Ensure that the config output by config command never contains python objects.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-14 18:33:58 -05:00
Daniel Nephin
3021ee12fe
Fix config command to print the new sections of the config
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-14 18:28:17 -05:00
Daniel Nephin
0f234154c2
Remove all non-external networks on down.
...
Also moves the shutdown test fixtures to be a more general v2-full fixture.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-14 18:28:17 -05:00
Daniel Nephin
b98e2169e6
Error when the project name is invalid for the image name.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-14 18:25:23 -05:00
Daniel Nephin
b689c4a218
Move service validation to validate_service().
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-14 18:25:22 -05:00
Joffrey F
796d97e394
Merge pull request #2617 from gutweiler/extra-hosts-ipv6
...
Extra hosts ipv6
2016-01-14 15:19:12 -08:00
Joffrey F
842dc14417
Merge pull request #2660 from albers/completion-down
...
bash completion for `docker-compose down`
2016-01-14 15:17:45 -08:00
Joffrey F
07c5103fe1
Merge pull request #2661 from albers/completion--abort-on-container-exit
...
bash completion for `docker-compose up --abort-on-container-exit`
2016-01-14 15:17:22 -08:00
Aanand Prasad
47e53b49c2
Merge pull request #2653 from shin-/Runscope-build-args
...
Support for build arguments
2016-01-14 23:13:54 +00:00
Joffrey F
1ae57d92d4
Remove duplicate functions
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-14 14:39:06 -08:00
Aanand Prasad
ee7a51c179
Merge pull request #2650 from dnephin/interpolate_config_in_volumes
...
Interpolate variables in the new sections of the Compose file
2016-01-14 22:04:46 +00:00
Clemens Gutweiler
ce9f2681a2
Fixes #1422 : ipv6 addr contains colons, so we split only by the first char.
...
Signed-off-by: Clemens Gutweiler <cg@vioma.de>
2016-01-14 22:26:35 +01:00
Joffrey F
13063a96cb
Fix handling of service.dockerfile key
...
Made invalid in v2 format
Doesn't break build config anymore
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-14 12:15:37 -08:00
Garrett Heel
9cfa71ceee
Add support for build arguments
...
Allows 'build' configuration option to be specified as an
object and adds support for build args.
Signed-off-by: Garrett Heel <garrettheel@gmail.com>
2016-01-14 12:14:56 -08:00
Daniel Nephin
77b4ebc31f
Merge pull request #2591 from moxiegirl/remove-todo
...
Fixing TODO visible in docs
2016-01-14 15:06:38 -05:00
Daniel Nephin
79df2ebe1b
Support variable interpolation for volumes and networks sections.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-14 14:04:57 -05:00
Harald Albers
fca3e47a75
bash completion for docker-compose up --abort-on-container-exit
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-01-14 10:43:53 -08:00
Aanand Prasad
3750811eed
Merge pull request #2564 from aanand/2478-networks-in-compose-file
...
Declare networks in Compose file
2016-01-14 18:32:29 +00:00
Harald Albers
a7be0afa5b
bash completion for docker-compose down
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-01-14 10:32:06 -08:00
Aanand Prasad
d98b64f6e7
Remove duplicated logic from initialize_networks()
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-14 18:09:45 +00:00
Aanand Prasad
4e61377c6d
Move get_networks() out of Project class
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-14 18:01:44 +00:00
Aanand Prasad
87326c00eb
Python 3 fixes
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-14 18:00:39 +00:00
Aanand Prasad
73fbd01cfe
Support the 'external' option for networks
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-14 18:00:39 +00:00
Aanand Prasad
ca68c9faa4
Services can join 'bridge' or 'host'
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-14 18:00:39 +00:00
Aanand Prasad
e75629392d
Don't join the bridge network by default in v2
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-14 18:00:39 +00:00
Aanand Prasad
9c91cf2967
Test discoverability across multiple networks
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-14 17:59:37 +00:00
Aanand Prasad
3eafdbb01b
Connect services to networks with the 'networks' key
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-14 17:59:37 +00:00
Aanand Prasad
3f9038aea9
Remove test duplication
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-14 17:59:37 +00:00
Aanand Prasad
35e347cf92
Disable the use of 'net' in v2
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-14 17:59:37 +00:00
Aanand Prasad
69ed5f9c48
Specify networks in Compose file
...
There's not yet a proper way for services to join networks
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-14 17:59:36 +00:00
Aanand Prasad
8fca4f1628
Merge pull request #2649 from dnephin/make_volumes_from_more_explicit
...
Make volumes from more explicit in V2 config format
2016-01-14 17:15:27 +00:00
Daniel Nephin
172b955d79
Merge pull request #2646 from dnephin/docker_compose_down
...
docker-compose down
2016-01-14 11:59:02 -05:00
Daniel Nephin
b76dc1e05e
Require volumes_from a container to be explicit in V2 config.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-14 11:45:16 -05:00
Daniel Nephin
c3968a439f
Refactor config loading to move version check into ConfigFile.
...
Adds the cached_property package.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-14 11:45:15 -05:00
Daniel Nephin
de949284f5
Refactor config loading for handling volumes_from in v2.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-14 11:43:47 -05:00
Aanand Prasad
dbe04a70f0
Merge pull request #2655 from shin-/updated_volume_definition
...
Properly validate volume definition
2016-01-14 16:37:39 +00:00
Daniel Nephin
c64af0a459
Add an acceptance test and docs for the down subcommand
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-14 11:11:08 -05:00
Daniel Nephin
c8ed156806
Adding docker-compose down
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-14 10:59:53 -05:00
Aanand Prasad
18df1e170d
Merge pull request #2625 from kojiromike/allow-list-entrypoints
...
Allow Entrypoints to be Lists
2016-01-14 12:48:13 +00:00
Aanand Prasad
7733600262
Merge pull request #2508 from jstewmon/stop_signal
...
add support for stop_signal to compose file
2016-01-14 12:46:04 +00:00
Aanand Prasad
1ffd172084
Merge pull request #2654 from dnephin/fix_multiplex_test
...
Fix flaky multiplex test
2016-01-14 12:27:46 +00:00
Joffrey F
e41e6c1241
Properly validate volume definition
...
Test valid empty volume definitions
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-13 18:22:29 -08:00
Daniel Nephin
6877c6ca06
Fix flaky multiplex test.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-13 20:58:44 -05:00
Joffrey F
153185eadb
Merge pull request #2647 from shin-/preexisting_volume_detection_rb1
...
Support for external volumes
2016-01-13 17:02:36 -08:00
Michael A. Smith
9bff308251
Document Entrypoints and Commands as Lists
...
Signed-off-by: Michael A. Smith <msmith3@ebay.com>
2016-01-13 17:47:30 -05:00
Michael A. Smith
59a4ab9634
Allow Entrypoints to be Lists
...
Signed-off-by: Michael A. Smith <msmith3@ebay.com>
2016-01-13 17:45:56 -05:00
Jonathan Stewmon
b6618815b9
update docker-py requirement to use master branch
...
Signed-off-by: Jonathan Stewmon <jstewmon@rmn.com>
2016-01-13 16:18:00 -06:00
Joffrey F
e76b2679eb
external volume disallows other config keys
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-13 14:12:03 -08:00
Aanand Prasad
fa01883cb2
Merge pull request #2632 from hourliert/master
...
Mount $HOME in /root to share docker config between containers.
2016-01-13 21:17:18 +00:00
Aanand Prasad
a08e02f3bd
Merge pull request #2643 from sdurrheimer/zsh-completion-events
...
Add zsh completion for 'docker-compose events'
2016-01-13 21:10:36 +00:00
Aanand Prasad
9f34354c19
Merge pull request #2638 from albers/completion-events
...
Add bash completion for `docker-compose events`
2016-01-13 21:10:09 +00:00
Joffrey F
c260eb910b
Merge pull request #2629 from dbonev/2611-support-port-range-in-compose
...
Port range in exposed ports
2016-01-13 13:09:22 -08:00
Aanand Prasad
3aba5bb67e
Merge pull request #2620 from dbonev/2607-ulimits-not-merged-in-extended-services
...
Ulimits are now merged into extended services
2016-01-13 21:05:38 +00:00
Daniel Nephin
d56f64c30a
Merge pull request #2130 from scipetr/master
...
Add flag for stops all containers if any container was stopped.
2016-01-13 15:55:19 -05:00
Daniel Nephin
eced525317
Merge pull request #2651 from aanand/increase-signal-test-timeout
...
Increase timeout on signal-handling tests
2016-01-13 15:45:34 -05:00
Aanand Prasad
85a210d9eb
Increase timeout on signal-handling tests
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-13 20:34:07 +00:00
Joffrey F
d601199eb5
Normalize external_name
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-13 12:07:08 -08:00
Joffrey F
8616b2de51
Update error message when external volume is missing
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-13 11:23:06 -08:00
Evgeniy Dobrohvalov
bf48a781db
Add flag for stops all containers if any container was stopped.
...
Signed-off-by: Evgeniy Dobrohvalov <scipetr@gmail.com>
2016-01-13 13:12:09 +03:00
Joffrey F
f774422d18
Test Volume.exists() behavior
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-12 16:58:24 -08:00
Joffrey F
9cb58b796e
Implement ability to specify external volumes
...
External volumes are created and managed by the user.
They are not namespaced.
They are expected to exist at the beginning of the up phase.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-12 16:53:49 -08:00
Joffrey F
05935b5e54
Don't recreate pre-existing volumes.
...
During the initialize_volumes phase, if a volume using the
non-namespaced name already exists, don't create the namespaced
equivalent.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-12 15:42:42 -08:00
Jonathan Stewmon
5d8c2d3cec
add support for stop_signal to compose file
...
Signed-off-by: Jonathan Stewmon <jstewmon@rmn.com>
2016-01-12 17:21:49 -06:00
Joffrey F
ad8faad296
Merge pull request #2579 from vdemeester/update-reference-with-config-and-create
...
Add config and create to docs/reference
2016-01-12 15:16:45 -08:00
Aanand Prasad
d4b4b126fb
Merge pull request #2635 from aanand/use-networking
...
Use networking for version 2 Compose files
2016-01-12 22:19:50 +00:00
Dimitar Bonev
3a46abd17f
Allowed port range in exposed ports
...
Signed-off-by: Dimitar Bonev <dimitar.bonev@gmail.com>
2016-01-13 00:13:04 +02:00
Dimitar Bonev
2f07e2ac36
Ulimits are now merged into extended services
...
Signed-off-by: Dimitar Bonev <dimitar.bonev@gmail.com>
2016-01-12 23:59:23 +02:00
Aanand Prasad
70cce961a8
Don't allow links or external_links in v2 files
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-12 21:29:45 +00:00
Aanand Prasad
9e17cff0ef
Refactor API version switching logic
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-12 21:29:45 +00:00
Aanand Prasad
a027a0079c
Use networking for version 2 Compose files
...
- Remove --x-networking and --x-network-driver
- There's now no way to set a network driver - this will be added back
with the 'networks' key
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-12 21:29:40 +00:00
Aanand Prasad
1a66543461
Make the default network name '{project name}_default'
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-12 21:08:28 +00:00
Aanand Prasad
b786b47bc8
Remove version checks from tests requiring API v1.21
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-12 21:08:28 +00:00
Aanand Prasad
0c626e63bc
Merge pull request #2458 from dnephin/image_and_build_together
...
Image and build together
2016-01-12 21:08:00 +00:00
Steve Durrheimer
b59387401c
Add zsh completion for 'docker-compose events'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2016-01-12 22:04:05 +01:00
Daniel Nephin
d32a3ec08f
Merge pull request #2639 from dnephin/fix_pep8_errors
...
Fix pep8 errors from the new pep8 release.
2016-01-12 14:13:23 -05:00
Daniel Nephin
e98ab0e534
Allow both image and build together.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-12 14:10:00 -05:00
Daniel Nephin
ed4db542d6
Fix pep8 errors from the new pep8 release.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-12 14:02:30 -05:00
Aanand Prasad
9e36847eb9
Merge pull request #2637 from dnephin/fix_pre_commit_on_master
...
Fix pre-commit on master
2016-01-12 18:54:16 +00:00
Harald Albers
6c205a8e01
Add bash completion for docker-compose events
...
Signed-off-by: Harald Albers <github@albersweb.de>
2016-01-12 10:51:04 -08:00
Daniel Nephin
12b5405420
Fix pre-commit on master.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-12 13:27:18 -05:00
Daniel Nephin
304a44aeab
Merge pull request #2585 from dnephin/short_signal_handlers
...
Fix signal handlers by moving shutdown logic out of handler
2016-01-12 12:55:53 -05:00
Aanand Prasad
52e50a9d9a
Merge pull request #2626 from shin-/dbonev-2503-move-logging-config-under-separate-key
...
Move logging config under separate key in v2 compose files
2016-01-12 15:21:10 +00:00
Aanand Prasad
063a25ae7d
Merge pull request #2392 from dnephin/docker_compose_events
...
docker-compose events
2016-01-12 11:45:27 +00:00
Joffrey F
ca634649bb
Changed logging override test into integration test
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-11 16:25:19 -08:00
Joffrey F
46a474ecd9
Move v1-v2 config normalization to separate function.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-11 15:53:28 -08:00
Joffrey F
c32991a8d4
Remove superfluous service code
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-11 15:39:59 -08:00
Thomas Hourlier
f7a7e68df6
Mount $HOME in /root to share docker config.
...
Fixes #2630
Signed-off-by: Thomas Hourlier <thomas.hourlier@cnode.fr>
2016-01-11 09:52:51 -08:00
Daniel Nephin
d3cd038b84
Update event field names to match the new API fields.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-11 11:51:17 -05:00
Daniel Nephin
2f8cb55412
Merge pull request #2571 from vdemeester/fix-unpause-typo
...
Fix typo in unpause reference doc
2016-01-09 12:31:21 -05:00
Daniel Nephin
37d41f22c6
Merge pull request #2572 from vdemeester/fix-run-missing-flag
...
Add missing --name flag to run reference doc
2016-01-09 12:30:57 -05:00
Joffrey F
46585fb8e1
Support legacy logging options format
...
Additional test for legacy compose file.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-08 14:37:07 -08:00
Daniel Nephin
fc57fc1dc1
Merge pull request #2609 from dnephin/dont_warn_on_container_volume
...
Don't warn when the container volume is a compose option
2016-01-08 17:18:02 -05:00
Daniel Nephin
ab98c70dd1
Merge pull request #2612 from dnephin/merge_extends_from_multiple_files
...
Fix extends with multiple files
2016-01-08 17:17:41 -05:00
Joffrey F
21aae13e77
Move logging config changes to v2 spec
...
Reorganize JSON schemas
Update fixtures
Update service validation function
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-08 13:21:45 -08:00
Daniel Nephin
d1d3969661
Add docker-compose event
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-08 13:43:30 -05:00
Daniel Nephin
f38c29f37b
Merge pull request #2624 from aanand/fix-script-clean
...
Fix script/clean on systems where `find` requires a path argument
2016-01-08 10:17:01 -05:00
Aanand Prasad
978e9cf38f
Fix script/clean on systems where find requires a path argument
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2016-01-08 13:10:05 +00:00
Dimitar Bonev
ed5f7bd394
log_driver and log_opt moved to logging key.
...
Signed-off-by: Dimitar Bonev <dimitar.bonev@gmail.com>
2016-01-08 01:54:45 +02:00
Aanand Prasad
e7bba2affe
Merge pull request #2300 from dnephin/always_unicode_literal
...
Use "unicode_literals" in all files
2016-01-07 18:28:22 +00:00
Daniel Nephin
bf1552da79
Use json to encode invalid values in configuration errors so that the user sees a proper repr of the value.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-07 13:09:24 -05:00
Daniel Nephin
475a091768
Update pre-commit config to enforace that future imports exist in all files.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-07 13:09:03 -05:00
Aanand Prasad
ed87d1f848
Merge pull request #2421 from shin-/2110-compose_yml_v2
...
Add support for declaring named volumes in compose files
2016-01-07 16:45:58 +00:00
Vincent Demeester
0bca8d9cb3
Add config and create to docs/reference
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-01-06 21:28:52 +01:00
Vincent Demeester
4e75ed4231
Add missing --name flag to run reference doc
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-01-06 21:15:11 +01:00
Vincent Demeester
77d2aae72d
Fix typo in unpause reference doc
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2016-01-06 21:14:30 +01:00
Daniel Nephin
c7b71422c0
Fix extends with multiple files.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-06 13:30:40 -05:00
Joffrey F
1dcdd98da4
Add TODO note to restore n-1 version testing after 1.10 release
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-05 15:24:58 -08:00
Joffrey F
a7689f3da8
Handle volume driver change error in config.
...
Assume version=1 if file is empty in get_config_version
Empty files are invalid anyway, so this simplifies the algorithm
somewhat.
https://github.com/docker/compose/pull/2421#discussion_r47223144
Don't leak version considerations in interpolation/service validation
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-05 15:22:13 -08:00
Joffrey F
f3a9533dc0
version no longer optional arg for process_config_file
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-05 15:21:54 -08:00
Joffrey F
661519ac1c
Only test latest version in CI script
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-05 15:21:53 -08:00
Joffrey F
ec5111f1c2
Volumes are now prefixed with the project name
...
When created through the compose file, volumes are prefixed
with the name of the project they belong to + underscore,
similarly to how containers are currently handled.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-05 15:21:53 -08:00
Joffrey F
ecef5d37a7
Add v2 configuration tests
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-05 15:21:53 -08:00
Joffrey F
df6877a277
Use newer docker-py version
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-05 15:09:39 -08:00
Joffrey F
abe145bbe7
Update config resolution to always use explicit version numbers
...
Also includes several bugfixes for resolution and validation.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-05 15:09:39 -08:00
Joffrey F
b253efd8a7
Update docs to define and document new compose.yml file format
...
Add volume configuration reference section.
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-05 15:09:39 -08:00
Joffrey F
b4be7b870f
Add support for declaring named volumes in compose files
...
* Bump default API version to 1.21 (required for named volume management)
* Introduce new, versioned compose file format while maintaining support
for current (legacy) format
* Test updates to reflect changes made to the internal API
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-05 15:09:39 -08:00
Daniel Nephin
4bf2f8c4f9
Fix lookup of linked containers for API version 1.20
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-05 15:09:39 -08:00
Daniel Nephin
97fe2ee40c
Don't preserve host volumes on container recreate.
...
Fixes a regression after the API changed to use Mounts.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-05 15:09:39 -08:00
Daniel Nephin
c64b7cbb10
Ignore errors from API about not being able to kill a container.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-05 15:09:39 -08:00
Joffrey F
afab5c76ea
Update service volume tests to use mounts key
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-05 15:09:39 -08:00
Joffrey F
3bdcc9d954
Update service tests to use mounts instead of volumes
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2016-01-05 15:09:39 -08:00
Daniel Nephin
73de81b51c
Upgrade tests to use new Mounts in container inspect.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-05 15:09:39 -08:00
Daniel Nephin
ad9011ed96
Don't warn when the container volume is specified as a compose option.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-05 17:30:27 -05:00
Aanand Prasad
4017ea99fe
Merge pull request #2599 from dnephin/inject_project_name
...
Remove support for fig.yaml, FIG_FILE, and FIG_PROJECT_NAME
2016-01-05 12:29:38 +00:00
Aanand Prasad
c1a21d2497
Merge pull request #2577 from TomasTomecek/easier-development
...
allow running compose from git
2016-01-05 12:27:35 +00:00
Daniel Nephin
2acc29cf1c
Remove support for fig.yaml, FIG_FILE, and FIG_PROJECT_NAME.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2016-01-04 15:37:21 -05:00
Mary Anthony
d4e913e42c
Fixing TODO visible in docs
...
Signed-off-by: Mary Anthony <mary@docker.com>
2015-12-31 19:04:38 -08:00
Daniel Nephin
778c213dfc
Fix signal handlers by moving shutdown logic out of handler.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-12-30 11:21:20 -05:00
Michael Gilliland
39af6b653b
Update volumes_from docs to state default
...
[Proof of read-write](cfb1b37da2/compose/config/types.py (L26) ).
I found myself wondering what the default was a couple of times, and finally decided to change it :)
Signed-off-by: Michael Gilliland <gillilandmj@upmc.edu>
2015-12-28 16:44:31 -05:00
Tomas Tomecek
adde805829
allow running compose from git
...
with:
```
$ git clone docker/compose && cd compose
$ export PYTHONPATH="$PWD:$PYTHONPATH"
$ python -m compose --help
```
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2015-12-26 11:03:58 +01:00
Daniel Nephin
ea8cc1c3dc
Merge pull request #2562 from thaJeztah/update-links
...
Update links
2015-12-21 08:31:39 -08:00
Aanand Prasad
a2d2915a64
Merge pull request #2547 from seguins/1125-docker-compose-create
...
Add docker-compose create command.
2015-12-21 14:20:56 +00:00
Sebastiaan van Stijn
5ed559fa0e
Update links
...
Updates some links to their new locations, and
replaces some http:// with https:// links.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2015-12-21 01:52:54 +01:00
Aanand Prasad
12a08255b5
Merge pull request #2554 from aanand/clarify-rm-behaviour
...
Clarify behaviour of 'rm'
2015-12-18 16:42:05 +00:00
Stéphane Seguin
3c76d5a467
Add docker-compose create command.
...
Closes #1125
Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
2015-12-18 08:53:26 +01:00
Aanand Prasad
2e9a49b4eb
Clarify behaviour of 'rm'
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-12-17 17:50:45 +00:00
Aanand Prasad
100d6f2fbb
Merge pull request #2552 from dbonev/2452-implement-cpu-quota
...
Added support for cpu_quota flag
2015-12-17 12:21:15 +00:00
Dimitar Bonev
a542041264
Added support for cpu_quota flag
...
Signed-off-by: Dimitar Bonev <dimitar.bonev@gmail.com>
2015-12-16 21:25:30 +02:00
Aanand Prasad
c8f63306e0
Merge pull request #2550 from dbonev/1236-restart-to-exit-with-non-zero
...
Start, restart, pause and unpause exit with non-zero if nothing to do
2015-12-16 15:25:34 +00:00
Aanand Prasad
ae7e48ea2f
Merge pull request #2526 from dnephin/remove_extra_coverage_files
...
Ignore extra coverage files
2015-12-16 15:18:10 +00:00
Dimitar Bonev
bc843d6758
Start, restart, pause and unpause exit with non-zero if nothing to do
...
Signed-off-by: Dimitar Bonev <dimitar.bonev@gmail.com>
2015-12-15 23:11:11 +02:00
Daniel Nephin
5b32d32b2d
Merge pull request #2521 from jeanpralo/master
...
Add method to get more info about container status
2015-12-15 12:04:42 -08:00
Jean Praloran
c8f266b637
add restarting status for human_readable_state
...
Signed-off-by: Jean Praloran <jeanpralo@gmail.com>
2015-12-16 08:19:28 +13:00
Daniel Nephin
a1217dc050
Merge pull request #2536 from dbonev/2345-incorrect-network-name
...
Incorrect network name shown in the log when no driver is specified
2015-12-11 14:39:36 -08:00
Dimitar Bonev
6d709caaa5
Fixes incorrect network name shown in the log when no driver is specified
...
Signed-off-by: Dimitar Bonev <dimitar.bonev@gmail.com>
2015-12-11 10:14:01 +02:00
Daniel Nephin
1d3aeaaae7
Ignore extra coverge files
...
These files are created because we run acceptance tests in a subprocess.
They have the process id in their name, so they wont be removed by the
normal coverage cleanup on each run.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-12-10 15:29:36 -08:00
Aanand Prasad
bc09698897
Merge pull request #2527 from dnephin/fix_dns_config_option
...
Fix dns and dns_search when used strings and without extends.
2015-12-10 11:31:01 +00:00
Daniel Nephin
fa3528ea25
Fix dns and dns_search when used strings and without extends.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-12-09 16:32:39 -08:00
Daniel Nephin
6fe747e0ee
Merge pull request #2522 from sdurrheimer/zsh-completion-config-cmd
...
Add zsh completion for config subcommand
2015-12-09 10:40:44 -08:00
Aanand Prasad
0b7a407055
Merge pull request #2519 from seguins/clean_service
...
Remove unused functions in service
2015-12-09 13:51:27 +00:00
Aanand Prasad
67829f08b6
Merge pull request #2518 from albers/completion-config
...
Add bash completion for config subcommand
2015-12-09 12:43:41 +00:00
Steve Durrheimer
01bba5ea23
Add zsh completion for config subcommand
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2015-12-09 08:57:14 +01:00
Stéphane Seguin
999d15b225
Remove unused functions in service
...
Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
2015-12-08 21:11:05 +01:00
Harald Albers
a5b48a3dc2
Add bash completion for config subcommand
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-12-08 10:23:55 -08:00
Aanand Prasad
dc39b01e00
Merge pull request #2512 from albers/completion-url
...
Use more robust download URL for completions
2015-12-08 16:27:09 +00:00
Aanand Prasad
53cc99a822
Merge pull request #2513 from punkstar/detect-tty
...
Only allocate a tty if we detect one
2015-12-08 15:26:46 +00:00
Aanand Prasad
82dfd465a2
Merge pull request #2407 from dnephin/config_command
...
New `docker-compose config` command
2015-12-08 15:16:48 +00:00
Daniel Nephin
437f3f8adb
Add docker-compose config subcommand.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-12-07 18:51:01 -08:00
Aanand Prasad
ecf2dd11f9
Merge pull request #2467 from dnephin/remove_migrate_to_labels
...
Remove migrate-to-labels.
2015-12-07 14:31:23 +00:00
Aanand Prasad
9f4e83e456
Merge pull request #2466 from dnephin/remove_insecure_ssl_warning
...
Removes the deprecated --allow-insecure-ssl flag
2015-12-07 14:29:33 +00:00
Aanand Prasad
50dcb1d7e7
Merge pull request #2468 from dnephin/increase_timeout_in_tests
...
Increase timeout in tests
2015-12-07 14:29:08 +00:00
Nick Jones
f2c232bb10
Only allocate a tty if we detect one
...
Signed-off-by: Nick Jones <nick@nicksays.co.uk>
2015-12-07 09:56:28 +00:00
Harald Albers
2525752a05
Use more robust download URL for completions
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-12-07 09:10:19 +01:00
Daniel Nephin
509059cdab
Merge pull request #2492 from jake-low/no-yaml-warning
...
Stop warning about ".yaml" file extension
2015-12-04 12:22:56 -08:00
Daniel Nephin
3e7b2ab865
Merge pull request #2506 from dnephin/update_changelog
...
Cherry-pick release notes for 1.5.2
2015-12-04 12:21:27 -08:00
Daniel Nephin
de4a18ea6c
Cherry-pick release notes for 1.5.2
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-12-04 10:26:20 -08:00
Aanand Prasad
0a84833474
Merge pull request #2505 from thaJeztah/update-maintainers
...
update maintainers file for parsing
2015-12-04 16:16:09 +00:00
Sebastiaan van Stijn
7698da57ca
update maintainers file for parsing
...
this updates the MAINTAINERS file to the new format,
so that it can be parsed and collected in the docker/opensource
repository.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2015-12-04 16:52:29 +01:00
jake-low
e760c42ae0
Stop warning about ".yaml" extension
...
".yaml" is the preferred extension according to http://www.yaml.org/faq.html
Signed-off-by: jake-low <jakelow42@gmail.com>
2015-12-02 21:45:36 -08:00
Daniel Nephin
707281aadb
Merge pull request #2291 from dnephin/compose_faq
...
FAQ document for Compose
2015-12-02 11:12:37 -08:00
Daniel Nephin
3f39ffe72e
FAQ document for Compose
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-12-02 10:47:32 -08:00
moxiegirl
0eba234c54
Merge pull request #2461 from SvenDowideit/move-to-docs-base-latest
...
Use FROM docs/base:latest again
2015-12-01 08:54:13 -08:00
Daniel Nephin
377f084dfe
Increase timeout in tests.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-27 13:54:00 -05:00
Daniel Nephin
a21f9993b3
Remove migrate-to-labels.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-27 12:04:45 -05:00
Daniel Nephin
2f568984f7
Fixes #2368 , removes the deprecated --allow-insecure-ssl flag.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-27 11:52:25 -05:00
Aanand Prasad
defcf5a21f
Merge pull request #2464 from aanand/validate-expose
...
Validate `expose`
2015-11-27 14:44:55 +00:00
Aanand Prasad
ccf548b98c
Validate the 'expose' option
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-11-26 19:27:32 +00:00
Aanand Prasad
042c7048f2
Split out ports validation tests into type, uniqueness, format
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-11-26 19:27:31 +00:00
Aanand Prasad
374b16843f
Fix ports validation message
...
- The `raises` kwarg to the `cls_check` decorator was being used
incorrectly (it should be an exception class, not an object).
- We need to check for `error.cause` and get the message out of the
exception object.
NB: The particular case where validation fails in the case of `ports` is
only when ranges don't match in length - no further validation is
currently performed client-side.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-11-26 18:54:30 +00:00
Aanand Prasad
d52508e2b1
Refactor ports section of fields schema
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-11-26 18:52:14 +00:00
Aanand Prasad
0fedd9969f
Merge pull request #2430 from dnephin/build_from_url
...
Build from url
2015-11-26 18:15:03 +00:00
Daniel Nephin
2ab3cb212a
Add integration test and docs for build with a git url.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-26 11:32:39 -05:00
Jonas Eckerström
f7239f41ef
Added support for url buid paths
...
Signed-off-by: Jonas Eckerström <jonaseck@gmail.com>
2015-11-26 11:29:07 -05:00
Aanand Prasad
b85bfce65e
Fix ports validation test
...
We were essentially only testing that *at least one* of the invalid
values fails the validation check, rather than that *all* of them fail.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-11-26 15:06:30 +00:00
Sven Dowideit
fd06d699f2
Use FROM docs/base:latest again
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-11-26 20:30:12 +10:00
Aanand Prasad
7b893164a4
Merge pull request #2450 from dnephin/fix_env_file_ordering
...
Fix env_file overrides with extends
2015-11-25 16:35:40 +00:00
Daniel Nephin
e67bc2569c
Properly resolve environment from all sources.
...
Split env resolving into two phases. The first phase is to expand the paths
of env_files, which is done before merging extends. Once all files are merged
together, the final phase is to read the env_files and use them as the base
for environment variables.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-25 11:02:20 -05:00
Aanand Prasad
cfb1b37da2
Merge pull request #2405 from dnephin/move_all_validation_to_config
...
Move all validation to config
2015-11-25 15:16:21 +00:00
Daniel Nephin
8930fa25d6
Merge pull request #2387 from dnephin/update_release_notes
...
cherry-pick release notes from 1.5.1
2015-11-24 13:25:21 -05:00
Daniel Nephin
6e89a5708f
cherry-pick release notes from 1.5.1
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-24 13:24:46 -05:00
Aanand Prasad
c1c1dceb59
Merge pull request #2453 from dnephin/fix_test_assertion
...
Add missing assert and autospec
2015-11-24 16:45:04 +00:00
Aanand Prasad
88e9c1ccd9
Merge pull request #2438 from dnephin/fix_flaky_pull_test
...
Fix `build --pull` test flakes
2015-11-24 16:44:53 +00:00
Aanand Prasad
689f040c97
Merge pull request #2429 from dnephin/fix_links_in_readme
...
Fix use case link in readme
2015-11-24 15:56:05 +00:00
Daniel Nephin
e40670207f
Add missing assert and autospec.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-24 10:42:25 -05:00
Aanand Prasad
50bc734492
Merge pull request #2427 from dnephin/note_about_pip_version
...
Add note about required pip version.
2015-11-24 15:21:37 +00:00
Daniel Nephin
533f33271a
Move service sorting to config package.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-23 13:33:00 -05:00
Daniel Nephin
effa9834a5
Remove unnecessary intermediate variables in get_container_host_config.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-23 13:33:00 -05:00
Daniel Nephin
dac75b07dc
Move volume parsing to config.types module
...
This removes the last of the old service.ConfigError
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-23 13:33:00 -05:00
Daniel Nephin
efec2aae6c
Fixes #2008 - re-use list_or_dict schema for all the types
...
At the same time, moves extra_hosts validation to the config module.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-23 13:31:58 -05:00
Daniel Nephin
12b82a20ff
Move restart spec to the config.types module.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-23 13:31:58 -05:00
Daniel Nephin
068edfa313
Move parsing of volumes_from to the last step of config parsing.
...
Includes creating a new compose.config.types module for all the domain objects.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-23 13:31:58 -05:00
Daniel Nephin
c9ca5e86b0
Remove project name validation
...
project name is already normalized to a valid name before creating a service.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-23 13:30:54 -05:00
Aanand Prasad
83ddec8df7
Merge pull request #2439 from solarce/sol-matrix-trusty-fix
...
Fixing matrix include so `os: linux` goes to trusty
2015-11-23 18:01:22 +00:00
Aanand Prasad
665de9a494
Merge pull request #2436 from dnephin/reduce_cyclomatic_complexity
...
Reduce cyclomatic complexity
2015-11-23 17:51:54 +00:00
Daniel Nephin
b4edf0c454
Move parallel_execute to a new module.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-23 11:34:48 -05:00
Aanand Prasad
aafacd3495
Merge pull request #2418 from dnephin/fix_env_with_extends
...
Fix env_file and environment when used with extends
2015-11-23 14:48:04 +00:00
Brandon Burton
13081d4516
Fixing matrix include so os: linux goes to trusty
...
Signed-off-by: Brandon Burton <brandon@inatree.org>
2015-11-20 16:07:37 -08:00
Daniel Nephin
2351e11cc8
Make sure we always have the latest busybox image, so that build --pull tests don't flake.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-20 17:51:36 -05:00
Daniel Nephin
64447879d2
Reduce complexity of merge_service_dicts
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-20 17:09:55 -05:00
Daniel Nephin
d1adbb9b25
Refactor parallel_execute.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-20 17:09:51 -05:00
Daniel Nephin
c4096525c2
Merge pull request #2364 from dnephin/handle_signals_properly
...
Handle SIGTERM/SIGINT properly for up and run
2015-11-20 11:58:04 -05:00
Daniel Nephin
8bc84c74e7
Merge pull request #2417 from dnephin/inlude_git_sha_in_version
...
Add the git sha to version output
2015-11-20 11:39:38 -05:00
Daniel Nephin
331450dace
Merge pull request #2390 from dnephin/fix_extra_warnings_on_masked_volumes
...
Fix extra warnings on masked volumes
2015-11-20 11:37:54 -05:00
Daniel Nephin
91fb6156c6
Merge pull request #2393 from seguins/1814-restart-stopped-containers
...
Fix restart with stopped containers.
2015-11-20 11:35:24 -05:00
Daniel Nephin
46446111e5
Merge pull request #2400 from dnephin/fix_stream_with_empty_object
...
Fix a bug in progress_stream when an `ADD <url>` was used
2015-11-20 11:33:45 -05:00
Daniel Nephin
6224b6edd9
Fix use case link in readme.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-19 14:53:28 -05:00
Joffrey F
dd1a2b36fa
Merge pull request #2389 from hypriot/use-uname-for-target
...
Use uname to build target name for different platforms
2015-11-19 10:36:33 -08:00
Joffrey F
449cdcc966
Merge pull request #2420 from simonvanderveldt/fix-script-runsh-env-vars
...
run.sh script: Also pass DOCKER_TLS_VERIFY and DOCKER_CERT_PATH env vars to compose container
2015-11-19 10:35:28 -08:00
Daniel Nephin
3fdf0f43be
Add note about required pip version.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-19 12:55:03 -05:00
Daniel Nephin
21a72e350b
Merge pull request #2413 from SvenDowideit/stop-docs-validation-errors
...
2 small changes to clear up docs-validation complaints
2015-11-19 12:52:43 -05:00
Sven Dowideit
acf31181e8
Some small changes to clear up docs-validation complaints
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-11-19 13:35:09 +10:00
Daniel Nephin
1e8f76767f
Fix env_file and environment when used with extends.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-18 16:07:11 -05:00
Daniel Nephin
c78c32c2e8
Fixes #2398 - the build progress stream can contain empty json objects.
...
Previously these empty objects would hit a bug in splitting objects causing it crash.
With this fix the empty objects are returned properly.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-18 16:04:41 -05:00
Simon van der Veldt
efbfa9e38f
run.sh script: Also pass DOCKER_TLS_VERIFY and DOCKER_CERT_PATH
...
env vars to compose container
Signed-off-by: Simon van der Veldt <simon.vanderveldt@gmail.com>
2015-11-18 21:40:16 +01:00
Daniel Nephin
d4b9845201
Add the git sha to version output
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-18 13:21:14 -05:00
Daniel Nephin
2f20dfe508
Merge pull request #2409 from dnephin/fix_the_build
...
Fix texttable dep. 0.8.2 was removed from pypi.
2015-11-17 20:06:40 -05:00
Daniel Nephin
265828f4eb
Fix texttable dep. 0.8.2 was removed from pypi.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-17 18:36:58 -05:00
Stéphane Seguin
61f91ebff7
Fix restart with stopped containers.
...
Fixes #1814
Signed-off-by: Stéphane Seguin <stephseguin93@gmail.com>
2015-11-14 12:23:23 +01:00
Daniel Nephin
e1308a8329
Fix extra warnings on masked volumes.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-13 10:49:17 -05:00
Stefan Scherer
c99f2f8efd
Use uname to build target name for different platforms
...
Signed-off-by: Stefan Scherer <scherer_stefan@icloud.com>
2015-11-13 08:33:51 +01:00
Daniel Nephin
6236bb0019
Handle both SIGINT and SIGTERM for docker-compose run.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-12 17:41:44 -05:00
Daniel Nephin
ea4230e7a2
Handle both SIGINT and SIGTERM for docker-compose up.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-12 17:41:44 -05:00
Daniel Nephin
9f6a5a964a
Merge pull request #2355 from dnephin/refactor_handle_error
...
Refactor process_error and include a filename as part of the validation error messages
2015-11-12 15:01:32 -05:00
Daniel Nephin
9c305ac10f
Remove name field from the list of ALLOWED_KEYS
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-12 13:26:13 -05:00
Daniel Nephin
589755d034
Inclide the filename in validation errors.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-12 12:44:45 -05:00
Daniel Nephin
fa96484d28
Refactor process_errors into smaller functions
...
So that it passed new max-complexity requirement
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-12 12:44:24 -05:00
Daniel Nephin
f7d8087694
Add ids to config schemas
...
Also enforce a max complexity for functions and add some new tests for config.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-12 12:40:36 -05:00
Joffrey F
0a35fd93cd
Merge pull request #2373 from shin-/2370-env_vars_with_dashes
...
Allow dashes in environment variable names
2015-11-11 13:20:22 -08:00
Joffrey F
d6b44905f2
Add test for environment variable dashes support
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-11 12:52:30 -08:00
Joffrey F
513dfda218
Allow dashes in environment variable names
...
See http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap08.html
Environment variable names used by the utilities in the Shell and
Utilities volume of POSIX.1-2008 consist solely of uppercase letters,
digits, and the <underscore> ( '_' ) from the characters defined in
Portable Character Set and do not begin with a digit. Other characters may
be permitted by an implementation; applications shall tolerate the
presence of such names.
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-11 12:45:02 -08:00
Daniel Nephin
a746d673b1
Merge pull request #2350 from dnephin/remove_name_from_schema
...
Remove name field from the config schema
2015-11-11 15:43:03 -05:00
Daniel Nephin
76f3c9c739
Merge pull request #2349 from dnephin/validate_all_files
...
Validate all files before merging them
2015-11-11 15:27:47 -05:00
Daniel Nephin
08bd2a318f
Merge pull request #2371 from shin-/yvespp-master
...
Removed unneeded newlines on docker-compose pull with no tty (#2311 update)
2015-11-11 15:20:31 -05:00
Joffrey F
c573fcc70a
Reorganize conditional branches to improve readability
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-11 11:21:24 -08:00
Yves Peter
b8b4c84573
Fixes #1490
...
progress_stream would print a lot of new lines on "docker-compose pull" if there's no tty.
Signed-off-by: Yves Peter <ypdraw@gmail.com>
2015-11-11 11:20:59 -08:00
Aanand Prasad
2063b39868
Merge pull request #2336 from dnephin/warn_on_volume_masking
...
Add a warning when the host volume in the compose file is masked by a data volume
2015-11-11 17:21:29 +00:00
Daniel Nephin
19b2c41c7e
Add a test for invalid field 'name', and fix an existing test for invalid service names.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-11 11:00:11 -05:00
Daniel Nephin
1f7faadc77
Remove name from config schema.
...
Refactors config validation of a service to use a ServiceConfig data object.
Instead of passing around a bunch of related scalars, we can use the
ServiceConfig object as a parameter to most of the service validation functions.
This allows for a fix to the config schema, where the name is a field in the
schema, but not actually in the configuration. My passing the name around as
part of the ServiceConfig object, we don't need to add it to the config options.
Fixes #2299
validate_against_service_schema() is moved from a conditional branch in
ServiceExtendsResolver() to happen as one of the last steps after all
configuration is merged. This schema only contains constraints which only need
to be true at the very end of merging.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-11 11:00:11 -05:00
Daniel Nephin
5e97b806d5
Fix a bug in ExtendsResolver where the service name of the extended service was wrong.
...
This bug can be seen by the change to the test case. When the extended service
uses a different name, the error was reported incorrectly.
By fixing this bug we can simplify self.signature and self.detect_cycles to
always use self.service_name.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-11 10:58:07 -05:00
Daniel Nephin
a92d86308f
Rename ServiceLoader to ServiceExtendsResolver
...
ServiceLoader has evolved to be not really all that related to "loading" a
service. It's responsibility is more to do with handling the `extends`
field, which is only part of loading. The class and its primary method
(make_service_dict()) were renamed to better reflect their responsibility.
As part of that change process_container_options() was removed from
make_service_dict() and renamed to process_service(). It contains logic for
handling the non-extends options.
This change allows us to remove the hacks from testcase.py and only call
the functions we need to format a service dict correctly for integration tests.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-11 10:58:07 -05:00
Daniel Nephin
98ad5a05e4
Validate additional files before merging them.
...
Consolidates all the top level config handling into `process_config_file` which
is now used for both files and merge sources.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-11 10:56:15 -05:00
Aanand Prasad
7466d14826
Merge pull request #2363 from dnephin/pr-2261
...
Rebase of PR 2261
2015-11-11 15:48:28 +00:00
Daniel Nephin
c006c6ea09
Merge pull request #2341 from dnephin/dont_create_default_network_sometimes
...
Only create the default network if at least one service needs it
2015-11-11 10:48:08 -05:00
Daniel Nephin
7365a398b3
Update doc wording for ulimits.
...
and move tests to the correct module
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-10 15:03:20 -05:00
Kevin Greene
22d90d2180
Added ulimits functionality to docker compose
...
Signed-off-by: Kevin Greene <kevin@spantree.net>
2015-11-10 14:07:04 -05:00
Daniel Nephin
a8ac6e6f93
Add a warning when the host volume config is being ignored.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-10 13:48:53 -05:00
Daniel Nephin
7d6c63d1b7
Merge pull request #2361 from dnephin/pr-2262
...
Rebase of PR 2262
2015-11-10 13:42:08 -05:00
Joffrey F
2c2b8a8322
Merge pull request #2360 from shin-/2357-http_timeout_exit_1
...
Use exit code 1 when encountering a ReadTimeout
2015-11-10 10:31:58 -08:00
Daniel Nephin
338bbb5063
Re-order flags in bash completion
...
and remove unnecessary variables from build command.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-10 13:11:59 -05:00
Joffrey F
133d213e78
Use exit code 1 when encountering a ReadTimeout
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-10 10:11:20 -08:00
Adrian Budau
c5c36d8b00
Added --force-rm to compose build.
...
It's a flag passed to docker build that removes the intermediate
containers left behind on fail builds.
Signed-off-by: Adrian Budau <budau.adi@gmail.com>
2015-11-10 13:05:04 -05:00
Daniel Nephin
45724fc667
Only create the default network if at least one service needs it.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-10 12:43:55 -05:00
Daniel Nephin
3474bb6cf5
Cleanup workaround in testcase.py
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-10 12:43:55 -05:00
Aanand Prasad
0017f43d7f
Merge pull request #2339 from dnephin/recreate_deps_on_create
...
Recreate dependents when a dependency is created
2015-11-10 17:36:23 +00:00
Daniel Nephin
c8fa0a902a
Merge pull request #2331 from dnephin/flush_log_buffer_when_printing_logs
...
Flush the log stream after writing each line
2015-11-10 12:34:42 -05:00
Aanand Prasad
917b885a44
Merge pull request #2334 from dnephin/dont_set_hostname
...
Don't set the hostname to the service name with networking.
2015-11-10 17:34:02 +00:00
Daniel Nephin
b09cf86dd6
Merge pull request #2326 from dnephin/unicode_decode_error
...
Unicode decode error
2015-11-10 12:29:52 -05:00
Joffrey F
774d852f93
Merge pull request #2335 from dnephin/volumes_refactoring
...
Some small refactoring around volumes
2015-11-09 14:05:52 -08:00
Daniel Nephin
e5fbf35ce1
Merge pull request #2351 from shin-/2322_config_hash_volumes_from
...
Update service config_dict computation to include volumes_from mode
2015-11-09 16:26:47 -05:00
Joffrey F
a1e140f5a3
Update service config_dict computation to include volumes_from mode
...
Ensure config_hash is updated when volumes_from mode is changed, and
service is recreated on next up as a result.
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-11-09 13:07:26 -08:00
Daniel Nephin
b7fe86b99a
Merge pull request #2348 from aanand/fix-parallel-output
...
Fix parallel output
2015-11-09 13:09:50 -05:00
Aanand Prasad
1bfb710326
Fix parallel output
...
We were outputting an extra line, which in *some* cases, on *some*
terminals, was causing the output of parallel actions to get messed up.
In particular, it would happen when the terminal had just been cleared
or hadn't yet filled up with a screen's worth of text.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-11-09 17:24:21 +00:00
Daniel Nephin
7c2a16234f
Recreate dependents when a dependency is created (not just when it's recreated).
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-06 12:29:52 -05:00
Daniel Nephin
ec22d98377
Use VolumeSpec instead of re-parsing the volume string.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-05 18:11:56 -05:00
Daniel Nephin
0e19c92e82
Make working_dir consistent in the config package.
...
- make it a positional arg, since it's required
- make it the first argument for all functions that require it
- remove an unnecessary one-line function that was only called in one place
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-05 18:11:56 -05:00
Daniel Nephin
3456002aef
Don't set the hostname to the service name with networking.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-05 17:50:32 -05:00
Daniel Nephin
d32bb8efee
Fix #1549 - flush after each line of logs.
...
Includes some refactoring of log_printer_test to support checking for flush(), and so that each test calls the unit-under-test directly, instead of through a helper function.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-05 15:33:42 -05:00
Daniel Nephin
26c7dd3712
Handle non-utf8 unicode without raising an error.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-05 12:56:36 -05:00
Aanand Prasad
67dc90ec0e
Merge pull request #2314 from dnephin/fix_up_require_build_error
...
Fix `up` "requires build" error
2015-11-05 15:52:56 +00:00
Aanand Prasad
97dee9d54a
Merge pull request #2310 from dnephin/update_release_notes
...
Update release notes
2015-11-05 15:52:41 +00:00
Daniel Nephin
8ff960afd1
Fix service recreate when image changes to build.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-05 10:27:11 -05:00
Daniel Nephin
ce322047a0
Move config hash tests to service_test.py
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-05 10:27:11 -05:00
Daniel Nephin
0227b3adbd
Upgrade pyyaml to 3.11
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-05 10:26:54 -05:00
Daniel Nephin
d18ad4c812
Fix rebase-bump-commit script when used with a final release.
...
Previously it would find commits for RC releases, which broke the rebase.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-05 10:25:46 -05:00
Daniel Nephin
6b002fb922
Cherry-pick release notes froim 1.5.0
...
And bump version to 1.6.0dev
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-05 10:25:46 -05:00
Daniel Nephin
50f06c6ba2
Merge pull request #2325 from dnephin/fix_jenkins_build
...
Fix jenkins CI
2015-11-04 17:25:17 -05:00
Daniel Nephin
385b4280a1
Fix jenkins CI by using an older docker version to match the host.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-04 15:33:37 -05:00
Aanand Prasad
6a8806fe8d
Merge pull request #2304 from dnephin/remove_start_container
...
Remove service.start_container()
2015-11-04 10:19:33 +00:00
Aanand Prasad
4ebe68e612
Merge pull request #2290 from dnephin/docs_multi_file_compose
...
Docs for using multiple compose files
2015-11-03 17:14:57 +00:00
Daniel Nephin
e503e085ac
Re-order extends docs.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-03 11:52:44 -05:00
Daniel Nephin
8bdde9a731
Replace composition with Compose app.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-03 11:28:51 -05:00
Daniel Nephin
eab265befa
Document using multiple Compose files use cases.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-03 11:28:51 -05:00
Daniel Nephin
c5cf5cfad4
Changes to production.md for working with multiple Compose files.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-03 11:28:51 -05:00
Daniel Nephin
1c4c7ccfac
Support a volume to the docs directory and add --watch, so docs can be refreshed.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-03 11:28:51 -05:00
Daniel Nephin
7014cabb04
Remove duplication from extends docs.
...
Start restructuring extends docs in preparation for adding documentation about using multiple compose files.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-03 11:28:51 -05:00
Aanand Prasad
767a13f771
Merge pull request #2165 from dnephin/more_user_docs
...
Restructure intro docs
2015-11-03 16:22:28 +00:00
Daniel Nephin
3d9e3d0877
Remove service.start_container()
...
It has been an unnecessary wrapper around container.start() for a little while now, so we can call it directly.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-03 10:17:09 -05:00
Aanand Prasad
19a41997c2
Merge pull request #2306 from dnephin/cli_tests_use_cli
...
Update cli test suite to run the executable in a child process
2015-11-03 15:05:47 +00:00
Daniel Nephin
45635f7097
Move cli tests to a new testing package.
...
These cli tests are now a different kind of that that run the compose binary. They are not the same as integration tests that test some internal interface.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-02 19:28:58 -05:00
Daniel Nephin
8057bb3fcc
Update cli tests to use subprocess.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-02 17:35:00 -05:00
Daniel Nephin
c58cf036e3
Touch up intro paragraph with feedback from @moxiegirl.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-02 15:16:23 -05:00
Daniel Nephin
a3fb13e141
Add another feature to the docs - multiple environments per host.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-02 15:16:23 -05:00
Daniel Nephin
d9bc91b7cc
Update intro docs based on feedback.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-02 15:16:23 -05:00
Daniel Nephin
db3b90b84e
Updates to gettingstarted guide from PR feedback.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-02 15:16:23 -05:00
Daniel Nephin
86d845fde3
Flush out features and use cases.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-02 15:16:23 -05:00
Daniel Nephin
186d43c59f
Extract the getting started guide from the index page.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-02 15:16:23 -05:00
Daniel Nephin
53a0de7cf2
Add missing title to compose file reference.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-02 15:16:23 -05:00
Daniel Nephin
3738da09e2
Merge pull request #2298 from dnephin/update_networking_test_for_rc4
...
Fix networking tests to work with new API in engine rc4
2015-11-02 15:10:17 -05:00
Daniel Nephin
abde64d610
On a test failure only show the last 100 lines of daemon output.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-02 14:16:52 -05:00
Daniel Nephin
1b5b407619
Fix networking tests to work with new API in engine rc4 ( https://github.com/docker/docker/pull/17536 )
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-11-02 13:40:56 -05:00
Daniel Nephin
77e1fe1915
Merge pull request #2295 from dnephin/default_network_should_be_none
...
Don't set a default network driver, let the server decide
2015-10-30 15:29:30 -04:00
Daniel Nephin
66ef2519d3
Merge pull request #2265 from dnephin/volumes_in_guides_doc
...
Update tutorials and small fix with rails tutorial
2015-10-30 13:30:00 -04:00
Daniel Nephin
c7d164d01c
Fixes #1843 , #1936 - chown files back to host user in django example.
...
Also add a missing 'touch Gemfile.lock' to fix the rails tutorial.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-30 12:42:15 -04:00
Daniel Nephin
491d052088
Don't set a default network driver, let the server decide.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-30 11:53:36 -04:00
Daniel Nephin
c439e056a0
Merge pull request #2288 from dnephin/warning_about_vars
...
Add console color to warnings and errors so they are more obvious
2015-10-30 10:58:00 -04:00
Daniel Nephin
04a76dc284
Merge pull request #2287 from shin-/2284-ensure-network-exists-run
...
Ensure network exists when calling run before up
2015-10-30 10:41:55 -04:00
Joffrey F
072e7687ae
Integration test for run command with networking enabled
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-30 14:15:47 +01:00
Daniel Nephin
eb9b8dc592
Merge pull request #2283 from dnephin/fix_not_none_log_driver
...
Logs are available for all log drivers except for none.
2015-10-29 15:01:05 -04:00
Daniel Nephin
841ed4ed21
Remove the duplicate 'Warning' prefix now that the logger adds the prefix.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-29 14:18:28 -04:00
Daniel Nephin
d836973a04
Use colors when logging warnings or errors, so they are more obvious.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-29 14:06:50 -04:00
mnowster
057b8e291c
Merge pull request #2286 from mnowster/2281-docs-curl-command
...
Clarify the command is an example
2015-10-29 17:20:59 +00:00
Joffrey F
596261e759
Ensure network exists when calling run before up
...
Otherwise the daemon will error out because the network doesn't exist
yet.
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-10-29 17:56:01 +01:00
Mazz Mosley
983dc12160
Clarify the command is an example
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-29 16:52:00 +00:00
Daniel Nephin
eab9d86a3d
Logs are available for all log drivers except for none.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-29 11:28:17 -04:00
mnowster
6cd9bab35b
Merge pull request #2276 from dnephin/update_networking_docs
...
Update docs about networking for current release
2015-10-29 15:19:02 +00:00
mnowster
64a2713714
Merge pull request #2264 from mnowster/2259-unicode-error-volume-paths
...
Handle non-ascii volume directories
2015-10-29 14:42:29 +00:00
Mazz Mosley
5dc14f3925
Handle non-ascii chars in volume directories
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-29 12:05:51 +00:00
mnowster
0b25014020
Merge pull request #2278 from dnephin/disable_flaky_test
...
Disable flaky test against 1.8.3
2015-10-29 12:04:54 +00:00
mnowster
3a2df57f3d
Merge pull request #2273 from mnowster/cross-ref-docs
...
Add cross references for env/cli
2015-10-29 12:04:10 +00:00
Daniel Nephin
a71d9af522
Disable a test against docker 1.8.3 because it fails due to a bug in docker engine.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-28 17:54:38 -04:00
Daniel Nephin
0ef3b47f74
Update docs about networking for current release.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-28 15:17:11 -04:00
mnowster
66f1c8e6c0
Merge pull request #2272 from dnephin/update_release_docs_and_scripts
...
Another release, another round of fixes to the release scripts
2015-10-28 17:54:48 +00:00
mnowster
dfaa18ebc5
Merge pull request #2274 from mnowster/docs-key-dependency-clarification
...
Clarify `dockerfile` requires `build` key
2015-10-28 17:45:27 +00:00
Mazz Mosley
e13b8949b0
Add cross references for env/cli
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-28 17:42:30 +00:00
Mazz Mosley
c341860d11
Clarify dockerfile requires build key
...
Credit to @funkyfuture for the first PR addressing the clarification.
https://github.com/docker/compose/pull/1767
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-28 17:27:38 +00:00
Daniel Nephin
8306405340
On error print daemon logs
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-28 12:40:59 -04:00
Daniel Nephin
bbc76e6034
Convert the README to rst and fix the logo url before packaging it up for pypi.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-28 12:11:29 -04:00
Daniel Nephin
c4f0f24c57
Fix release script notes about software and typos.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-28 12:10:30 -04:00
mnowster
7e48b0b289
Merge pull request #2271 from mnowster/2270-pypi-page-info
...
Include link to github for code & issues
2015-10-28 15:30:07 +00:00
Mazz Mosley
379af594da
Include link to github for code&issues
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-28 14:59:43 +00:00
Daniel Nephin
b6b9b002e5
Merge pull request #2254 from mnowster/1756-dont-display-output-from-previous-runs
...
1756 dont display output from previous runs
2015-10-27 18:45:47 -04:00
Mazz Mosley
76d52b1c5f
Remove redundant try/except
...
Code cleanup. We no longer need this as the api returns a 304 for any
stopped containers, which doesn't raise an error.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-27 17:12:18 +00:00
Mazz Mosley
30a84f1be6
Move rename functionality into Container
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-27 17:12:18 +00:00
Mazz Mosley
bee063c07d
Fix tests
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-27 17:12:18 +00:00
Mazz Mosley
7603ebea9b
Attach to a container's log_stream before they're started
...
So we're not displaying output of all previous logs for a container, we attach,
if possible, to a container before the container is started.
LogPrinter checks if a container has a log_stream already attached and
print from that rather than always attempting to attach one itself.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-27 17:12:18 +00:00
mnowster
ffa2b08dbb
Merge pull request #2258 from dnephin/dont_link_when_using_networking
...
Fix running one-off containers with --x-networking
2015-10-27 15:32:20 +00:00
Daniel Nephin
7878d38dee
Fix running one-off containers with --x-networking by disabling linking to self.
...
docker create fails if networking and links are used together.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-27 11:11:15 -04:00
mnowster
a4b002a76e
Merge pull request #2257 from mnowster/2226-additional-classifiers
...
Include additional classifiers
2015-10-27 11:12:38 +00:00
Mazz Mosley
fe760a7b62
Include additional classifiers
...
I've included Python 2/3 as they are not parent classifiers but
sibling classifiers. They denote that this project will work with
*some* versions of python and by having them, they'll show up for
people searching for python 2 or 3 projects.
According to the internet :)
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-26 17:08:45 +00:00
mnowster
f3d49e38c0
Merge pull request #2245 from dnephin/upgrade_to_pyinstaller_3
...
Upgrade to pyinstaller 3
2015-10-26 11:54:02 +00:00
Daniel Nephin
0340361f56
Upgrade pyinstaller to 3.0
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-23 13:34:49 -04:00
mnowster
986036b6f9
Merge pull request #2223 from au-phiware/master
...
Powershell script to run compose in a container.
2015-10-23 18:10:18 +01:00
mnowster
5d60fbe31e
Merge pull request #1659 from viranch/hostip-random-port
...
Allow scaling services that have port binding of the form `host_ip::container_port`
2015-10-23 17:11:28 +01:00
mnowster
e6f3946c17
Merge pull request #2239 from dnephin/fix_unicode_in_env
...
Fix unicode in environment variables for python2
2015-10-23 11:03:59 +01:00
moxiegirl
e2af02b158
Merge pull request #2238 from SvenDowideit/possible-link-fixes
...
Possible link fixes
2015-10-22 16:27:44 -07:00
Sven Dowideit
cf197253cd
Possible link fixes
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-10-23 09:00:08 +10:00
Daniel Nephin
ae47435425
Fix unicode in environment variables for python2.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-22 12:12:43 -04:00
mnowster
6f78271b82
Merge pull request #2236 from dnephin/use_inspect_network
...
Use inspect network to query for an existing network
2015-10-22 13:37:27 +01:00
Daniel Nephin
cf40a38820
Merge pull request #2237 from dnephin/env_ci_storage_graph
...
Make storage driver configurable in CI
2015-10-21 16:29:40 -04:00
Daniel Nephin
f7100b2ef3
Change version check from engine version to api version.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-21 15:40:50 -04:00
Daniel Nephin
1bc3c97f2a
Make storage driver configurable in CI
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-21 15:26:44 -04:00
Daniel Nephin
0fed5e6864
Use inspect network to query for an existing network.
...
And more tests for get_network()
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-21 13:05:14 -04:00
mnowster
c34a9f165d
Merge pull request #2207 from dnephin/make_config_loader_immutable
...
Refactor of ServiceLoader to make it immutable
2015-10-21 17:14:40 +01:00
Daniel Nephin
b500fa2351
Refactor ServiceLoader to be immutable.
...
Mutable objects are harder to debug and harder to reason about. ServiceLoader was almost immutable. There was just a single function which set fields for a second function. Instead of mutating the object, we can pass those values as parameters to the next function.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-21 11:14:35 -04:00
Daniel Nephin
4505632274
Some minor style cleanup
...
- fixed a docstring to make it PEP257 compliant
- wrapped some long lines
- used a more specific error
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-21 11:13:00 -04:00
mnowster
fb69391889
Merge pull request #2233 from dnephin/some_unit_test_cleanup
...
Cleanup some unit tests and whitespace
2015-10-21 10:39:28 +01:00
mnowster
44e1fc3a32
Merge pull request #2230 from dnephin/lowercase_windows_drive
...
Lowercase windows drive letter
2015-10-21 10:36:46 +01:00
Daniel Nephin
b1f8ed84a3
Cleanup some unit tests and whitespace.
...
Remove some unnecessary newlines.
Remove a unittest that was attempting to test behaviour that was removed a while ago, so isn't testing anything.
Updated some unit tests to use mocks instead of a custom fake.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-20 14:23:56 -04:00
Daniel Nephin
5523c3d745
Minor refactor to use guard and replace instead of split+join
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-20 12:09:01 -04:00
Daniel Nephin
3f0e083585
Force windows drives to be lowercase.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-20 11:39:06 -04:00
mnowster
5ed9f9bdf7
Merge pull request #2206 from dnephin/fix_extends_from_second_file
...
extends must be copied from override file
2015-10-20 10:22:58 +01:00
Daniel Nephin
3725c3ab7e
Merge pull request #2225 from mnowster/2221-blank-env-vars
...
2221 allow empty environment keys
2015-10-19 14:06:31 -04:00
Daniel Nephin
938d49cbdc
Fixes #2205 - extends must be copied from override file.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-19 13:41:58 -04:00
mnowster
f1f3acd070
Merge pull request #2210 from dnephin/fix_empty_override
...
Properly validate files when multiple files are used
2015-10-19 18:32:48 +01:00
Daniel Nephin
937e087c6c
Fixes #2203 - properly validate files when multiple files are used.
...
Remove the single-use decorators so the functionality can be used directly as a function.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-19 12:39:45 -04:00
Daniel Nephin
cd0b63879b
Merge pull request #2208 from dnephin/another_release_script_fix
...
Fix check for tags in release script `make-branch`
2015-10-19 12:34:25 -04:00
Daniel Nephin
129e2f9482
Fix check for tags.
...
If there is a branch with the same name as a tag it fails without the
--tags. This was only a problem when we're branching from a git tag.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-19 12:33:25 -04:00
mnowster
a75bdfe11c
Merge pull request #2220 from ticosax/trove-classifire
...
Add trove classifier to declare supported python versions.
2015-10-19 17:20:31 +01:00
Mazz Mosley
08add665e9
Environment keys can contain empty values
...
Environment keys that contain no value, get populated with values taken
from the environment not from the build phase but from running the command `up`.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-19 16:32:12 +01:00
mnowster
159cddf563
Merge pull request #2209 from dnephin/fix_error_on_invalid_yaml
...
Give the user a better error message when the yaml file is invalid
2015-10-19 16:29:36 +01:00
Daniel Nephin
076b5bc31c
Merge pull request #2197 from sdurrheimer/zsh-completion-network-options
...
Add zsh completion for 'docker-compose --x-networking --x-network-dri…
2015-10-19 10:37:57 -04:00
Mazz Mosley
ff83c459d0
Improve error message for type constraints
...
It was missing a space between the different types, when there
were 3 possible type values.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-19 14:36:56 +01:00
Corin Lawson
4d8e667c3e
Powershell script to run compose in a container.
...
This script assumes the typical environment that Windows users operate,
namely, VirtualBox running the boot2docker ISO, managed by
docker-machine. I wrote this script for my Windows using colleagues and
first placed it in the public domain as a gist:
https://gist.github.com/au-phiware/25213e72c80040f398ba
In short, that script works for me.
I have adapted that script to use the (yet to be) official image
(docker/compose:latest) and also added an extra environment variable to
provide additional options to docker run.
Signed-off-by: Corin Lawson <corin@phiware.com.au>
2015-10-19 22:32:35 +11:00
mnowster
1a97a8ef86
Merge pull request #2213 from viranch/trim-dockerfile
...
Trim Dockerfile
2015-10-19 12:08:20 +01:00
Steve Durrheimer
ac06366ef9
Add zsh completion for 'docker-compose --x-networking --x-network-driver'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2015-10-19 12:31:17 +02:00
mnowster
bca018c50a
Merge pull request #2211 from albers/completion-networking
...
bash completion for networking options
2015-10-19 11:23:03 +01:00
mnowster
2516aa8e08
Merge pull request #2212 from albers/completion-nospace
...
fix problem with bash completion in old bash
2015-10-19 11:22:44 +01:00
Nicolas Delaby
37921b40dd
Add trove classifier to declare supported python versions.
...
Signed-off-by: Nicolas Delaby <nicolas.delaby@lock8.me>
2015-10-19 10:52:39 +02:00
Viranch Mehta
07e9f6500c
Pipe curl's download directly to extract/execute program to reduce number of commands
...
Signed-off-by: Viranch Mehta <viranch.mehta@gmail.com>
2015-10-18 01:06:50 +05:30
Viranch Mehta
258c8bc54d
Fix specifies_host_port() to handle port binding with host IP but no host port
...
Signed-off-by: Viranch Mehta <viranch.mehta@gmail.com>
2015-10-18 00:40:51 +05:30
Harald Albers
fa44a5fac2
fix problem with bash completion in old bash
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-10-17 09:51:37 -07:00
Harald Albers
43a89e1702
bash completion for networking options
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-10-17 09:30:53 -07:00
Daniel Nephin
ae3c66baed
Merge pull request #2204 from mnowster/2123-escaping-env-variables
...
Attempt to document escaping env vars
2015-10-16 15:51:58 -04:00
Daniel Nephin
26dc0b785b
Give the user a better error message (without a stack trace) when there is a yaml error.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-16 15:05:06 -04:00
mnowster
4b939d3560
Merge pull request #2199 from cweagans/1752-docker-compose-pull-service-nodeps
...
docker-compose pull SERVICE should not pull SERVICE's dependencies
2015-10-16 17:12:28 +01:00
mnowster
a712d828d4
Merge pull request #2200 from aanand/revert-tutorials
...
Revert networking-related changes to getting started guides
2015-10-16 17:06:31 +01:00
Mazz Mosley
7b109bc026
Attempt to document escaping env vars
...
People are likely to run into their env vars being set to empty strings,
if they're not aware that they need to escape them for Compose to not
interpolate them.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-16 15:32:02 +01:00
mnowster
b0c895c5f5
Merge pull request #2193 from mrfuxi/less-verbose-extends-docs
...
Docs for shorthand notation of extends. Issue #1989
2015-10-16 10:25:10 +01:00
Aanand Prasad
1ed23fb2de
Revert networking-related changes to getting started guides
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-10-16 11:58:27 +05:30
Cameron Eagans
53fc6d06f6
docker-compose pull SERVICE should not pull SERVICE's dependencies
...
Signed-off-by: Cameron Eagans <me@cweagans.net>
2015-10-15 17:33:32 -06:00
Karol Duleba
ccfb6e6fa8
Docs for shorthand notation of extends. Issue #1989
...
Signed-off-by: Karol Duleba <mr.fuxi@gmail.com>
2015-10-15 22:17:13 +01:00
Daniel Nephin
8f840a55de
Merge pull request #2194 from dnephin/update_release_docs
...
Update release docs
2015-10-15 15:40:13 -04:00
mnowster
4d8b184b14
Merge pull request #2196 from md2perpe/patch-1
...
Remove incorrectly placed comment
2015-10-15 15:31:49 +01:00
mnowster
971bfd403e
Merge pull request #2195 from timbutler/master
...
Fix link to Release Process doc in README.md
2015-10-15 15:30:00 +01:00
Per Persson
c6ff81fe30
Remove incorrectly placed comment
...
I'm not sure if it should be there at all, but at least it should hardly be where it currently is located.
Signed-off-by: Per Persson <per.persson@exertisztorm.com>
2015-10-15 15:25:52 +02:00
Tim Butler
7e59a7ea32
Fix link to Release Process doc in README.md
...
Signed-off-by: Tim Butler <tim.butler.au@gmail.com>
2015-10-15 17:09:57 +10:00
Daniel Nephin
fbe8e76902
Add missing merge for release branch.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-14 15:24:05 -04:00
Daniel Nephin
58e6d4487a
Fix some release docs.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-14 15:16:58 -04:00
Daniel Nephin
338f2f4507
Add a script to generate contributor list.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-14 15:14:04 -04:00
Daniel Nephin
0409b287ad
Merge pull request #2191 from dnephin/networking
...
Networking
2015-10-14 12:31:26 -04:00
mnowster
6b68a84b9b
Merge pull request #2019 from mrfuxi/less-verbose-extends
...
Allow to extend service using shorthand notation. Closes #1989
2015-10-14 17:13:09 +01:00
Daniel Nephin
e2f792c4f4
If -x-networking is used, set the correct API version.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-14 12:09:50 -04:00
Aanand Prasad
d5f5eb1924
Enable use of Docker networking with the --x-networking flag
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-10-14 11:19:43 -04:00
Daniel Nephin
f228173660
Print docker version.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-14 11:18:21 -04:00
Daniel Nephin
7c6e7e0dce
Update docker-py to 1.5.0
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-14 11:18:21 -04:00
Daniel Nephin
b9c76dfabd
Merge pull request #2181 from mnowster/2128-split-drive-not-handling-relative-paths
...
2128 split drive not handling relative paths
2015-10-14 11:04:42 -04:00
Daniel Nephin
f1e3c7b8b8
Merge pull request #2189 from mnowster/support-for-cgroup_parent
...
Support for cgroup parent
2015-10-14 10:59:04 -04:00
Mazz Mosley
ca36628a0e
Test cgroup_parent option is being sent.
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-14 15:02:42 +01:00
Mohit Soni
f4efa29377
Added support for cgroup_parent
...
This change adds cgroup-parent support to compose project. It allows
each service to specify a 'cgroup_parent' option.
Signed-off-by: Mohit Soni <mosoni@paypal.com>
2015-10-14 15:02:42 +01:00
mnowster
26ff729696
Merge pull request #2164 from dnephin/rename_compose_reference
...
Rename "yml reference" to "Compose file reference"
2015-10-14 14:58:35 +01:00
Daniel Nephin
fbfbe60246
Rename yml.md to compose-file.md and add an alias for the old url.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-14 09:51:34 -04:00
Daniel Nephin
01f44efe0d
Re-arrange volume_driver in compose file reference.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-14 09:50:37 -04:00
Daniel Nephin
e6344f819a
Rename yaml reference to compose file reference.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-14 09:50:37 -04:00
Karol Duleba
c7ffbf97c8
Extend oneOf error handling. Issue #1989
...
Signed-off-by: Karol Duleba <mr.fuxi@gmail.com>
2015-10-14 14:31:35 +01:00
mnowster
bc82f065bc
Merge pull request #1994 from charleswhchan/patch-3
...
Touchup "Quickstart Guide: Compose and Django"
2015-10-14 12:46:16 +01:00
Charles Chan
5fa5ea0e16
Touchup "Quickstart Guide: Compose and Django"
...
Also incorporated the structural changes by @moxiegirl in PR #1994 as well as subsequent issues reported by @aanand.
Signed-off-by: Charles Chan <charleswhchan@users.noreply.github.com>
2015-10-13 20:10:41 -07:00
Daniel Nephin
c06d9ec672
Merge pull request #2179 from moxiegirl/retooling-hugo-15
...
Updating to new tooling:supports Github source linking
2015-10-13 18:12:56 -04:00
Mary Anthony
e9ee244e5a
Aaaaaaaaaaaargh
...
Signed-off-by: Mary Anthony <mary@docker.com>
2015-10-13 15:06:37 -07:00
Mary Anthony
0e9c542865
Updating to new tooling:supports Github source linking
...
Fixing HEAD
Updating to match daniel
Fixing the index link
Signed-off-by: Mary Anthony <mary@docker.com>
2015-10-13 14:04:25 -07:00
mnowster
129092b7b4
Merge pull request #2159 from dnephin/update_pip_install_docs
...
Update pip install instructions to be more reliable
2015-10-13 17:35:59 +01:00
Mazz Mosley
c1d5ecaafe
Workaround splitdrive limitations
...
splitdrive doesn't handle relative paths, so if volume_path contains
a relative path, we handle that differently and manually set drive to ''.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-13 17:27:25 +01:00
Daniel Nephin
9aaecf95a4
Update pip install instructions to be more reliable.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-13 12:25:06 -04:00
Mazz Mosley
bc6b3f970b
container paths don't need to be expanded
...
They should not ever be relative.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-13 17:03:09 +01:00
mnowster
4b845746ef
Merge pull request #2154 from dnephin/publish_master_builds
...
Publish master builds to bintray
2015-10-13 14:50:25 +01:00
mnowster
928300478b
Merge pull request #2162 from dnephin/docs_cleanup_and_fixes
...
Docs changes, fixed some links, removed older links, etc
2015-10-13 14:25:33 +01:00
Daniel Nephin
9b9c8f9cbc
Clarify irc details, and remove "infancy" statement.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-09 11:14:21 -04:00
Daniel Nephin
e90d2b418d
Update title for command-line completion docs.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-09 11:14:21 -04:00
Daniel Nephin
182c2537d0
Fix links between reference sections
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-09 11:14:21 -04:00
Daniel Nephin
cd48a7026a
Cleanup doc reference links.
...
Removed 'Compose command line completion' and 'Compose environment variables' from the list. command line completion is linked to from install docs, and environment variables are deprecated.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-09 11:13:24 -04:00
Daniel Nephin
6e838b5de1
Add link to master builds from install docs.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-09 10:03:44 -04:00
Daniel Nephin
0e9ec8aa74
Add publish to bintray step to appveyor.yml
...
Remove Set-PSDebug -trace to prevent the 9000+ lines of debug output
from spamming the logs on appveyor.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-09 10:02:59 -04:00
Daniel Nephin
94e6727831
Re-order docs Makefile for better caching.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-08 19:12:02 -04:00
Daniel Nephin
5fbde6106e
Merge pull request #2157 from mnowster/2151-missing-port-range
...
Put port ranges back in
2015-10-08 10:22:33 -04:00
Mazz Mosley
a3eb563f94
Put port ranges back in
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-10-08 11:50:27 +01:00
mnowster
7538d7d258
Merge pull request #2152 from ronen/patch-1
...
Bug fix: Use app's Gemfile.lock in Dockerfile
2015-10-08 11:14:48 +01:00
ronen barzel
23fcace36c
Bug fix: Use app's Gemfile.lock in Dockerfile
...
The Dockerfile should use the same Gemfile.lock as the app, to make sure the container gets the expected versions of gems installed. Aside from wanting that in principle, without it you can get mysterious gem dependency errors. Here's the scenario:
1. Suppose `Gemfile` includes `gem "some-active-gem", "~> 1.0"
2. When developing the app, you run `bundle install`, which installs the latest version--let's say, 1.0.1-and records it in `Gemfile.lock`
3. Suppose the developers of `some-active-gem` then release v1.0.2
4. Now build the container: docker runs `bundle install`, which installs v1.0.2 and records it in `Gemfile.lock` and then "ADD"s the app worktree, which replaces the `Gemfile.lock` with the one from the worktree that lists v1.0.1.
5. Immediately run your app and it fails with the error `Could not find some-active-gem-1.0.1 in any of the sources` which is a bit befuddling since you just saw it run bundle install so you expect all gem dependencies to be resolved properly.
Signed-off-by: ronen barzel <ronen@barzel.org>
2015-10-08 03:08:50 +01:00
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
mnowster
7fe2068c9c
Merge pull request #2150 from dnephin/fix_image_name_in_runsh
...
Update release script and run.sh image name
2015-10-07 16:38:45 +01: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
Daniel Nephin
34f5912bbc
Update release script and run.sh image name.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-10-07 11:00:40 -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
Karol Duleba
91b227d133
Allow to extend service using shorthand notation. Closes #1989
...
Signed-off-by: Karol Duleba <mr.fuxi@gmail.com>
2015-09-24 18:01:47 +01: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
Aanand Prasad
9e75797943
Merge pull request #2084 from dnephin/windows
...
WIP: Add appveyor config for testing on windows and building windows binary
2015-09-22 19:37:45 +02:00
Daniel Nephin
0058d5dd4f
Add appveyor config
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-22 12:45:19 -04:00
Daniel Nephin
c37a0c38a2
Fix a test case that assumes busybox image id.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-22 12:28:59 -04:00
mnowster
1e25d40c53
Merge pull request #2080 from moxiegirl/fix-2079
...
Fixing misspelling of WordPress
2015-09-21 17:17:31 +01:00
mnowster
6f12224ec9
Merge pull request #2005 from lnmunhoz/master
...
Fix error message and class name from Boot2Docker to DockerMachine
2015-09-21 17:05:03 +01:00
Mary Anthony
62ca8469b0
Fixing misspelling of WordPress
...
Signed-off-by: Mary Anthony <mary@docker.com>
2015-09-21 08:58:05 -07:00
mnowster
aa70209ade
Merge pull request #1957 from aanand/stub-run-on-windows
...
WIP: Build Windows binary
2015-09-21 16:21:12 +01:00
mnowster
9f067fde10
Merge pull request #2078 from mnowster/aanand-remove-custom-docker-client-logic
...
Remove custom docker client initialization logic
2015-09-21 15:34:57 +01:00
Aanand Prasad
e5eaf68490
Remove custom docker client initialization logic
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-21 15:27:42 +01:00
moxiegirl
1deb534fee
Merge pull request #2066 from mnowster/reorder-reference-docs
...
Reorder reference docs
2015-09-21 06:12:49 -07:00
mnowster
b9252aa48e
Merge pull request #2032 from villlem/master
...
Flag to skip all pull errors when pulling images
2015-09-21 13:41:08 +01:00
Aanand Prasad
6817f76fd5
Merge pull request #2070 from albers/completion-run-name
...
Add bash completion for `docker-compose run --name`
2015-09-21 12:36:23 +02:00
Aanand Prasad
c950474810
Merge pull request #2071 from dnephin/fix_dist_directory_for_build
...
Restore the dist volume mount for building linux binaries
2015-09-21 12:35:58 +02:00
Aanand Prasad
36d886b8b0
Merge pull request #2073 from sdurrheimer/zsh-completion-run-name
...
Add zsh completion for 'docker-compose run --name'
2015-09-21 12:35:29 +02:00
Aanand Prasad
6ebfffed7d
Merge pull request #2074 from sdurrheimer/zsh-completion-build-pull
...
Add zsh completion for 'docker-compose build --build'
2015-09-21 12:34:51 +02:00
Aanand Prasad
18dbe1b1c0
Merge pull request #2051 from dnephin/extend_compose_files
...
Extend compose files by allowing multiple files
2015-09-21 12:34:22 +02:00
Vojta Orgon
c9083e21c8
Flag to skip all pull errors when pulling images.
...
Signed-off-by: Vojta Orgon <villlem@gmail.com>
2015-09-21 11:59:23 +02:00
Daniel Nephin
22bc174650
Refactor config.load() to remove reduce() and document some types.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-18 17:11:16 -04:00
Steve Durrheimer
51ce16cf18
Add zsh completion for 'docker-compose build --build'
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2015-09-18 22:46:08 +02:00
Steve Durrheimer
12b38adfac
Add zsh completion for 'docker-compose run --name'
...
Signed-off-by: Steve Durrheimer <steve.durrheimer@netapsys.fr>
2015-09-18 22:42:19 +02:00
Aanand Prasad
fb30498153
Catch WindowsError in call_silently
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-18 18:10:29 +01:00
Aanand Prasad
4ae7f00412
Build Windows binary
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-18 18:10:29 +01:00
Aanand Prasad
3e4182a480
Stub 'run' on Windows
...
Adapted from @dopry's work in https://github.com/docker/compose/pull/1900
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-18 18:10:17 +01:00
Aanand Prasad
bbc8b74c17
Merge pull request #2068 from mnowster/2037-jsonschema-resolver-windows-path-fix
...
Ensure RefResolver works across operating systems
2015-09-18 18:09:58 +01:00
Mazz Mosley
5509990a71
Ensure RefResolver works across operating systems
...
Slashes, paths and a tale of woe. Validation now works on windows \o/
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-18 17:51:26 +01:00
mnowster
61b819bd73
Merge pull request #2072 from albers/completion-build-pull
...
Add bash completion for `docker-compose build --pull`
2015-09-18 17:44:38 +01:00
Harald Albers
006146b2cd
Add bash completion for docker-compose run --name
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-09-18 18:18:06 +02:00
Harald Albers
af7b98ff56
Add bash completion for docker-compose build --pull
...
Also adds a fix for an error message on some completions when no
compose file is present:
docker-compose build awk: cannot open docker-compose.yml (No such file or directory)
Signed-off-by: Harald Albers <github@albersweb.de>
2015-09-18 18:12:30 +02:00
Daniel Nephin
db433041b4
Restore the dist volume mount for building linux binaries.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-18 12:08:09 -04:00
Aanand Prasad
3e58003bd3
Merge pull request #2041 from ggtools/master
...
Add new --pull option in build.
2015-09-18 16:49:05 +01:00
mnowster
e2ab2eb9d0
Merge pull request #2065 from dnephin/use-dind-image
...
Use dockerswarm/dind image for ci
2015-09-18 16:10:41 +01:00
mnowster
41660f98df
Merge pull request #2045 from dnephin/cleanup_before_build
...
Clean before doing a build
2015-09-18 11:49:05 +01:00
Mazz Mosley
0232fb10d7
Alphabetise run options
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-18 11:30:24 +01:00
Mike Bailey
aac916c73e
Alphabetise reference list
...
Bring in line with Glossary. https://docs.docker.com/reference/glossary/
Alphabetising list makes makes parsing by humans easier.
Signed-off-by: Mike Bailey <mike.bailey@rea-group.com>
Conflicts:
docs/yml.md
2015-09-18 11:25:59 +01:00
Daniel Nephin
8b29a50b52
Trim the dockerfile and re-use the virtualenv we already have.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 18:46:29 -04:00
Daniel Nephin
9978c3ea52
Update scriptests/test-versions to work with daemon args, and move docker version constants into tests-versions.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-17 17:35:49 -04:00
Aanand Prasad
eb20590ca6
Use dockerswarm/dind image instead of doing docker-in-docker ourselves
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-17 16:53:20 -04:00
Daniel Nephin
577439ea7f
Add a debug log message for config filenames.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 14:28:16 -04:00
Daniel Nephin
fd75e4bf63
Update docs about using multiple -f arguments
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 14:20:21 -04:00
Daniel Nephin
be0611bf3e
Cleanup get_default_config_files tests.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 14:13:50 -04:00
Daniel Nephin
39ae85db8a
Support a default docker-compose.override.yml for overrides
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 14:13:50 -04:00
Daniel Nephin
fe5daf860d
Move find_candidates_in_parent_dirs() into a config module so that config doesn't import from cli.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 14:13:50 -04:00
Daniel Nephin
89be7f1fa7
Unit tests for multiple files
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 14:13:50 -04:00
Daniel Nephin
831276f531
Move config_test to the correct package name.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 14:13:50 -04:00
Daniel Nephin
c0c9a7c1e4
Update integration tests for multiple file support
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 14:13:50 -04:00
Daniel Nephin
10b3188214
Support multiple config files
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 14:13:50 -04:00
Daniel Nephin
258d0fa0c6
Remove some functions from Command class
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 14:13:50 -04:00
Daniel Nephin
2121f5117e
Add docopt support for multiple files
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 14:13:50 -04:00
Daniel Nephin
aab688d27e
Merge pull request #1886 from mnowster/create-host-config-needs-version
...
Stop using deprecated `create_host_config` from utils
2015-09-17 12:37:22 -04:00
Daniel Nephin
9be748f85c
Clean before doing a build so that we don't include stale build artifacts
...
in the binaries.
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-17 12:27:51 -04:00
mnowster
1c823597bb
Merge pull request #1995 from predakanga/master
...
Added support for IPC namespaces, fixes GH-1689
2015-09-17 17:14:44 +01:00
Mazz Mosley
39ba2c5a7c
Fix leaky tests
...
It was mocking self.client but relying on the call to
utils.create_host_config which was not mocked. So now that function
has moved to also be on self.client we need to redefine the test
boundary, up to where we would call docker-py, not the result of
docker-py.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-17 17:11:00 +01:00
Mazz Mosley
6f6c04b5c9
Test what we are sending, not what we get
...
This is a unit test and we are mocking the client. The method to get
the create_config_host now lives on the client, so we mock that too.
So we can test to the boundary that the method is called with the
arguments we expect.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-17 17:11:00 +01:00
Mazz Mosley
42c890796b
Use docker.client.create_host_config
...
create_host_config from docker.utils will be deprecated so that
the new create_host_config has access to the _version so
we can ensure that network_mode only gets set to 'default' by
default if the version is high enough and won't explode.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-17 17:11:00 +01:00
mnowster
e7ce4c85fa
Merge pull request #2040 from TomasTomecek/2024-add-logo-to-docs
...
include logo in readme and docs
2015-09-17 16:59:25 +01:00
mnowster
d577cd6877
Merge pull request #2059 from ZJaffee/master
...
Change Wordpress > WordPress in the documentation #2052
2015-09-17 15:40:22 +01:00
Zachary Jaffee
fb83b4c6a4
updated wordpress format syntax
...
Signed-off-by: Zachary Jaffee <zjaffee@us.ibm.com>
2015-09-17 09:56:44 -04:00
Aanand Prasad
718f9bea17
Merge pull request #2055 from dnephin/fix_queue_lock
...
Fix stacktrace when ctrl-c stops logs
2015-09-17 11:32:23 +01:00
Daniel Nephin
c2b8d5863a
Merge pull request #2053 from dnephin/update_release_notes
...
Add 1.4.1 release notes and download instructions
2015-09-16 14:17:40 -04:00
mnowster
25d40bd5f2
Merge pull request #2058 from aanand/fix-docs-typo
...
Fix typo in docs/index.md
2015-09-16 16:41:37 +01:00
Aanand Prasad
1ed13f401f
Merge pull request #2035 from geron/patch-1
...
Fix schema.json MANIFEST.in entry
2015-09-16 12:43:27 +01:00
Aanand Prasad
bbc8765343
Fix typo in docs/index.md
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-16 12:38:59 +01:00
Daniel Nephin
bdfb21f017
Fixes #189 - stacktrace when ctrl-c stops logs
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-15 20:46:22 -04:00
Daniel Nephin
7c32fcbcf5
Add 1.4.1 release notes and download instructions.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-15 18:03:17 -04:00
Christophe Labouisse
39786d4da7
Add new --pull option in build.
...
Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
2015-09-15 20:19:17 +02:00
moxiegirl
f49fc1867c
Merge pull request #1959 from charleswhchan/patch-1
...
Touch up documentation for Docker Compose.
2015-09-15 10:17:49 -07:00
Aanand Prasad
1dabf1c366
Merge pull request #1878 from mnowster/change-default-log-driver-value
...
Change default `log_driver` value
2015-09-15 17:23:00 +01:00
Aanand Prasad
041a1ff08c
Merge pull request #2000 from mnowster/do-not-allow-booleans-in-environment
...
Disallow booleans in environment
2015-09-15 16:24:59 +01:00
Mazz Mosley
fb96ed113a
Stop sending json-file by default
...
By doing this we were over-riding any of the daemon's defaults.
Instead we can send an empty string which docker-py sends on
and the daemon interprets as, 'json-file' as a default if it
hasn't got any other daemon level config options.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-15 15:47:39 +01:00
Mazz Mosley
2f45649611
Handle invalid log_driver
...
Now docker-py isn't hardcoding a list of valid log_drivers, we
can expect an APIError in response rather than a ValueError
if we send an invalid log_driver.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-15 15:47:39 +01:00
Mazz Mosley
4b2fd7699b
Relax constraints on key naming for environment
...
One of the use cases is swarm requires at least : character, so going
from conservative to relaxed.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-15 15:33:30 +01:00
Mazz Mosley
8caeffe27e
Log a warning when boolean is found in environment
...
We're going to warn people that allowing a boolean in the environment is
being deprecated, so in a future release we can disallow it. This is to
ensure boolean variables are quoted in strings to ensure they don't get
mis-parsed by YML.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-15 15:33:30 +01:00
Mazz Mosley
a594a2ccc2
Disallow booleans in environment
...
When users were putting true/false/yes/no in the environment key,
the YML parser was converting them into True/False, rather than leaving
them as a string.
This change will force people to put them in quotes, thus ensuring
that the value gets passed through as intended.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-15 15:33:30 +01:00
mnowster
e33ab0cdd8
Merge pull request #2031 from aanand/docker-py-1.4.0
...
Update docker-py to 1.4.0
2015-09-15 15:31:52 +01:00
Aanand Prasad
1bef5cd166
Merge pull request #2014 from mnowster/improve-validation-messaging
...
Improve oneOf schema validation messaging
2015-09-15 15:29:11 +01:00
Mazz Mosley
1007ad0f86
Refactor to simplify _parse_valid_types
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-15 14:29:00 +01:00
Mazz Mosley
cf7b595385
Improve error messages from oneOf schema errors
...
oneOf schema ValidationError takes a little more work to parse and
pull out more detail so we can give a better error message back to
the user.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-15 14:29:00 +01:00
Tomas Tomecek
0bdbb33447
include logo in README
...
Resolves #2024
Signed-off-by: Tomas Tomecek <ttomecek@redhat.com>
2015-09-15 09:17:00 +02:00
Mazz Mosley
418ec5336b
Improved messaging for simple type validator
...
English language is a tricky old thing and I've pulled out the validator type
parsing so that we can prefix our validator types with the correct article,
'an' or 'a'.
Doing a bit of extra hard work to ensure the error message is clear and
well constructed english.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-14 17:23:58 +01:00
Mazz Mosley
32cd404c8c
Remove redundant oneOf definitions
...
For simple definitions where a field can be multiple types, we can
specify the allowed types in an array. It's simpler and clearer.
This is only applicable to *simple* definitions, like number, string, list,
object without any other constraints.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-14 17:23:58 +01:00
Charles Chan
a95ac0f0e0
Touch up documentation for Docker Compose.
...
index.md:
* clarify Python & Flask
* minor edits & reformatting
install.md:
* merge the elevated installation instructions with `sudo -i` discussed by @asveepay and @aanand in PR #1201 ; fixes #1081 (not sure what happened to the merge, but it's not showing up on the master branch or website)
* minor edits
Signed-off-by: Charles Chan <charleswhchan@users.noreply.github.com>
2015-09-13 20:00:55 -07:00
Aanand Prasad
d1dd06a7e2
Update docker-py to 1.4.0
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-11 15:42:20 -07:00
Aanand Prasad
dbc68ca747
Merge pull request #2018 from dnephin/fix_scale_test
...
Handle unexpected errors, but don't ignore background threads
2015-09-11 15:42:01 -07:00
Luiz Geron
1fcacae1fe
Fix schema.json MANIFEST.in entry
...
docker-compose up doesn't run after install without this.
Signed-off-by: Luiz Geron <luiz@geron.me>
2015-09-11 19:14:51 -03:00
Daniel Nephin
61415cd8bc
Fixes #1955 - Handle unexpected errors, but don't ignore background threads.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-11 17:41:10 -04:00
Aanand Prasad
e9871b084e
Merge pull request #2020 from dnephin/fix_compose_with_logs_none
...
Fix compose up with other log drivers
2015-09-11 11:22:12 -07:00
Aanand Prasad
60701a71dc
Merge pull request #2026 from ggtools/validation
...
Fix type for `tty` & `stdin_open`
2015-09-11 11:14:47 -07:00
Daniel Nephin
7d8ae9aa6d
Refactor LogPrinter to make it immutable and remove logic from the constructor.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-11 12:56:56 -04:00
Daniel Nephin
413b76e228
Fix warning message when a container uses a non-json log driver
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-11 12:54:27 -04:00
Daniel Nephin
4641d40526
Document limitation of other log drivers.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-11 12:54:27 -04:00
Aanand Prasad
b25a300895
Merge pull request #1966 from dnephin/docs_update
...
Expose the CLI reference pages a bit better from the index
2015-09-10 17:00:41 -07:00
Aanand Prasad
87a50317ad
Merge pull request #1954 from nhumrich/master
...
Allow for user relative paths on EXTEND
2015-09-10 16:35:40 -07:00
Christophe Labouisse
e80f0bdf86
Fix type for tty & stdin_open
...
Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
2015-09-10 23:49:07 +02:00
Daniel Nephin
1eb925ee31
Link between pages in the CLI reference section
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-10 13:53:26 -04:00
Daniel Nephin
4bdf57ead8
Add a where to go next section to the main index page for compose
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-10 13:53:26 -04:00
Daniel Nephin
860b304f4a
Add COMPOSE_API_VERSION to the docs
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-10 13:53:19 -04:00
Lachlan Pease
851129de6c
Added documentation for IPC config
...
Signed-off-by: Lachlan Pease <predatory.kangaroo@gmail.com>
2015-09-10 23:34:07 +10:00
Nick H
a372275c6e
Allow for user relative paths
...
'~/' in a path currently doesnt work, you get the following error:
[Errno 2] No such file or directory: u'/home/USER/folder/~/some/path/.yml'
Signed-off-by: Nick H <nick.humrich@gmail.com>
2015-09-09 14:54:08 -06:00
Aanand Prasad
9ce30e75df
Merge pull request #2016 from mnowster/remove-unique-constraint-for-command
...
Remove uniqueness constraint for command
2015-09-09 10:05:41 -07:00
Daniel Nephin
469a709a37
Merge pull request #2017 from mnowster/remove-detach-field
...
Remove mistaken field
2015-09-09 12:52:44 -04:00
Mazz Mosley
4bed5de291
Remove item unique constraint for command
...
The command value can be a list, which would be a Unix command-line
invocation broken up into individual values, thus needing the ability to
have non unique values.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-09 16:39:06 +01:00
Mazz Mosley
7223d5cee0
Remove mistaken field
...
detach is a run param, not a config param. Oops, sorry!
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-09 16:23:54 +01:00
Aanand Prasad
2273e2bd3a
Merge pull request #2011 from dnephin/add_extra_labels
...
Add more github label areas
2015-09-08 17:24:21 -07:00
Daniel Nephin
ad46757baf
Add more github label areas.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-08 19:44:25 -04:00
Aanand Prasad
85709d85d2
Merge pull request #1862 from mrfuxi/costom-container-name-in-logs
...
Use custom container name in logs
2015-09-08 14:36:28 -07:00
Aanand Prasad
f7d86d3194
Merge pull request #1944 from funkyfuture/issue-1921
...
Adds pause- and unpause-command to docopt's TLC
2015-09-08 14:05:27 -07:00
Aanand Prasad
1c73ff33fe
Merge pull request #1990 from shin-/1975-fix
...
Remove or space out suspension dots after service name
2015-09-08 12:27:39 -07:00
Aanand Prasad
abb0ab3f9d
Merge pull request #2001 from mnowster/entrypoint-allow-as-a-string
...
Allow entrypoint to be a list or string
2015-09-08 12:08:40 -07:00
Lucas N. Munhoz
b33dd3bc01
Fix error message and class name from Boot2Docker to DockerMachine
...
Signed-off-by: Lucas N. Munhoz <ln.munhoz@gmail.com>
2015-09-08 10:08:38 -03:00
Mazz Mosley
866979c57b
Allow entrypoint to be a list or string
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-07 17:26:38 +01:00
Karol Duleba
d83d6306c9
Use custom container name in logs. Fixes #1851
...
Signed-off-by: Karol Duleba <mr.fuxi@gmail.com>
2015-09-07 14:03:00 +01:00
Lachlan Pease
67957318ed
Added IPC spec to fields_schema.json
...
Signed-off-by: Lachlan Pease <predatory.kangaroo@gmail.com>
2015-09-06 12:16:12 +10:00
Lachlan Pease
2468235472
Added support for IPC namespaces, fixes GH-1689
...
Signed-off-by: Lachlan Pease <predatory.kangaroo@gmail.com>
2015-09-06 12:09:24 +10:00
Joffrey F
6da7a9194c
Remove or space out suspension dots after service name for easier copy-pasting
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-04 17:43:12 -07:00
Aanand Prasad
9da2bf3973
Merge pull request #1978 from aanand/use-docker-1.8.2-rc1
...
Test against Docker 1.8.2 RC1
2015-09-04 16:21:58 -07:00
Aanand Prasad
10cb0c921a
Merge pull request #1963 from shin-/1923-catch-timeout
...
Exit gracefully when requests encounter a ReadTimeout exception.
2015-09-04 16:14:32 -07:00
Aanand Prasad
536638aaae
Merge pull request #1962 from dnephin/use_enum_for_enum
...
Create a ConvergenceStrategy enum
2015-09-04 15:05:09 -07:00
Daniel Nephin
d84ee667ad
Merge pull request #1983 from mnowster/update-testing-docs
...
Running a single test command updated
2015-09-04 12:28:08 -04:00
Mazz Mosley
31e8137452
Running a single test command updated
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-04 17:23:22 +01:00
Daniel Nephin
ff427e68ee
Merge pull request #1982 from mnowster/fix-trailing-white-space
...
Remove trailing white space from docs/index.md
2015-09-04 12:20:29 -04:00
Mazz Mosley
0f60c783fa
Remove trailing white space
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-04 17:01:44 +01:00
Daniel Nephin
0484e22a84
Add enum34 and use it to create a ConvergenceStrategy enum.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-04 10:45:53 -04:00
mnowster
d4372bc98f
Merge pull request #1967 from charleswhchan/issue-1958
...
Fix #1958 . Remove release notes for old version of Docker Compose.
2015-09-04 11:44:33 +01:00
Charles Chan
000bf1c16a
Fix #1958 . Remove release notes for old version of Docker Compose.
...
Replace by link to the latest CHANGELOG in GitHub.
Signed-off-by: Charles Chan <charleswhchan@users.noreply.github.com>
2015-09-03 21:18:26 -07:00
Aanand Prasad
a1ec26435c
Test against Docker 1.8.2 RC1
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-03 18:30:50 -07:00
Aanand Prasad
6a47fa066e
Merge pull request #1960 from dnephin/fix_smart_recreate_when_service_is_removed
...
Fix config_hash context to properly represent the service
2015-09-03 11:41:30 -07:00
Aanand Prasad
c2f9ffad28
Merge pull request #1974 from dnephin/upgrade_requests
...
Bump requests to 2.7 to fix the ResponseNotReady() error
2015-09-03 11:38:17 -07:00
Aanand Prasad
dcf2f3f28c
Merge pull request #1970 from mnowster/fix-expose-allowed-values
...
fix expose schema definition
2015-09-03 11:36:03 -07:00
Daniel Nephin
9d7ad796a3
bump requests to 2.7 to fix the ResponseNotReady() error, and add a missing default for tox posargs
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-03 14:11:44 -04:00
Daniel Nephin
db9f577ad6
Extract link names into a function.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-03 14:08:44 -04:00
Daniel Nephin
187ad4ce26
Refactor network_mode logic out of Service.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com>
2015-09-03 13:02:46 -04:00
Daniel Nephin
c183e52502
Fixes #1757 - include all service properties in the config_dict()
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-03 12:04:38 -04:00
Daniel Nephin
08ba857807
Cleanup some project logic.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-03 12:04:38 -04:00
Daniel Nephin
e801981fed
Sort config keys
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-03 12:04:38 -04:00
Daniel Nephin
ef56523883
Make external_links a regular service.option so that it's part of the config hash
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-03 12:04:38 -04:00
Mazz Mosley
7326608369
expose array can contain either strings or numbers
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-03 16:44:01 +01:00
mnowster
2073805bc1
Merge pull request #1952 from aanand/bundle-schema-json
...
Bundle schema.json in binary
2015-09-03 10:40:11 +01:00
Aanand Prasad
ecea79fd4e
Bundle schema files
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-02 18:09:34 -07:00
Joffrey F
6a95f6d628
custom timeout test rewrite
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-02 18:00:08 -07:00
Aanand Prasad
b165ae07c9
Configure PyInstaller using docker-compose.spec
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-09-02 17:47:14 -07:00
Aanand Prasad
6baed6c354
Merge pull request #1965 from dnephin/fix_compose_up_attach
...
Attach to all containers when no service names are specified
2015-09-02 17:37:43 -07:00
Joffrey F
f9c7346380
HTTP_TIMEOUT as importable constant for consistency
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-02 16:29:19 -07:00
Joffrey F
b110bbe9e3
Refined error message when timeout is encountered.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-02 14:31:30 -07:00
Joffrey F
e634fe3fd6
Deprecation warning when DOCKER_CLIENT_TIMEOUT is used
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-02 14:28:57 -07:00
Aanand Prasad
027414cfc0
Merge pull request #1918 from dnephin/fix_scripts_test
...
Fix scripts/test and add to note about pre-commit hook to contributing
2015-09-02 14:28:51 -07:00
Aanand Prasad
0060437f57
Merge pull request #1927 from mnowster/validate-extended-services
...
Validate and interpolate extended services
2015-09-02 13:41:21 -07:00
Daniel Nephin
48466d7d82
Fix #1961 - docker-compose up should attach to all containers with no service names are specified, and add tests.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-02 16:08:18 -04:00
Joffrey F
80c9092999
Document COMPOSE_HTTP_TIMEOUT env config
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-02 12:52:48 -07:00
Joffrey F
b54b932b54
Exit gracefully when requests encounter a ReadTimeout exception.
...
Signed-off-by: Joffrey F <joffrey@docker.com>
2015-09-02 11:54:20 -07:00
Mazz Mosley
6a399a5b2f
Update tests to be compatible with validation
...
Some were missing build '.' from their dicts, others were the
incorrect type and one I've moved from integration to unit.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:43:52 +01:00
Mazz Mosley
d31d24d19f
Work around some coupling of links, net & volume_from
...
This is minimal disruptive change I could make to ensure
the service integration tests worked, now we have some validation
happening.
There is some coupling/entanglement/assumption going on here.
Project when creating a service, using it's class method from_dicts
performs some transformations on links, net & volume_from, which
get passed on to Service when creating. Service itself, then performs
some transformation on those values. This worked fine in the tests before
because those options were merely passed on via make_service_dict.
This is no longer true with our validation in place. You can't pass to
ServiceLoader [(obj, 'string')] for links, the validation expects it to be
a list of strings. Which it would be when passed into Project.from_dicts
method.
I think the tests need some re-factoring but for now, manually deleting
keys out of the kwargs and then putting them back in for Service Creation
allows the tests to continue.
I am not super happy about this approach. Hopefully we can come back and
improve it.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:43:52 +01:00
Mazz Mosley
9b8e404d13
Pass service_name to process_errors
...
Previously on Buffy... The process_errors was parsing a load of
ValidationErrors that we get back from jsonschema which included
assumptions about the state of the instance we're validating.
Now it's split in two and we're doing field separate to service,
those assumptions don't hold and we can't logically retrieve the
service_name from the error parsing when we're doing service schema
validation, have to explicitly pass this in.
process_errors is high on my list for some future re-factoring to help
make it a bit clearer, smaller state of doing things.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
f51a5431ec
Correct some schema field definitions
...
Now validation is split in two, the integration tests helped
highlight some places where the schema definition was incorrect.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
9979880c9f
Add in volume_driver
...
I'd missed out this field by accident previously.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
4b487e3957
Refactor extends back out of __init__
...
If make_service_dict is our factory function then we'll give it the
responsibility of validation/construction and resolving.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
9fa6e42f55
process_errors handle both schemas
...
Now the schema has been split into two, we need to modify the
process_errors function to accomodate.
Previously if an error.path was empty then it meant they were root
errors. Now that service_schema checks after the service has been
resolved, our service name is a key within the dictionary and
so our root error logic check is no longer true.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
950577d60f
Split validation into fields and service
...
We want to give feedback to the user as soon as possible about the
validity of the config supplied for the services.
When extending a service, we can validate that the fields are
correct against our schema but we must wait until the *end* of
the extends cycle once all of the extended dicts have been merged
into the service dict, to perform the final validation check on the
config to ensure it is a complete valid service.
Doing this before that had happened resulted in false reports of
invalid config, as common config when split out, by itself, is not
a valid service but *is* valid config to be included.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
4a8b2947ca
Interpolate extended config
...
This refactoring is now really coming together. Construction is
happening in the __init__, which is a constructor and helps
clean up the design and clarity of intent of the code. We can now
see (nearly) everything that is being constructed when a ServiceLoader
is created. It needs all of these data constructs to perform the
domain logic and actions. Which are now clearer to see and moving
more towards the principle of functions doing (mostly)one thing and
function names being more descriptive.
resolve_extends is now concerned with the resolving of extends, rather
than the construction, validation, pre processing and *then* resolving
of extends.
Happy days :)
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
36757cde1c
Validate extended service against our schema
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
37bf8235b7
Get extended config path
...
Refactored out into it's own function.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
538a501eec
Refactor validating extends file path
...
Separating out the steps we need to resolve extends, so that it
will be clear to insert pre-processing of interpolation and
validation.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
02c52ae673
Move resolve_environment within __init__
...
resolve_environment is specific to ServiceLoader, the function
does not need to be on the global scope, it is a part of the
ServiceLoader object. The environment needs to be resolved
before we can make any service dicts, it belongs in the
constructor.
This is cleaning up the design a little and being clearer
about intent and scope of functions.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
8a6061bfb9
__init__ takes service name and dict
...
Moving service name and dict out of the function make_service_dict
and into __init__. We always call make_service_dict with those so
let's put them in the initialiser. Slightly cleaner design intent.
The whole purpose of the ServiceLoader is to take a
service name&service dictionary then validate, process and return
service dictionaries ready to be created.
This is also another step towards cleaning the code up so we can
interpolate and validate an extended dictionary.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
1344533b24
filename is not optional
...
While it can be set to ultimately a value of None, when a
config file is read in from stdin, it is not optional.
We kinda make use of it's ability to be set to None in our
tests but functionally and design wise, it is required.
If filename is not set, extends does not work.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Mazz Mosley
c907f35e74
Raise if working_dir is None
...
Check for this in the init so we can remove the duplication of
raising in further functions.
A ServiceLoader isn't valid without one.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-09-02 15:42:38 +01:00
Aanand Prasad
3bee62e4c5
Merge pull request #1956 from bfirsh/link-to-zenhub
...
Link to ZenHub instead of Waffle
2015-09-01 17:31:45 -07:00
Ben Firshman
6969829a70
Link to ZenHub instead of Waffle
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-09-01 17:23:39 -07:00
Aanand Prasad
c63ae64ca6
Merge pull request #1920 from dnephin/use_pytest
...
Use py.test as a test runner
2015-09-01 15:29:24 -07:00
Daniel Nephin
c1ed1efde8
Use py.test as the test runner
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-01 16:27:44 -04:00
Daniel Nephin
6ac617bae1
Split requirements-build.txt from requirements-dev.txt to support a leaner tox.ini
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-09-01 16:27:44 -04:00
Aanand Prasad
8479108ee8
Merge pull request #1945 from dnephin/issue_triage_doc
...
Add ISSUE-TRIAGE.md
2015-09-01 13:25:37 -07:00
Daniel Nephin
74782a56b5
Fix script/test by just calling script/test-versions directly instead of launching another container.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-31 17:08:47 -04:00
Daniel Nephin
5a5f28228a
Document installing of pre-commit hooks.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-31 17:08:47 -04:00
Aanand Prasad
83c514f838
Merge pull request #1933 from dnephin/fix_scale_test_flakes
...
Fix flaky test
2015-08-31 13:52:33 -07:00
Daniel Nephin
235fe21fd0
Prevent flaky test by changing container names.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-31 14:57:06 -04:00
mnowster
17bd11c334
Merge pull request #1940 from hermanjunge/patch-1
...
Fix doc install.md
2015-08-31 10:43:30 +01:00
Daniel Nephin
8f310767a6
Add ISSUE-TRIAGE.md doc
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-28 14:10:15 -04:00
Frank Sachsenheim
a4bab13aee
Adds pause- and unpause-command to docopt's TLC
...
solves # 1921
Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
2015-08-28 19:05:19 +02:00
Herman Junge
9543cb341b
Fix doc install.md
...
termial -> terminal
Signed-off-by: Herman Junge <hermanalonsojunge@gmail.com>
2015-08-28 11:51:04 -03:00
mnowster
0074d74d7a
Merge pull request #1914 from bbirand/patch-1
...
Export COMPOSE_FILE
2015-08-28 12:13:42 +01:00
mnowster
f5d73fee57
Merge pull request #1932 from mrfuxi/image-dockerfile-validation
...
Do not allow to specify both image and dockerfile in configuration.
2015-08-28 10:12:54 +01:00
Daniel Nephin
d264c2e33a
Resolves #1804
...
Fix mutation of service.options when a label or environment variable is specified in the config.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-27 18:05:21 -04:00
Karol Duleba
477d4f491d
Do not allow to specify both image and dockerfile in configuration. Closes #1908
...
Signed-off-by: Karol Duleba <mr.fuxi@gmail.com>
2015-08-27 19:36:39 +01:00
Daniel Nephin
21c16a787a
Merge pull request #1928 from albers/completion-timeout
...
Bash completion for `docker-compose scale --timeout`
2015-08-27 12:37:55 -04:00
Daniel Nephin
d45f00df13
Merge pull request #1935 from aanand/normalise-ignore-files
...
Normalise ignore files
2015-08-27 10:39:24 -04:00
Aanand Prasad
e777d08854
Merge pull request #1924 from dnephin/python3_fix_for_logs
...
Fix `docker-compose logs` on python3
2015-08-27 14:19:42 +01:00
Aanand Prasad
b39e549c87
Normalise ignore files
...
- Consistent order and contents (where possible)
- Prepend .gitignore paths with slashes where appropriate
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-27 13:51:51 +01:00
Aanand Prasad
7c8c23e0c7
Merge pull request #1917 from sdurrheimer/master
...
Update zsh completion with last changes
2015-08-27 13:17:19 +01:00
Aanand Prasad
4602ceca18
Merge pull request #1931 from dnephin/fix_regression_in_up
...
Only show logs for listed services in `up`
2015-08-27 13:00:59 +01:00
mnowster
5865df3633
Merge pull request #1934 from aanand/fix-release-process-typo
...
Fix typo in release process docs
2015-08-27 10:38:20 +01:00
Aanand Prasad
acca22206a
Fix typo
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-27 10:36:12 +01:00
mnowster
0286d282f9
Merge pull request #1916 from aanand/improve-release-docs
...
Improve release docs
2015-08-27 10:34:32 +01:00
Daniel Nephin
3a0153859a
Resolves #1856 , fix regression in #1645 . Includes some refactoring to make testing easier.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-26 16:21:31 -04:00
Aanand Prasad
ecd1cc31dc
Merge pull request #1930 from dnephin/name_one_off_containers
...
Allow setting a one-off container name
2015-08-26 19:03:00 +01:00
Daniel Nephin
d2718bed99
Allow setting a one-off container name
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-26 13:33:03 -04:00
Daniel Nephin
bdec7e6b52
Cleanup some test case, remove unused mock return values, and use standard single underscore for unused variable
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-26 13:32:49 -04:00
Aanand Prasad
ae64f306f8
Merge pull request #1929 from dnephin/remove_flake8_ignores
...
Remove flake8 ignores and wrap the longest lines to 140 char
2015-08-26 18:19:20 +01:00
Daniel Nephin
54973e8200
Remove flake8 ignores and wrap the longest lines to 140 char.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-26 12:53:11 -04:00
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
34249fad5d
Improve release docs
...
Incorporating questions from
https://gist.github.com/aanand/e567bd8d6a5d8e28c829
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-26 17:06:10 +01:00
Daniel Nephin
9d9550c5b6
Fix log printing for python3 by converting everything to unicode.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-26 11:24:48 -04:00
Daniel Nephin
a348993d2c
Remove two unused functions from cli/utils.py
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-25 16:55:29 -04:00
Daniel Nephin
2b589606da
Move log_printer_test into correct testing module for naming convention.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-08-25 16:49:49 -04:00
Steve Durrheimer
196f0afe8d
Update zsh completion with last changes
...
- sdurrheimer/docker-compose-zsh-completion@4ff5c0d Add pause and unpause commands
- sdurrheimer/docker-compose-zsh-completion@9948d66 Add -t/--timeout flag to scale command
- sdurrheimer/docker-compose-zsh-completion@7cf14c8 Improve -p/--publish flag for the run command
- sdurrheimer/docker-compose-zsh-completion@cb16818 Don't trigger expensive completion function for flags
- sdurrheimer/docker-compose-zsh-completion@52d33fa Several cosmetic improvements and return responses
- sdurrheimer/docker-compose-zsh-completion@632ca9c Bump to version 1.5.0
- sdurrheimer/docker-compose-zsh-completion@22f92d9 Refactor compose file and project-name option flags when invoking docker-compose
- sdurrheimer/docker-compose-zsh-completion@1b512fc Refactor --help flags
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2015-08-25 22:00:32 +02:00
Aanand Prasad
fc63454c99
Merge pull request #440 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 #1915 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
Berk Birand
a57ce1b1ba
Export COMPOSE_FILE
...
The environment variable is not used by `docker-compose` without the `export` line..
Signed-off-by: Berk Birand <berk@berkbirand.com>
2015-08-24 15:48:14 -04:00
Aanand Prasad
2da8b7e511
Merge pull request #1911 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 #1766 from funkyfuture/pause_unpause
...
Adds pause and unpause-commands
2015-08-24 16:10:22 +01:00
Daniel Nephin
1212193c02
Merge pull request #1898 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 #1897 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 #1855 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 #1889 from mrfuxi/1670-images-digest
...
Allow to specify image by digest. Fixes #1670
2015-08-20 10:55:00 +01:00
Karol Duleba
56f03bc20a
Allow to specify image by digest. Fixes #1670
...
Signed-off-by: Karol Duleba <mr.fuxi@gmail.com>
2015-08-19 21:13:34 +01:00
mnowster
5028e38261
Merge pull request #1170 from benhamill/fix_bash_completion
...
Fix Bash Completion
2015-08-19 14:54:30 +01:00
mnowster
8ff208babc
Merge pull request #1847 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 #1859 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 #1870 from aanand/fix-volume-path-warning
...
Fix volume path warning
2015-08-19 14:21:19 +01:00
Aanand Prasad
6edc673aad
Merge pull request #1881 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 #1879 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 #1824 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 #1854 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 #1826
...
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 #1709
...
Signed-off-by: Karol Duleba <mr.fuxi@gmail.com>
2015-08-12 18:54:42 +01:00
Aanand Prasad
7d5e26bd37
Merge pull request #1857 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 #1853 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 #1825 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
Aanand Prasad
2134800cad
Merge pull request #1852 from mnowster/fix-testsuite-post-some-merges
...
Fix ports validation
2015-08-12 15:31:59 +01:00
Mazz Mosley
5e2ecff8a1
Fix ports validation
...
I had misunderstood the valid formats allowed for ports. They must
always be in a list.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-12 15:19:28 +01:00
Aanand Prasad
eea3b1cd6f
Merge pull request #1850 from aanand/bump-1.5.0dev
...
Bump 1.5.0dev
2015-08-12 11:18:37 +01:00
Aanand Prasad
ed31673069
Merge pull request #1827 from mnowster/port-ranges
...
Port ranges
2015-08-12 11:17:22 +01:00
Aanand Prasad
fb4c9fbb8b
Merge pull request #1808 from mnowster/129-validate-compose-yml
...
129 validate compose yml
2015-08-12 11:15:47 +01:00
Aanand Prasad
192dda4140
Bump 1.5.0dev
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-11 18:41:21 +01:00
Aanand Prasad
3e505e850f
Merge pull request #1849 from moxiegirl/final-link-check
...
Fixing links after crawl
2015-08-11 18:14:01 +01:00
Mary Anthony
d454a584da
Fixing links after crawl
...
Signed-off-by: Mary Anthony <mary@docker.com>
2015-08-11 09:38:49 -07:00
Mazz Mosley
810bb70249
Include schema in manifest
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-11 16:31:56 +01:00
Aanand Prasad
93cc7e3751
Merge pull request #1846 from aanand/fix-mem-limit-options
...
Fix mem_limit and memswap_limit regression
2015-08-11 15:59:08 +01:00
Aanand Prasad
982a845635
Fix mem_limit and memswap_limit regression
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-11 14:17:30 +01:00
Mazz Mosley
f8efb54c80
Handle $ref defined types errors
...
We use $ref in the schema to allow us to specify multiple type, eg
command, it can be a string or a list of strings.
It required some extra parsing to retrieve a helpful type to display
in our error message rather than 'string or string'. Which while
correct, is not helpful. We value helpful.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-11 13:08:12 +01:00
Mazz Mosley
68de84a0bf
Clean up error.path handling
...
Tiny bit of refactoring to make it clearer and only pop service_name
once.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-11 12:01:27 +01:00
Mazz Mosley
df14a4384d
Catch non-unique errors
...
When a schema type is set as unique, we should display the validation
error to indicate that non-unique values have been provided for a key.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-11 12:01:27 +01:00
Mazz Mosley
e0675b50c0
Retrieve sub property keys
...
The validation message was confusing by displaying only 1 level of
property of the service, even if the error was another level down.
Eg. if the 'files' property of 'extends' was the incorrect format,
it was displaying 'an invalid value for 'extends'', rather than
correctly retrieving 'files'.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-11 12:01:27 +01:00
Mazz Mosley
ece6a72712
Clean error.message
...
Unfortunately the way that jsonschema is calling %r on its property
and then encoding the complete message means I've had to do this
manual way of removing the literal string prefix, u'.
eg:
key = 'extends'
message = "Invalid value for %r" % key
error.message = message.encode("utf-8")"
results in:
"Invalid value for u'extends'"
Performing a replace to strip out the extra "u'", does not change the
encoding of the string, it is at this point the character u followed
by a '.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-11 12:01:27 +01:00
Mazz Mosley
b4872de213
Allow integer value for ports
...
While it was intended as a positive to be stricter in validation
it would in fact break backwards compatibility, which we do not
want to be doing.
Consider re-visiting this later and include a deprecation warning if
we want to be stricter.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-11 12:01:27 +01:00
Mazz Mosley
52733f6996
Merge pull request #1833 from aanand/deprecate-relative-volumes-without-dot
...
Show a warning when a relative path is specified without "./"
2015-08-11 11:21:17 +01:00
Ben Firshman
b7baa899e2
Merge pull request #1829 from vlajos/typofixes-vlajos-20150807
...
typofix - https://github.com/vlajos/misspell_fixer
2015-08-10 22:13:30 +01:00
Ben Firshman
afc9629c59
Merge pull request #1832 from aanand/use-docker-1.8.0-rc3
...
Test against Docker 1.8.0 RC3
2015-08-10 20:53:01 +01:00
Aanand Prasad
46e8e4322a
Show a warning when a relative path is specified without "./"
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-10 19:56:36 +01:00
Ben Firshman
4e12ce39b3
Merge pull request #1835 from aanand/fix-crash-when-container-has-no-name
...
Ignore containers that don't have a name
2015-08-10 18:50:00 +01:00
Ben Firshman
197d332620
Merge pull request #1836 from aanand/use-overlay-driver-in-tests
...
Use overlay driver in tests
2015-08-10 18:47:29 +01:00
Aanand Prasad
7f90e9592a
Use overlay driver in tests
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-10 18:05:09 +01:00
Aanand Prasad
dfa4bf4452
Ignore containers that don't have a name
...
If a container is in the process of being removed, or removal has
failed, it can sometimes appear in the output of GET /containers/json
but not have a 'Name' key. In that case, rather than crashing, we can
ignore it.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-10 16:29:12 +01:00
Aanand Prasad
6cb8e512f2
Merge pull request #1812 from moxiegirl/install-update-for-1811
...
Closes #1811 for Toolbox
2015-08-10 12:48:25 +01:00
Aanand Prasad
4390362366
Test against Docker 1.8.0 RC3
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-10 12:01:51 +01:00
Mary Anthony
7c128b46a1
- Closes #1811 for Toolbox
...
- Updating with comments
Signed-off-by: Mary Anthony <mary@docker.com>
2015-08-09 10:51:39 -07:00
Veres Lajos
11adca9324
typofix - https://github.com/vlajos/misspell_fixer
...
Signed-off-by: Veres Lajos <vlajos@gmail.com>
2015-08-07 22:34:24 +01:00
Mazz Mosley
d1455acb64
Update docs inline with feedback
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-07 16:30:00 +01:00
Yuval Kohavi
557cbb616c
ports documentation
...
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
2015-08-07 16:22:39 +01:00
Yuval Kohavi
0fdd977b06
fixed merge issue from previous commit
...
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
2015-08-07 16:22:39 +01:00
Yuval Kohavi
297941e460
rebasing port range changes
...
Signed-off-by: Yuval Kohavi <yuval.kohavi@gmail.com>
2015-08-07 16:22:39 +01:00
Mazz Mosley
df74b131ff
Use split_port for ports format check
...
Rather than implement the logic a second time, use docker-py
split_port function to test if the ports is valid.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-07 15:27:30 +01:00
Mazz Mosley
2e428f94ca
Refactor validation out
...
Move validation out into its own file without causing circular
import errors.
Fix some of the tests to import from the right place.
Also fix tests that were not using valid test data, as the validation
schema is now firing telling you that you couldn't "just" have this
dict without a build/image config key.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-07 12:06:34 +01:00
Mazz Mosley
0557b5dce6
Remove dead code
...
These functions weren't being called by anything.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-07 12:06:34 +01:00
Mazz Mosley
ea3608e1f4
Improve test coverage for validation
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-07 12:06:34 +01:00
Mazz Mosley
d8aee782c8
Error handling
...
jsonschema provides a rich error tree of info, by parsing each error
we can pull out relevant info and re-write the error messages.
This covers current error handling behaviour.
This includes new error handling behaviour for types and formatting of
the ports field.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-07 12:06:34 +01:00
Mazz Mosley
8d6694085d
Include remaining valid config properties
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-07 12:06:34 +01:00
Mazz Mosley
98c7a7da61
Order properties alphabetically
...
Improves readability.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-07 12:06:34 +01:00
Mazz Mosley
6c7c598546
Format validation of ports
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-07 12:06:34 +01:00
Mazz Mosley
76e6029f21
Replace service tests with config tests
...
We validate the config against our schema before a service is created
so checking whether a service name is valid at time of instantiation of
the Service class is not needed.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-07 12:06:34 +01:00
Mazz Mosley
da36ee7cbc
Perform schema validation
...
Define a schema that we can pass to jsonschema to validate against the
config a user has supplied. This will help catch a wide variety of common
errors that occur.
If the config does not pass schema validation then it raises an exception
and prints out human readable reasons.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-08-07 12:06:34 +01:00
Mazz Mosley
22b7ee42de
Merge pull request #1817 from aanand/update-volume-tests
...
Update volume tests for clarity
2015-08-06 18:09:58 +01:00
Aanand Prasad
fdaa5f2cde
Update volume tests for clarity
...
- Better method names.
- Environment variable syntax in volume paths, even when a driver is
specified, now *will* be processed (the test wasn't testing it
properly). However, `~` will still *not* expand to the user's home
directory.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-06 16:14:37 +01:00
Aanand Prasad
f7b9daf927
Merge pull request #1815 from aanand/abort-if-daemon-cant-start
...
Abort tests if daemon fails to start
2015-08-06 15:29:55 +01:00
Mazz Mosley
44f1207931
Merge pull request #1765 from aanand/interpolate-environment-variables
...
Interpolate environment variables
2015-08-06 15:13:30 +01:00
Aanand Prasad
4f14298694
Abort tests if daemon fails to start
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-06 14:45:35 +01:00
Aanand Prasad
ee6ff294a2
Show a warning when a variable is unset
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-06 14:24:11 +01:00
Aanand Prasad
8b5bd945d0
Interpolate environment variables
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-06 11:18:57 +01:00
Aanand Prasad
31ac3ce22a
Split out compose.config.errors
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-05 15:50:22 +01:00
Aanand Prasad
92ef1f5702
Make compose.config a proper module
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-08-05 15:50:22 +01:00
Mazz Mosley
a248cfd65a
Merge pull request #1692 from bfirsh/coverage
...
Add test coverage support
2015-08-05 11:32:33 +01:00
moxiegirl
8ddf37c4b3
Merge pull request #1778 from aanand/remove-script-docs
...
Remove custom docs script
2015-08-02 07:36:49 -07:00
Aanand Prasad
41b9df7639
Merge pull request #1800 from aanand/volume-driver-support
...
Support volume_driver
2015-07-31 16:28:46 +01:00
Daniel Nephin
b25f05bed4
Merge pull request #1799 from d2bit/clean-rails-quickstart-guide-db-config
...
Remove useless postgres 'port' configuration
2015-07-31 07:27:45 -07:00
Luke Marsden
a68ee0d9c2
Support volume_driver in compose
...
* Add support for volume_driver parameter in compose yml
* Don't expand volume host paths if a volume_driver is specified
(i.e., disable compose feature "relative to absolute path
transformation" when volume drivers are in use, since volume drivers
can use name where host path is normally specified; this is a
heuristic)
Signed-off-by: Luke Marsden <luke@clusterhq.com>
2015-07-31 15:23:15 +01:00
David BF
1a9ddf645d
Remove useless postgres 'port' configuration
...
Signed-off-by: David BF <burretfresket@gmail.com>
2015-07-31 14:40:29 +02:00
Daniel Nephin
ea7276031c
Merge pull request #1794 from aanand/add-test-for-trailing-slash-volume-copy
...
Add test for trailing slash volume copying bug
2015-07-30 07:18:57 -07:00
Aanand Prasad
27bd987f28
Add test for trailing slash volume copying bug
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-30 10:31:54 +01:00
Aanand Prasad
dc7bdd10d4
Merge pull request #1787 from aanand/fix-duplicate-volume-bind
...
Fix "Duplicate volume mount" error when config has trailing slashes
2015-07-30 09:59:08 +01:00
Aanand Prasad
b47bb84ea1
Merge pull request #1754 from aanand/wait-for-all-containers-to-exit
...
Wait for all containers to exit
2015-07-30 09:58:49 +01:00
Aanand Prasad
80d90a745a
Make sure an exception in any iterator gets raised in the main thread
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
Conflicts:
compose/cli/multiplexer.py
2015-07-29 19:42:33 +01:00
Aanand Prasad
a9942b512a
Wait for all containers to exit when running 'up' interactively
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-29 19:42:33 +01:00
Aanand Prasad
27378704df
Isolate STOP logic in multiplexer module
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-29 19:42:33 +01:00
Aanand Prasad
03c3d4c768
generator -> iterator
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-29 19:42:33 +01:00
Aanand Prasad
9768872507
Fix "Duplicate volume mount" error when config has trailing slashes
...
When an image declares a volume such as `/var/lib/mysql`, and a Compose
file has a line like `./data:/var/lib/mysql/` (note the trailing slash),
Compose creates duplicate volume binds when *recreating* the container.
(The first container is created without a hitch, but contains multiple
entries in its "Volumes" config.)
Fixed by normalizing all paths in volumes config.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-29 18:42:08 +01:00
Aanand Prasad
276e369c31
Merge pull request #1777 from aanand/update-api-version
...
Update API version to 1.19
2015-07-29 16:59:42 +01:00
Aanand Prasad
118a389646
Update API version to 1.19
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-29 15:44:21 +01:00
Aanand Prasad
2759ab5ab6
Merge pull request #1780 from gheart/specify_api_version_via_env
...
Allow API version specification via env var
2015-07-29 15:42:57 +01:00
Aanand Prasad
1496734cbb
Merge pull request #1779 from aanand/mac-binary-error-hint
...
Add hint about OS X binary compatibility
2015-07-29 15:06:55 +01:00
Reilly Herrewig-Pope
fc203d643a
Allow API version specification via env var
...
Hard-coding the API version to '1.18' with the docker-py constructor will
cause the docker-py logic at
https://github.com/docker/docker-py/blob/master/docker/client.py#L143-L146
to always fail, which will cause authentication issues if you're using a
remote daemon using API version 1.19 - regardless of the API version of
the registry.
Allow the user to set the API version via an environment variable. If
the variable is not present, it will still default to '1.18' like it
does today.
Signed-off-by: Reilly Herrewig-Pope <reilly.herrewigpope@mandiant.com>
2015-07-29 08:44:47 -04:00
Aanand Prasad
b08e23d351
Add hint about OS X binary compatibility
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-29 10:44:38 +01:00
Aanand Prasad
430ba8cda3
Remove custom docs script
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-28 16:59:37 +01:00
Aanand Prasad
487eae3b7b
Merge pull request #1774 from moxiegirl/test-entire-build
...
Contributors can build public docs with compose docs in context
2015-07-28 15:03:46 +01:00
Mary Anthony
7eabc06df5
Updating build so that contributors can build public docs
...
Changed base image
Signed-off-by: Mary Anthony <mary@docker.com>
2015-07-27 09:43:16 -07:00
Aanand Prasad
e832e86f09
Merge pull request #1762 from aanand/update-changelog-and-install
...
Update CHANGES.md and install.md for latest stable version
2015-07-23 16:37:02 +01:00
Daniel Nephin
33a108f9bb
Merge pull request #1760 from alunduil/add-completion-to-sdist
...
add all completions to sdist
2015-07-23 07:34:30 -07:00
Mazz Mosley
65cc84140a
Merge pull request #1736 from aanand/deprecate-allow-insecure-ssl
...
Deprecate --allow-insecure-ssl
2015-07-23 14:09:17 +01:00
Aanand Prasad
227435f613
Update CHANGES.md and install.md for latest stable version
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-23 11:09:27 +01:00
Aanand Prasad
70c7d27c4e
Merge pull request #1758 from mnowster/improve-scale-test-coverage
...
Improve scale test coverage
2015-07-23 11:07:48 +01:00
Aanand Prasad
04a773f1c8
Deprecate --allow-insecure-ssl
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-23 10:56:21 +01:00
Aanand Prasad
f4dac02947
Update docker-py to 1.3.1
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-23 10:56:21 +01:00
Mazz Mosley
2c8aade13e
Space for errors
...
It was harder to see when there are errors if they came straight after
the other output. Putting a newline in there gives it a bit of visual
room.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-23 10:55:57 +01:00
Mazz Mosley
119901c19b
Improve test coverage for scale
...
Also includes tiny amount of code cleanup, being explicit with imports.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-23 10:55:57 +01:00
Alex Brandt
ef44c46c72
add all completions to sdist
...
The zsh completion was recently added but missed from the sdist. This
includes all completions that might be added at any point.
Signed-off-by: Alex Brandt <alunduil@alunduil.com>
2015-07-22 21:17:15 -05:00
Aanand Prasad
fc32ccefca
Merge pull request #1755 from aanand/fix-container-name-one-off
...
Don't use custom name for one-off containers
2015-07-22 18:14:31 +01:00
Aanand Prasad
1739448402
Don't use custom name for one-off containers
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-22 15:39:56 +01:00
Mazz Mosley
620dac53f6
Merge pull request #1746 from aanand/remove-logging-test
...
Remove logging test
2015-07-21 16:34:58 +01:00
Aanand Prasad
dc62279d02
Merge pull request #1734 from mnowster/1653-scale-in-parallel
...
Parallelise scale
2015-07-21 16:02:04 +01:00
Aanand Prasad
4035a203fa
Merge pull request #1745 from bfirsh/2015-07-21-roadmap-update
...
Update roadmap with state convergence
2015-07-21 16:01:13 +01:00
Aanand Prasad
233c509f71
Remove logging test
...
It doesn't do much other than cause the remainder of the test suite to
generate lots of junk output.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-21 15:56:37 +01:00
Mazz Mosley
e1c1a4c0aa
Scale restarts stopped containers
...
This is existing behaviour and should be kept.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-21 15:41:22 +01:00
Ben Firshman
41406cdd68
Update roadmap with state convergence
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-07-21 15:37:55 +01:00
Mazz Mosley
cc0bfea8a1
Merge pull request #1711 from aanand/custom-names
...
Add container_name option for specifying a custom container name
2015-07-21 14:28:16 +01:00
Mazz Mosley
090879b67a
Merge pull request #1737 from aanand/update-completion-for-force-recreate
...
Update bash and zsh completion for --force-recrate
2015-07-21 12:18:16 +01:00
Mazz Mosley
3ec7124539
Merge pull request #1742 from DoubleMalt/patch-1
...
Fix required version of websockets-client
2015-07-21 12:16:23 +01:00
Mazz Mosley
f721389447
Merge pull request #1743 from aanand/fix-stream-stack-trace
...
Stop printing a stack trace when there's an error when pulling
2015-07-21 12:15:18 +01:00
Mazz Mosley
da650e9cfd
Refactor parallel execute
...
Refactored parallel execute and execute create into a single function
parallel_execute that can now handle both cases. This helps untangle it
from being so tightly coupled to the container.
Updated all the relevant operations to use the refactored function.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-21 11:56:59 +01:00
Aanand Prasad
38a6209acd
Stop printing a stack trace when there's an error when pulling
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-21 11:07:20 +01:00
Christoph Witzany
04b7490ef2
Fix required version of websockets-client
...
Signed-off-by: Christoph Witzany <christoph@web.crofting.com>
2015-07-21 11:59:32 +02:00
Aanand Prasad
d1fdf1b809
Update bash and zsh completion for --force-recrate
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-20 17:18:39 +01:00
Mazz Mosley
5c29ded6ac
Parallelise scale
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-20 16:33:04 +01:00
Mazz Mosley
85c90daa18
Merge pull request #1731 from aanand/fix-ctrl-c
...
Make parallel tasks interruptible with Ctrl-C
2015-07-20 16:05:26 +01:00
Aanand Prasad
4ba9d9dac2
Make parallel tasks interruptible with Ctrl-C
...
The concurrent.futures backport doesn't play well with
KeyboardInterrupt, so I'm using Thread and Queue instead.
Since thread pooling would likely be a pain to implement, I've just
removed `COMPOSE_MAX_WORKERS` for now. We'll implement it later if we
decide we need it.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-20 14:13:25 +01:00
Aanand Prasad
4ffae4a1ac
Merge pull request #1725 from moxiegirl/update-docs-dockerfile
...
Updating with the latest image
2015-07-20 12:00:18 +01:00
Aanand Prasad
5f6d0d0824
Merge pull request #1721 from moxiegirl/remove-boot2docker-1720
...
Removing references to boot2docker
2015-07-20 11:52:15 +01:00
Aanand Prasad
05d8daa8e0
Merge pull request #1710 from mnowster/improve-output-for-parallel-executions
...
Improve output for parallel command
2015-07-20 11:49:37 +01:00
Aanand Prasad
9df2be80a8
Merge pull request #1717 from aanand/fix-up-docs
...
Fix regression in docs for 'up'
2015-07-20 11:45:50 +01:00
Mazz Mosley
9d9b865796
Add in error handling
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-20 10:21:49 +01:00
Mazz Mosley
61787fecea
Resolve race condition
...
Sometimes, some messages were being executed at the same time, meaning
that the status wasn't being overwritten, it was displaying on a
separate line for both doing and done messages.
Rather than trying to have both sets of statuses being written out
concurrently, we write out all of the doing messages first. Then
the done messages are written out/updated, as they are completed.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-20 10:21:49 +01:00
Mary Anthony
949dd5b2c7
Updating with the latest image
...
Signed-off-by: Mary Anthony <mary@docker.com>
2015-07-19 16:08:01 -07:00
Mary Anthony
4ca210edd7
Removing references to boot2docker
...
- Replace with machine references
- 1.8 boot2docker is deprecated
Signed-off-by: Mary Anthony <mary@docker.com>
2015-07-17 16:17:46 -07:00
Aanand Prasad
4b4c4f37bd
Merge pull request #1718 from moxiegirl/propos-alternates
...
remove cli
2015-07-17 17:25:08 +01:00
Mary Anthony
2407193594
remove cli
...
Signed-off-by: Mary Anthony <mary@docker.com>
2015-07-17 09:15:29 -07:00
Aanand Prasad
98eab03c61
Merge pull request #1068 from likeon/master
...
Docs: yml link in getting started with django
2015-07-17 17:11:38 +01:00
Aanand Prasad
faa7da6eff
Merge pull request #1515 from aanand/allow-any-volume-mode
...
Allow any volume mode to be specified
2015-07-17 17:10:59 +01:00
Aanand Prasad
89f6caf871
Allow any volume mode to be specified
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-17 16:14:09 +01:00
Aanand Prasad
a3191ab90f
Add container_name option
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-17 15:50:09 +01:00
Aanand Prasad
35092f1d5e
Fix regression in docs for 'up'
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-17 15:29:02 +01:00
Aanand Prasad
445fe89fce
Tweak wording of scale warning
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-17 15:24:17 +01:00
Aanand Prasad
9ffe69a572
Refactor can_be_scaled for clarity
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-17 15:24:17 +01:00
Aanand Prasad
6ca781416e
Merge pull request #1715 from moxiegirl/propos-alternates
...
Updating Compose documentation
2015-07-17 15:23:53 +01:00
Mary Anthony
36f4d413fd
Updating Compose documentation
...
- Split out commands into individual pages for maintainability
- Add full usage in commands pages for usability
- Updated description of the run command
- adding in Aanand's comment
Signed-off-by: Mary Anthony <mary@docker.com>
2015-07-17 07:05:45 -07:00
Mazz Mosley
c8643828d2
Merge pull request #1702 from aanand/smart-recreate-by-default
...
Smart recreate by default
2015-07-17 14:39:40 +01:00
Aanand Prasad
ced94a3504
Make smart recreate the default
...
Add --force-recreate flag to enable the old default behaviour of
recreating everything.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-17 11:28:02 +01:00
Aanand Prasad
b2cb5a48d2
Merge pull request #1714 from aanand/scale-timeout
...
Make scale timeout configurable, default to 10
2015-07-17 10:13:30 +01:00
Aanand Prasad
9d0bbdf8dd
Make scale timeout configurable, default to 10
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-16 16:39:38 +01:00
Aanand Prasad
ca298309e0
Merge pull request #1713 from mnowster/increase-default-worker-number
...
Increase max-workers
2015-07-16 16:33:01 +01:00
Mazz Mosley
29f51f8216
Increase max-workers
...
There's significant speed improvement by having more workers. This
value still shouldn't cause anyone's machines to melt/explode.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-16 16:17:26 +01:00
Mazz Mosley
da6cbd4535
Improve output for parallel command
...
This approach takes the style of replacing the output message, in
place, when the command has finished executing. Bringing it a bit
more inline with what `docker pull` does.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-16 11:51:45 +01:00
Mazz Mosley
c7dccccd1f
Merge pull request #1704 from aanand/fix-timeout-type
...
Make sure up/restart/stop timeout is an int
2015-07-16 10:50:06 +01:00
Mazz Mosley
3a775388b2
Merge pull request #1698 from aanand/use-docker-1.7.1
...
Test against Docker 1.6.2 and 1.7.1
2015-07-16 10:48:24 +01:00
moxiegirl
947bce043e
Merge pull request #1699 from bfirsh/link-to-waffle-board-from-contributing
...
Link to waffle board from CONTRIBUTING.md
2015-07-15 15:13:51 -07:00
Aanand Prasad
7b9664be8e
Merge pull request #1705 from aanand/fix-labels-null
...
Handle case where /containers/json returns "Labels": null
2015-07-15 17:30:31 +01:00
Aanand Prasad
0c5c8d1f00
Handle case where /containers/json returns "Labels": null
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-15 17:13:33 +01:00
Mazz Mosley
5a46230555
Merge pull request #1703 from aanand/rename-max-workers
...
Rename max workers environment variable
2015-07-15 16:59:53 +01:00
Aanand Prasad
ec8bf066ba
Make sure up/restart/stop timeout is an int
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-15 16:56:39 +01:00
Aanand Prasad
f03dec766d
Rename max workers env var and fix docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-15 16:43:43 +01:00
Aanand Prasad
35aef1aee0
Merge pull request #1687 from mnowster/1651-parallelise-stopping-containers
...
1651 parallelise stopping containers
2015-07-15 16:29:54 +01:00
Aanand Prasad
6c7c63ce34
Merge pull request #1693 from ekristen/remove_tty_wrap
...
Do not wrap table cells
2015-07-15 16:27:27 +01:00
Aanand Prasad
e675d67774
Test against Docker 1.6.2 and 1.7.1
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-15 14:37:44 +01:00
Ben Firshman
200b408843
Link to waffle board from CONTRIBUTING.md
...
Closes #1067
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-07-15 11:56:46 +01:00
Mazz Mosley
03d34336a8
Document DEFAULT_MAX_WORKERS
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-15 11:56:06 +01:00
Aanand Prasad
847f839cab
Merge pull request #1559 from aanand/update-swarm-docs
...
Update Swarm docs
2015-07-15 11:43:10 +01:00
Mazz Mosley
a68ca199a2
Execute container commands in parallel
...
Commands able to use this parallelisation are `stop`, `kill` and `rm`.
We're using a backported function from python 3, to allow us to make
the most of a pool of threads without having to write the low level
code for managing this ourselves.
A default value for number of threads is a low enough number so it
shouldn't cause performance problems but if someone knows the
capability of their system and wants to increase it, they can via
an environment variable DEFAULT_MAX_WORKERS
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-15 11:02:50 +01:00
Ben Firshman
aab6df6ba4
Add test coverage support
...
Prints out results on console and puts HTML report in `coverage-html`.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-07-15 10:09:37 +01:00
Erik Kristensen
7937611366
change 80 to 0
...
Signed-off-by: Erik Kristensen <erik@erikkristensen.com>
2015-07-14 12:31:00 -06:00
Erik Kristensen
b7edb3ca9d
do not wrap table cells
...
Signed-off-by: Erik Kristensen <erik@erikkristensen.com>
2015-07-14 12:30:42 -06:00
Aanand Prasad
1e71eebc74
Merge pull request #1688 from aanand/use-docker-py-1.3.0
...
Use docker-py 1.3.0
2015-07-14 16:55:44 +01:00
Aanand Prasad
fdc34a187e
Use docker-py 1.3.0
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-14 16:17:12 +01:00
Mazz Mosley
2db0a377e2
Minor test refactor
...
Rather than creating a docker client within each test, create one
at setup and make it accessible to the whole class.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-13 14:11:12 +01:00
Aanand Prasad
81707ef1ad
Merge pull request #1643 from aanand/warn-about-legacy-one-off-containers
...
Show an error on 'run' when there are legacy one-off containers
2015-07-08 14:48:03 +01:00
Aanand Prasad
a8ad13734e
Merge pull request #1666 from mnowster/docs-for-extends-file-default-behaviour
...
Docs for `file` default behaviour
2015-07-07 17:12:29 +01:00
Aanand Prasad
8b033d3946
Merge pull request #1665 from mnowster/1648-support-log-opt
...
1648 support log opt
2015-07-07 17:08:04 +01:00
Mazz Mosley
ef8ae07145
Docs for file default behaviour
...
Change in behaviour, `file` key is optional and if not set the
default is to look within the same file as `extends` is defined.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-07 17:01:09 +01:00
Mazz Mosley
6f31e8ebe9
Add support for log_opt
...
When specifying a log_driver you want to specify some options for
the logger as per the docker run --log-opt option. The logger
options are key value pairs.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-07 16:26:43 +01:00
Aanand Prasad
2bc10db545
Merge pull request #1658 from aanand/fix-smart-recreate-nonexistent-image
...
Fix smart recreate when 'image' is changed to something nonexistent
2015-07-07 16:12:44 +01:00
Aanand Prasad
531265bc84
Fix smart recreate when 'image' is changed to something nonexistent
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-07 16:01:44 +01:00
Mazz Mosley
c1223bfd3a
Keep config keys in alphabetised order
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-07 12:02:05 +01:00
Aanand Prasad
e9da790f76
Merge pull request #1660 from mnowster/754-add-option-memswap-limit
...
Add in memswap_limit run option
2015-07-07 10:09:49 +01:00
Mazz Mosley
fc26982132
Add in memswap_limit run option
...
By allowing the memswap_limit option to be defined we also need to
check that mem_limit is set, you can't have swap without a limit.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-06 17:08:57 +01:00
Aanand Prasad
e98caf5cf9
Show an error on 'run' when there are legacy one-off containers
...
Also warn the user about the one-off containers in the standard error
message about legacy containers.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-06 14:45:17 +01:00
Daniel Nephin
20218394b9
Merge pull request #1649 from albers/doc-completion-zsh
...
Mention zsh command completion in general install section
2015-07-06 06:41:09 -07:00
Aanand Prasad
fc8f564558
Merge pull request #1632 from mnowster/extends_file_default_behaviour
...
Extends file default behaviour and fixes circular reference bug
2015-07-06 13:28:54 +01:00
Aanand Prasad
0fa5808389
Merge pull request #1623 from mnowster/documentation-fixes
...
Documentation fixes
2015-07-06 13:25:56 +01:00
Harald Albers
2fc7cd6e03
Mention zsh command completion in general install section
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-07-05 19:18:24 +02:00
Aanand Prasad
d90202399a
Merge pull request #1645 from dnephin/fix_up_race
...
Fix race condition in docker-compose up
2015-07-03 16:28:22 +01:00
Aanand Prasad
f42fd6a3ad
Merge pull request #1642 from aanand/fix-1573
...
Fix bug where duplicate container is leftover after 'up' fails
2015-07-03 16:25:53 +01:00
Aanand Prasad
d85688892c
Merge pull request #1644 from aanand/fix-rm-bug
...
Stop 'rm' and 'ps' listing services not defined in the current file
2015-07-03 16:22:48 +01:00
Daniel Nephin
bd554a6fea
Fix race condition in docker-compose up.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-07-03 10:29:46 -04:00
Mazz Mosley
317bbec98c
Move make_service_dict out of config
...
This top level function is a test helper, so I've moved it into the
config_test file and updated accordingly.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-03 15:06:53 +01:00
Mazz Mosley
6e6dbdad95
working_dir is no longer optional
...
When building test data using make_service_dict, we need to include
working_dir as it is core to some of the functionality of
ServiceLoader.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-03 14:56:18 +01:00
Aanand Prasad
0b887b841f
Stop 'rm' and 'ps' listing services not defined in the current file
...
If you have an alternate YAML file with different services defined,
containers for those services will be shown in `docker-compose ps` even
if you don't pass that file in.
Furthermore, `docker-compose rm` will claim that it's going to remove
them, but actually won't.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-03 14:34:27 +01:00
Mazz Mosley
c6e03d739d
Test self referencing 'file'
...
When specifying the 'file' key to a value of it's own name, test
that this works and does not cause a false positive circular reference
error.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-03 14:14:47 +01:00
Mazz Mosley
6a6e7934bd
Refactor circular-reference check
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-03 14:05:35 +01:00
Mazz Mosley
ba71e2a549
Use new load_from_filename
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-03 14:05:14 +01:00
Mazz Mosley
c51d53afba
Fix off by one error
...
In our circular reference check the stack was previously off by one,
by not including the current service name that was calling another.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-03 12:24:33 +01:00
Mazz Mosley
bd7fcd1123
Use absolute paths
...
A circular reference bug occurs when there is a difference in the paths
of the file specified in the extends. So one time it is relative, second
time is absolute thus allowing a further circular reference to occur.
By using absolute paths we can be sure that the service filename check
is correct.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-03 12:21:12 +01:00
Mazz Mosley
254bc4908c
Move extends validation into ServiceLoader class
...
This refactoring allows us to raise an error when there is no
'file' key specified in the .yml and no self.filename set. This
error was specific to the tests, as the tests are
the only place that constructs service dicts without sometimes
setting a filename.
Moving the function within the class as well as it is code that
is exclusively for the use of validating properties for the
ServiceLoader class.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-03 11:26:31 +01:00
Mazz Mosley
24c1d95869
Refactor extends validation tests
...
Split them out into individual validation tests so it is clearer
to see what is going on and to enable adding further validation
tests.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-03 11:26:31 +01:00
Mazz Mosley
5e2d43843c
Reduce path manipulation
...
If we're using self.filename, then it's already a full path and we
don't need to splice off the filename.yml just so we can .join it
back together again.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-03 11:26:31 +01:00
Mazz Mosley
6e4a954dbd
'file' key can be omitted from extends
...
If the 'file' key is not set in the extends_options dict then we
look for the 'service' from within the same file.
Fixes this issue: https://github.com/docker/compose/issues/1237
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-03 11:26:30 +01:00
Mazz Mosley
31dedd8bdd
Rename function process to validate
...
The process function contained purely validation checks, so re-named
the function to aid intent clarity.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-03 11:26:30 +01:00
Aanand Prasad
62b47224f0
Fix bug where duplicate container is leftover after 'up' fails
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-03 10:46:07 +01:00
Aanand Prasad
db7e5124f3
Merge pull request #1488 from dnephin/config_from_stdin
...
Support reading config from stdin
2015-07-03 09:03:40 +01:00
Aanand Prasad
a6b9982a1e
Merge pull request #1633 from jeffk/parse_env_vars_in_all_volumes
...
Added env var parsing to volume container paths
2015-07-03 08:55:48 +01:00
Aanand Prasad
40b8c3c892
Merge pull request #1624 from mnowster/1519_relax_service_name_restrictions
...
1519 relax service name restrictions
2015-07-03 08:54:16 +01:00
Daniel Nephin
ae96fc0071
Support reading config from stdin.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-07-02 22:16:22 -04:00
Ben Hamill
58f3b576c9
Replace - with _ in completion identifiers.
...
Signed-off-by: Ben Hamill <git-commits@benhamill.com>
2015-07-02 14:20:53 -05:00
Jeff Kramer
8709dc3c24
Added env var parsing to volume container paths
...
This commit adds environment variable parsing to the container side
of the volume mapping in configs. The common use case for this is
mounting SSH agent sockets in a container, using code like:
volumes:
- $SSH_AUTH_SOCK:$SSH_AUTH_SOCK
environment:
- SSH_AUTH_SOCK
Signed-off-by: Jeff Kramer <jeff.kramer@voxmedia.com>
2015-07-02 13:13:38 -05:00
Mazz Mosley
a8ea82f78f
Improve link caption
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-02 15:39:22 +01:00
Mazz Mosley
cd2cdb25e3
Merge pull request #1631 from aanand/add-mazz-to-maintainers
...
Add Mazz to MAINTAINERS
2015-07-02 14:20:39 +01:00
moxiegirl
5185c9f70a
Merge pull request #1619 from AndyWendt/patch-1
...
Added uninstall documentation for pip and curl
2015-07-02 06:07:59 -07:00
Mazz Mosley
f0dd63d5bc
Don't use future tense
...
As per style-guide, future tense is not necessary.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 18:06:09 +01:00
Mazz Mosley
9549bd0539
Initial cap Docker
...
Use lowercase docker only when referencing a command/daemon
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 18:05:21 +01:00
Mazz Mosley
f33f673b49
Allow _.- chars in service names
...
As VALID_CHARS is shared with project names, these chars are also
now allowed within project names.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 17:57:50 +01:00
Mazz Mosley
8cf84ea552
Fix missing image names
...
These tests were indeed raising a config error, but not for the reason
intended/tested for. I've added in the image name so the config error
raise is correctly testing the Service name.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 17:57:50 +01:00
Mazz Mosley
8a47791161
Re-arrange for the more common case
...
boot2docker is the more common case so let's have that one first.
Also be more explicit and clear that the localhost:5000 is applicable
for people running on linux.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 16:20:29 +01:00
Mazz Mosley
ab03f2310b
Include zsh shell
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 16:20:29 +01:00
Mazz Mosley
94ecc515d3
Link to docker's contrib workflow
...
This will aid people in how to make pull requests for code and docs.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 16:20:29 +01:00
Mazz Mosley
098ec3dcaa
Add in git fork syncing links
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 15:58:11 +01:00
Mazz Mosley
4e0f4aa20a
Split out release process
...
To aid clarity in how to contribute, I've moved the release process
out into it's own RELEASE_PROCESS.md file. The release process info
is only relevant for maintainers who are building new releases of
compose.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 15:58:11 +01:00
Mazz Mosley
c45c16cead
Improve localhost & boot2docker info
...
Added a link to boot2docker for those unfamiliar with it.
http://0.0.0.0:5000 didn't resolve for me, however localhost:5000
did, so included reference to that.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 15:58:11 +01:00
Mazz Mosley
d0c499329e
Add a note not to worry
...
When reading through the code for the first time and seeing redis,
those unfamiliar with docker first thought might be that they need
to install redis. Adding this sentence helps make it clearer that
this is not needed. Docker will take care of this in services.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 15:58:10 +01:00
Mazz Mosley
4c31741ac9
Include command completion link
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 15:58:10 +01:00
Mazz Mosley
a7a0888446
Re-phrasing for clarity
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 15:58:10 +01:00
Mazz Mosley
4d69a57edd
Include flask output
...
When running `docker-compose up`, an extra line of output, from flask,
is outputted. I've included it so anyone new to docker-compose who
sees this output will know that it's expected and not worry that
something might have gone wrong.
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 15:58:10 +01:00
Mazz Mosley
3906bd067e
Remove redundant import
...
Signed-off-by: Mazz Mosley <mazz@houseofmnowster.com>
2015-07-01 15:58:10 +01:00
Aanand Prasad
63941b8f6c
Add Mazz to MAINTAINERS
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-07-01 15:38:07 +01:00
Aanand Prasad
75600e37ad
Merge pull request #1605 from sdurrheimer/zsh-help-completion
...
Add --help to subcommands in zsh completion
2015-07-01 12:36:25 +01:00
Andy Wendt
8197d0e261
Added uninstall documentation for pip and curl
...
Signed-off-by: Andy Wendt <andy@awendt.com>
2015-06-30 10:27:44 -06:00
Steve Durrheimer
745e838673
Add --help to subcommands in zsh completion
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2015-06-26 09:00:47 +02:00
Daniel Nephin
8346186469
Merge pull request #1603 from albers/completion-help-option
...
Add --help to bash completion
2015-06-25 17:59:06 -07:00
Harald Albers
9a8020d1bf
Add --help to bash completion
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-06-25 14:04:03 -07:00
Aanand Prasad
bee65e8354
Merge pull request #1587 from aanand/fix-detached-description
...
Fix -d description
2015-06-23 08:36:02 -07:00
Aanand Prasad
104568b27b
Merge branch 'compose-swarm-networking-guide'
2015-06-22 08:44:52 -07:00
Aanand Prasad
52975eca6f
Fixes
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-22 08:44:41 -07:00
Aanand Prasad
4647875408
Merge pull request #1589 from aanand/compose-swarm-networking-guide
...
Add experimental Compose/Swarm/multi-host networking guide
2015-06-22 07:59:17 -07:00
Aanand Prasad
16213dd493
Add experimental Compose/Swarm/multi-host networking guide
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-22 07:58:08 -07:00
Aanand Prasad
c8751980f9
Merge pull request #1578 from aanand/fix-migrate-help
...
Fix 'docker-compose help migrate-to-labels'
2015-06-21 17:25:52 -07:00
Aanand Prasad
4f83a18912
Merge pull request #1570 from aanand/fix-build-pull
...
Explicitly set pull=False when building
2015-06-21 17:25:46 -07:00
Aanand Prasad
52c19bf96c
Fix -d description
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-21 13:06:25 -07:00
Aanand Prasad
81cbf558c3
Merge pull request #1586 from aanand/replace-ticks-with-indent
...
Replace backtick code blocks with indentation
2015-06-21 13:03:19 -07:00
Aanand Prasad
511fc4a05c
Replace backtick code blocks with indentation
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-21 12:37:20 -07:00
Ben Firshman
911cd60360
Merge pull request #1580 from aanand/dont-set-network-mode-when-none-is-specified
...
Don't set network mode when none is specified
2015-06-19 16:01:04 -07:00
Aanand Prasad
93372dd665
Fix 'docker-compose help migrate-to-labels'
...
- Fix "No such command" error
- Add text from migration section of install docs
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-19 15:43:53 -07:00
Aanand Prasad
c22cc02df5
Don't set network mode when none is specified
...
Setting a value overrides the new default network option.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-19 15:22:13 -07:00
Aanand Prasad
37ee6b0c19
Merge pull request #1575 from moxiegirl/fix-yaml-code
...
Updating from three ticks to code block
2015-06-19 11:55:57 -07:00
Aanand Prasad
efee2df310
Merge pull request #1572 from sdurrheimer/fix-completion-docs-urls
...
Fix completion docs URLs
2015-06-19 11:42:39 -07:00
Steve Durrheimer
d0102f0761
Fix completion docs URLs
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2015-06-19 17:57:18 +02:00
Mary Anthony
c3df62472b
Updating from three ticks to code block
...
Signed-off-by: Mary Anthony <mary@docker.com>
2015-06-19 02:28:09 -07:00
Aanand Prasad
bef0926c58
Explicitly set pull=False when building
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-18 17:43:16 -07:00
Daniel Nephin
c7c88bb4ff
Merge pull request #1566 from aanand/bump-1.4.0dev
...
Bump 1.4.0dev
2015-06-18 19:57:53 -04:00
Aanand Prasad
5aa82a5519
Bump 1.4.0dev
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-18 11:56:43 -07:00
Aanand Prasad
8ffeaf2a54
Merge pull request #1565 from aanand/use-docker-1.7.0
...
Use docker 1.7.0 and docker-py 1.2.3
2015-06-18 11:23:40 -07:00
Aanand Prasad
ac56ef3d65
Update docker-py to 1.2.3 final
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-18 11:11:51 -07:00
Aanand Prasad
ae96e1af16
Use Docker 1.7.0
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-18 10:34:34 -07:00
Aanand Prasad
4e73e86d94
Merge pull request #1563 from moxiegirl/hugo-test-fixes
...
Hugo final 1.7 Documentation PR -- please read carefully
2015-06-18 10:20:10 -07:00
Mary Anthony
c26b1c8ee9
Entering fixes from Hugo
...
renaming compose-overview back to index
Updating with fixes per Aanand. And others found through test
Signed-off-by: Mary Anthony <mary@docker.com>
2015-06-17 21:50:43 -07:00
Aanand Prasad
77c939b256
Merge pull request #1142 from calou/master
...
Added support of option mac-address
2015-06-17 14:39:00 -07:00
Sébastien Gruchet
b76ac6e633
Added support to option mac-address
...
Signed-off-by: Sébastien Gruchet <gruchet@gmail.com>
Updated doc
Signed-off-by: Sébastien Gruchet <gruchet@gmail.com>
Fixed LINT errors
Signed-off-by: Sébastien Gruchet <gruchet@gmail.com>
Changed mac-address entry order in config keys
Signed-off-by: Sébastien Gruchet <gruchet@gmail.com>
Changed attributes order in docs/yml.md
Signed-off-by: Sébastien Gruchet <gruchet@gmail.com>
2015-06-17 21:28:17 +02:00
Daniel Nephin
26ea27172e
Merge pull request #1558 from aanand/use-docker-1.7-rc4
...
Use Docker 1.7 RC5
2015-06-16 22:01:50 -04:00
Aanand Prasad
bc7161b475
Merge pull request #1552 from aanand/add-upgrade-instructions
...
Add upgrading instructions to install docs
2015-06-16 16:26:40 -07:00
Aanand Prasad
e0af1a44ea
Use Docker 1.7 RC5
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-16 15:14:48 -07:00
Aanand Prasad
bc14c473c9
Merge pull request #1521 from dano/validate-service-names
...
Validate that service names passed to Project.containers aren't bogus.
2015-06-16 10:45:49 -07:00
Dan O'Reilly
464ab3d727
Add a method specifically for service name validation.
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-06-15 23:06:06 -04:00
Daniel Nephin
f3df2a9fec
Merge pull request #1551 from aanand/use-docker-1.7-rc3
...
Use Docker 1.7 RC3
2015-06-15 21:33:07 -04:00
Aanand Prasad
c421d23c34
Update Swarm docs
...
- Link to libnetwork
- Building now works, but is complicated by scaling
- Document how to set constraints/affinity
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-15 15:19:55 -07:00
Aanand Prasad
5b2a0cc73d
Merge pull request #1406 from vdemeester/667-compose-port-scale
...
Fixing docker-compose port with scale (#667 )
2015-06-15 10:58:44 -07:00
Aanand Prasad
acd8dce595
Add upgrading instructions to install docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-15 10:46:48 -07:00
Daniel Nephin
b3b44b8e4c
Merge pull request #1550 from aanand/update-docker-py
...
Update setup.py with new docker-py minimum
2015-06-15 13:43:57 -04:00
Aanand Prasad
aaccd12d3d
Merge pull request #1545 from moxiegirl/test-tooling
...
Updated for new documentation tooling
2015-06-15 10:36:37 -07:00
Aanand Prasad
b4c49ed805
Use Docker 1.7 RC3
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-15 10:25:58 -07:00
Aanand Prasad
4e108e377e
Update setup.py with new docker-py minimum
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-15 10:18:15 -07:00
Aanand Prasad
5231288b4e
Merge pull request #1489 from dnephin/faster_integration_tests
...
Faster integration tests
2015-06-15 10:04:45 -07:00
Mary Anthony
e40fc02561
Testing with documentation tooling
...
Updating with changes
Updating for Hugo
Adding a README'
moving index.md compose-overview.md in links
changing overview
Updating image to pull
Signed-off-by: Mary Anthony <mary@docker.com>
2015-06-14 16:00:08 -07:00
Daniel Nephin
06db577105
Move converge() to a test module, and use a short timeout for tests.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-06-14 17:18:27 -04:00
Travis Thieman
c24d5380e6
Extend up -t to pass timeout to stop running containers
...
Signed-off-by: Travis Thieman <travis.thieman@gmail.com>
2015-06-14 16:45:28 -04:00
Daniel Nephin
60351a8e07
Speed up integration test and make cleanup easier by using labels
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-06-14 16:45:28 -04:00
Daniel Nephin
d827809ffb
Use labels to filter containers.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-06-14 16:45:28 -04:00
Daniel Nephin
77e594dc94
Merge pull request #1544 from aanand/fix-volume-deduping
...
Fix volume binds de-duplication
2015-06-14 13:28:14 -04:00
Aanand Prasad
08bc4b830b
Fix volume binds de-duplication
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-12 16:57:22 -04:00
Aanand Prasad
4c2112dbfd
Merge pull request #1539 from bfirsh/add-image-affinity-to-test
...
Add image affinity to test script
2015-06-12 11:56:02 -04:00
Ben Firshman
ac222140e7
Add image affinity to test script
...
This will allow tests to be run on a Swarm. This is being fixed in
Swarm 0.4: https://github.com/docker/swarm/issues/743
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-06-11 15:58:07 -07:00
Ben Firshman
e3525d64b5
Merge pull request #1537 from aanand/reorder-service-utils
...
Reorder service.py utility methods
2015-06-11 21:55:33 +01:00
Ben Firshman
bd246fb011
Merge pull request #1538 from thieman/tnt-serivce-misspelled
...
Correct misspelling of "Service" in an error message
2015-06-11 21:54:53 +01:00
Travis Thieman
f31d4c8a93
Correct misspelling of "Service" in an error message
...
Signed-off-by: Travis Thieman <travis.thieman@gmail.com>
2015-06-11 14:03:08 -04:00
Aanand Prasad
7995fc2ed2
Reorder service.py utility methods
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-11 11:44:13 -04:00
Vincent Demeester
a5fd91c705
Fixing docker-compose port with scale ( #667 )
...
Fixes #667 and Closes #735 (taking over it)
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2015-06-10 23:26:33 +02:00
Aanand Prasad
0e9ccd36f3
Merge pull request #1497 from aanand/use-1.7-rc1
...
Run tests against Docker 1.7 RC2
2015-06-10 17:19:24 -04:00
Aanand Prasad
4fd5d58076
Test against Docker 1.7.0 RC2
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-10 14:19:36 -04:00
Aanand Prasad
17e03b29f9
Merge pull request #1533 from edmorley/update-b2d-shellinit-example
...
Docs: Update boot2docker shellinit example to use 'eval'
2015-06-10 13:03:55 -04:00
Ed Morley
e3ba302627
Docs: Update boot2docker shellinit example to use 'eval'
...
The boot2docker documentation has since changed the recommended way to
use shellinit - see boot2docker/boot2docker#786 .
Signed-off-by: Ed Morley <emorley@mozilla.com>
2015-06-10 14:38:35 +01:00
Daniel Nephin
87c30ae6e4
Merge pull request #1531 from aanand/test-crash-resilience
...
Test that data volumes now survive a crash when recreating
2015-06-09 22:22:56 -04:00
Daniel Nephin
95b2eaac04
Merge pull request #1529 from aanand/update-dockerpty
...
Update dockerpty to 0.3.4
2015-06-09 18:21:14 -04:00
Aanand Prasad
ff151c8ea0
Test that data volumes now survive a crash when recreating
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-09 13:06:09 -04:00
Aanand Prasad
66af37b135
Merge pull request #1474 from aanand/fix-ssl
...
Fix SSL "CERTIFICATE_VERIFY_FAILED" error
2015-06-09 11:56:27 -04:00
Dan O'Reilly
c59c9dd951
Add integration test for service name verification
...
Add a test to make sure NoSuchService is raised if
a bogus service name is given to 'docker-compose logs'.
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-06-08 17:04:42 -04:00
Aanand Prasad
ce880af821
Update dockerpty to 0.3.4
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-08 17:01:03 -04:00
Daniel Nephin
5578ccbb01
Merge pull request #1527 from aanand/remove-logging-on-run-rm
...
Remove logging on run --rm
2015-06-08 16:21:02 -04:00
Daniel Nephin
38a11c4c28
Merge pull request #1526 from aanand/remove-start-or-create-containers
...
Remove Service.start_or_create_containers()
2015-06-08 12:49:32 -04:00
Daniel Nephin
e2b790f732
Merge pull request #1525 from aanand/fix-duplicate-logging
...
Fix duplicate logging on up/run
2015-06-08 12:48:46 -04:00
Aanand Prasad
b6a7db787f
Remove logging on run --rm
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-08 11:16:00 -04:00
Aanand Prasad
db2d02dc0b
Remove Service.start_or_create_containers()
...
It's only used in a single test method.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-08 10:59:03 -04:00
Aanand Prasad
f59b43ac27
Fix duplicate logging on up/run
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-08 10:52:15 -04:00
dano
2527ef8055
Validate that service names passed to Project.containers aren't bogus.
...
Signed-off-by: Dan O'Reilly <oreilldf@gmail.com>
2015-06-06 15:47:16 -04:00
Daniel Nephin
417e6ce0c9
Merge pull request #1508 from thaJeztah/update-dockerproject-links
...
Update dockerproject.com links
2015-06-04 11:18:23 -05:00
Aanand Prasad
7d2a89427c
Merge pull request #1466 from noironetworks/changing-scale-to-warning
...
Modified scale awareness from exception to warning
2015-06-04 16:21:01 +01:00
Aanand Prasad
036a4c4258
Merge pull request #1507 from albers/completion-version
...
Support version command in Bash completion
2015-06-04 15:46:50 +01:00
Sebastiaan van Stijn
cfcc12692f
Update dockerproject.com links
...
The dockerproject.com domain is moving to dockerproject.org
this changes the buildstatus link to point to the new
domain.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
2015-06-03 23:03:17 +02:00
Harald Albers
be92b79b42
Support version command in Bash completion
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-06-03 13:25:26 -07:00
Aanand Prasad
417e8d80c3
Merge pull request #1499 from sdurrheimer/master
...
Support version command in zsh completion
2015-06-02 15:05:46 +01:00
Steve Durrheimer
77409737ce
Support version command in zsh completion
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2015-06-02 12:38:23 +02:00
Aanand Prasad
2594282082
Build Python 2.7.9 in Docker image
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-01 17:56:15 +01:00
Aanand Prasad
8ad11c0bc8
Make sure we use Python 2.7.9 and OpenSSL 1.0.1 when building OSX binary
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-01 17:55:57 +01:00
Aanand Prasad
c571bb485d
Report Python and OpenSSL versions in --version output
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-06-01 17:55:31 +01:00
Aanand Prasad
8eb65ed946
Merge pull request #878 from funkyfuture/versioncmd
...
Enhanced version information and Docker-like version command
2015-06-01 13:36:11 +01:00
Daniel Nephin
9a0bb325f2
Merge pull request #1481 from albers/completion-smart-recreate
...
Support --x-smart-recreate in bash completion
2015-05-30 09:01:39 -05:00
Daniel Nephin
d64bf88e26
Merge pull request #1475 from fordhurley/patch-1
...
Fix markdown formatting for `--service-ports` example
2015-05-30 08:43:48 -05:00
Aanand Prasad
c8e096e089
Merge pull request #1482 from bfirsh/add-build-and-dist-to-dockerignore
...
Make it possible to run tests remotely
2015-05-29 17:12:57 +01:00
Ben Firshman
b638728d6c
Merge pull request #1325 from sdurrheimer/master
...
Zsh completion for docker-compose
2015-05-29 14:45:21 +01:00
Steve Durrheimer
1d5526c71d
Support --x-smart-recreate and -v in zsh completion
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2015-05-29 14:24:55 +02:00
Steve Durrheimer
bc8d5923e7
Zsh completion for docker-compose
...
Signed-off-by: Steve Durrheimer <s.durrheimer@gmail.com>
2015-05-29 14:24:55 +02:00
Ben Firshman
a6bd1d22a0
Don't mount code in a volume when running tests
...
An image is built anyway, so this is unnecessary. This makes it
possible to run the tests on a remote Docker daemon.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-05-29 13:23:42 +01:00
Ben Firshman
c128e881c1
Add build and dist to dockerignore
...
These are the bulk of what gets sent in the build. Makes builds
much faster, particularly remotely.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-05-29 13:07:19 +01:00
Aanand Prasad
a15f996744
Merge pull request #1480 from bfirsh/change-sigint-test-to-use-sigstop
...
Change kill SIGINT test to use SIGSTOP
2015-05-29 12:38:40 +01:00
Harald Albers
b3c1c9c954
Support --x-smart-recreate and -v in bash completion
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-05-29 13:30:01 +02:00
Ben Firshman
ec437313a7
Change kill SIGINT test to use SIGSTOP
...
I think the original intention of the original test was the check that
different signals work, I think. This does this -- it sends a signal
that doesn't cause the container to stop.
Closes #759 . Replaces #1467 .
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-05-29 11:13:37 +01:00
Ford Hurley
5945db0fa8
Fix markdown formatting for --service-ports example
...
Signed-off-by: Ford Hurley <ford.hurley@gmail.com>
2015-05-28 15:45:21 -04:00
Ben Firshman
8574cb67a4
Merge pull request #1471 from aanand/prepare-osx-script
...
Script to prepare OSX build environment
2015-05-28 13:58:14 +01:00
funkyfuture
ae9d619d86
Add command for Docker-style version information
...
This adds a command 'version' to show software versions information
like Docker does. In addition it includes:
- version of the docker-py-package
- Python-implementation and -version
Signed-off-by: Frank Sachsenheim <funkyfuture@riseup.net>
2015-05-28 00:51:10 +02:00
Aanand Prasad
7d9aa8e0a9
Script to prepare OSX build environment
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-27 16:27:24 +01:00
Aanand Prasad
d0e87929a1
Merge pull request #1464 from twhiteman/bug1461
...
Possible division by zero error when pulling an image - fixes #1463
2015-05-27 12:49:58 +01:00
André Martins
ae63d35660
Modified scale awareness from exception to warning
...
Signed-off-by: André Martins <martins@noironetworks.com>
2015-05-26 23:59:45 +01:00
Todd Whiteman
b9c502531d
Possible division by zero error when pulling an image - fixes #1463
...
Signed-off-by: Todd Whiteman <todd.whiteman@joyent.com>
2015-05-26 15:34:34 -07:00
Aanand Prasad
1344099e29
Merge pull request #1444 from aanand/migrate-in-dependency-order
...
Migrate containers in dependency order
2015-05-26 17:30:14 +01:00
Daniel Nephin
48f3d41947
Merge pull request #1447 from aanand/fix-convergence-when-service-not-created
...
Fix regression in `docker-compose up`
2015-05-26 10:54:28 -05:00
Aanand Prasad
7da8e6be3b
Migrate containers in dependency order
...
This fixes a bug where migration would fail with an error if a
downstream container was migrated before its upstream dependencies, due
to `check_for_legacy_containers()` being implicitly called when we fetch
`links`, `volumes_from` or `net` dependencies.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-26 16:03:06 +01:00
Aanand Prasad
4795fd874f
Fix regression in docker-compose up
...
When an upstream dependency (e.g. a db) has a container but a downstream
service (e.g. a web app) doesn't, a web container is not created on
`docker-compose up`.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-26 16:01:05 +01:00
Aanand Prasad
276fee105b
Merge pull request #1459 from bfirsh/update-description
...
Update description of Compose
2015-05-26 15:57:26 +01:00
Ben Firshman
8af4ae7935
Merge pull request #1441 from aanand/abort-on-legacy-containers
...
Bail out immediately if there are legacy containers
2015-05-26 15:45:08 +01:00
Ben Firshman
91ceb33d5a
Update description of Compose
...
"Define and run multi-container applications with Docker"
Not just development environments, and "complex" is not clear and
not really true.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-05-26 15:42:55 +01:00
Aanand Prasad
0b4d9401ee
Bail out immediately if there are legacy containers
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-26 11:53:51 +01:00
Daniel Nephin
889d3636f4
Merge pull request #1440 from aanand/legacy-fixes
...
Legacy fixes
2015-05-24 12:42:14 -05:00
Daniel Nephin
b0f945d2da
Merge pull request #1432 from albers/completion-migrate_to_labels
...
bash completion for migrate_to_labels
2015-05-23 18:21:44 -05:00
Daniel Nephin
93c529182e
Merge pull request #1446 from aanand/fix-create-logging
...
Fix missing logging on container creation
2015-05-21 17:34:54 -05:00
Harald Albers
412034a023
bash completion for migrate-to-labels
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-05-21 12:45:04 -07:00
Aanand Prasad
30c9e7323a
Fix missing logging on container creation
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-21 20:06:25 +01:00
Aanand Prasad
051f56a1e6
Fix bugs with one-off legacy containers
...
- One-off containers were included in the warning log messages, which can
make for unreadable output when there are lots (as there often are).
- Compose was attempting to recreate one-off containers as normal
containers when migrating.
Fixed by implementing the exact naming logic from before we used labels.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-21 18:21:49 +01:00
Aanand Prasad
b5ce23885b
Split out fetching of legacy names so we can test it
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-21 18:21:49 +01:00
Aanand Prasad
0fdb8bf814
Refactor migration logic
...
- Rename `migration` module to `legacy` to make its legacy-ness explicit
- Move `check_for_legacy_containers` into `legacy` module
- Fix migration test so it can be run in isolation
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-21 18:21:09 +01:00
Aanand Prasad
e538923545
Merge pull request #1442 from aanand/dashes-in-migration-command
...
Rename migrate_to_labels -> migrate-to-labels
2015-05-21 18:19:30 +01:00
Daniel Nephin
c0f65a9f4c
Merge pull request #1445 from aanand/replace-sleep-with-top
...
Use 'top' instead of 'sleep' as a dummy command
2015-05-21 11:51:23 -05:00
Aanand Prasad
b0cb31c186
Use 'top' instead of 'sleep' as a dummy command
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-21 16:24:29 +01:00
Aanand Prasad
3080244c0b
Rename migrate_to_labels -> migrate-to-labels
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-21 14:54:41 +01:00
Aanand Prasad
b183a66db1
Merge pull request #1437 from dnephin/fix_project_containers
...
Project.containers with service_names
2015-05-21 10:42:08 +01:00
Daniel Nephin
022f81711e
Fixes #1434 , Project.containers with service_names.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-05-20 20:47:34 -04:00
Aanand Prasad
4f40d0c168
Merge pull request #1433 from bfirsh/remove-whitespace-from-json-representation-of-container-config
...
Remove whitespace from json hash
2015-05-20 16:55:02 +01:00
Ben Firshman
f5ac1fa073
Remove whitespace from json hash
...
Reasoning:
e5d8447f06 (commitcomment-11243708)
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-05-20 16:02:08 +01:00
Ben Firshman
f79eb7b9ad
Merge pull request #1382 from lsowen/security_opt
...
Add security_opt as a docker-compose.yml option
2015-05-20 13:40:42 +01:00
Aanand Prasad
b0b6ed31c4
Merge pull request #1430 from albers/fix-1426
...
Fix #1426 - migrate_to_labels not found
2015-05-20 12:31:18 +01:00
lsowen
ea7ee301c0
Add security_opt as a docker-compose.yml option
...
Signed-off-by: Logan Owen <lsowen@s1network.com>
2015-05-19 13:47:41 -04:00
Harald Albers
41315b32cb
Fix #1426 - migrate_to_labels not found
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-05-19 16:37:50 +02:00
Aanand Prasad
80eaf4cc9f
Merge pull request #1399 from aanand/state
...
Only recreate what's changed
2015-05-18 19:25:42 +01:00
Aanand Prasad
ef4eb66723
Implement smart recreate behind an experimental CLI flag
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-18 18:39:18 +01:00
Aanand Prasad
82bc7cd5ba
Remove override_options arg from recreate_container(s)
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-18 17:42:09 +01:00
Aanand Prasad
3304c68891
Only set AttachStdin/out/err for one-off containers
...
If we're just streaming logs from `docker-compose up`, we don't need
to set AttachStdin/out/err, and doing so results in containers with
different configuration depending on whether `up` or `run` were invoked
with `-d` or not.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-18 17:41:04 +01:00
Aanand Prasad
1e6d912fbc
Merge pull request #1356 from dnephin/use_labels_instead_of_names
...
Use labels instead of names to identify containers
2015-05-18 17:38:46 +01:00
Aanand Prasad
4ef3bbcdf2
Merge pull request #1415 from aanand/fix-run-race-condition
...
Fix race condition in `docker-compose run`
2015-05-18 16:16:31 +01:00
Daniel Nephin
62059d55e6
Add migration warning and option to migrate to labels.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-05-18 10:55:12 -04:00
Daniel Nephin
ed50a0a3a0
Resolves #1066 , use labels to identify containers
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-05-18 10:47:26 -04:00
Daniel Nephin
28d2aff8b8
Fix teardown for integration tests.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-05-18 10:44:44 -04:00
Aanand Prasad
862971cffa
Fix race condition in docker-compose run
...
We shouldn't start the container before handing it off to dockerpty -
dockerpty will start it after attaching, which is the correct order.
Otherwise the container might exit before we attach to it, which can
lead to weird bugs.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-15 12:16:24 +01:00
Daniel Nephin
c8022457eb
Merge pull request #1413 from aanand/update-dockerpty
...
Update dockerpty to 0.3.3
2015-05-14 21:23:46 -04:00
Aanand Prasad
9bbf1a33d1
Update dockerpty to 0.3.3
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-14 20:03:50 +01:00
Aanand Prasad
0ac8c3cb03
Merge pull request #858 from dnephin/fix_volumes_recreate_on_1.4.1
...
Preserve individual volumes on recreate
2015-05-14 16:12:08 +01:00
Daniel Nephin
d5c9626040
Merge pull request #1411 from aanand/fix-extends-docs
...
Fix typo in extends.md
2015-05-14 09:53:38 -04:00
Aanand Prasad
ad9c5ad938
Fix typo in extends.md
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-14 10:48:35 +01:00
Daniel Nephin
70d2e64dfe
Merge pull request #1407 from aanand/update-docker-py
...
Update docker-py to 1.2.2
2015-05-12 20:22:48 -04:00
Aanand Prasad
1dccd58209
Update docker-py to 1.2.2
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-05-12 18:51:45 +01:00
Aanand Prasad
e0103ac0d4
Merge pull request #1405 from bfirsh/link-to-getting-started-guides-from-each-page
...
Link to getting started guides from each page
2015-05-12 14:40:53 +01:00
Ben Firshman
4d745ab87a
Link to getting started guides from each page
...
These are really hard to find.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-05-12 12:44:43 +01:00
Daniel Nephin
417d9c2d51
Use individual volumes for recreate instead of volumes_from
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-05-11 13:01:43 -04:00
Daniel Nephin
4997facbb4
Merge pull request #1400 from DanElbert/754-device_option
...
Added devices config handling and device HostConfig handling
2015-05-11 12:42:48 -04:00
delbert@umn.edu
df87bd91c8
Added devices configuration option
...
Signed-off-by: Dan Elbert <dan.elbert@gmail.com>
2015-05-11 10:50:58 -05:00
Aanand Prasad
1748b0f81a
Merge pull request #1349 from dnephin/rename_instead_of_intermediate
...
Rename container when recreating it
2015-05-08 10:33:28 +01:00
Daniel Nephin
6829efd4d3
Resolves #874 , Rename instead of use an intermediate.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-05-07 21:53:41 -04:00
Daniel Nephin
99f2a3a583
Merge pull request #1396 from albers/completion-doc
...
Fix markdown formatting issue
2015-05-07 14:04:16 -04:00
Daniel Nephin
0f2f9db6d8
Merge pull request #1388 from vdemeester/1303-log-driver-support
...
Add support for log-driver as a docker-compose.yml option
2015-05-07 12:00:42 -04:00
Harald Albers
d6223371d6
Fix markdown formatting issue
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-05-07 04:41:12 -07:00
Daniel Nephin
4817d5944c
Merge pull request #1391 from albers/completion-extglob
...
Fix #1386 by ensuring that exglob is set in bash completion
2015-05-06 10:46:13 -04:00
Vincent Demeester
f626fc5ce8
Add support for log-driver in docker-compose.yml
...
Closes #1303
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
2015-05-06 13:18:58 +02:00
Harald Albers
1579a125a3
Ensure that exglob is set in bash completion
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-05-06 09:33:22 +02:00
Daniel Nephin
7fb9ec29c4
Merge pull request #1335 from chernjie/pid_readonly
...
docker-compose create --readonly
2015-05-05 20:50:01 -04:00
Daniel Nephin
f78e89f265
Merge pull request #1381 from sherter/help-fix
...
Show proper command in help text of build subcommand
2015-05-05 20:48:25 -04:00
CJ
b06294399a
See #1335 : Added --read-only
...
Signed-off-by: CJ <lim@chernjie.com>
2015-05-02 23:39:39 +08:00
Simon Herter
b8e0aed21c
Show proper command in help text of build subcommand
...
The help text of the build subcommand suggested to use 'compose build' (instead of 'docker-compose build') to rebuild images.
Signed-off-by: Simon Herter <sim.herter@gmail.com>
2015-05-01 18:58:55 -04:00
Daniel Nephin
4bce388b51
Merge pull request #1376 from aanand/fix-build-non-ascii-filename
...
Make sure the build path we pass to docker-py is a binary string
2015-04-30 20:54:21 -04:00
Daniel Nephin
6c95eed781
Merge pull request #1269 from aanand/labels
...
Implement 'labels' option
2015-04-30 20:49:11 -04:00
Aanand Prasad
4f366d8355
Make sure the build path we pass to docker-py is a binary string
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-30 11:57:46 +01:00
Daniel Nephin
878d90febf
Merge pull request #1374 from aanand/close-before-attaching
...
Close connection after building or pulling
2015-04-29 18:56:03 -04:00
Aanand Prasad
1a77feea3f
Close connection before attaching on 'up' and 'run'
...
This ensures that the connection is not recycled, which can cause the
Docker daemon to complain if we've already performed another streaming
call such as doing a build.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-29 18:42:03 +01:00
Aanand Prasad
7e0ab0714f
Merge pull request #1344 from dnephin/fix_pull_with_sha
...
Support image with ids instead of names
2015-04-29 16:46:34 +01:00
Aanand Prasad
2e6bc078fb
Implement 'labels' option
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-29 16:45:18 +01:00
Daniel Nephin
3dd860f0ba
Fix #923 , support image with ids instead of names.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-04-29 10:13:18 -04:00
Daniel Nephin
de800dea0f
Merge pull request #1370 from aanand/update-docker-version
...
Update Docker version to 1.6 stable
2015-04-29 10:03:13 -04:00
Aanand Prasad
fed4377ef6
Merge pull request #1351 from mchasal/1301-alphabetize_usage
...
Fix for #1301 , Alphabetize Commands
2015-04-29 14:21:46 +01:00
Aanand Prasad
021bf46557
Update Docker version to 1.6 stable
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-29 13:58:32 +01:00
Aanand Prasad
b7e5116267
Merge pull request #1352 from bfirsh/add-irccloud-invite-link
...
Use cool new IRCCloud links for IRC channel
2015-04-29 13:25:25 +01:00
Daniel Nephin
9532e5a4f2
Merge pull request #1331 from xuxinkun/cpuset20150424
...
Add cpuset config.
2015-04-28 13:21:00 -04:00
Ben Firshman
e5a118e3ce
Use cool new IRCCloud links for IRC channel
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-04-28 14:24:48 +01:00
Daniel Nephin
a631c1eddb
Merge pull request #1357 from turtlemonvh/1350-extends_parent_build_directory_dne_error
...
Fix for #1350 , nonexisting build path in parent section causes extending section to fail
2015-04-27 13:49:01 -04:00
Timothy Van Heest
855855a0e6
Fix for #1350 , nonexisting build path in parent section causes extending section to fail
...
Signed-off-by: Timothy Van Heest <timothy.vanheest@gmail.com>
2015-04-27 10:55:30 -04:00
Daniel Nephin
b808674132
Merge pull request #1360 from aanand/remove-wercker
...
Remove wercker.yml
2015-04-27 10:17:41 -04:00
Ben Firshman
7e574fca71
Merge pull request #1358 from aanand/update-readme
...
Update README.md with changes to docs/index.md
2015-04-27 15:14:06 +01:00
Aanand Prasad
7d617d60bc
Remove wercker.yml
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-27 15:10:01 +01:00
Aanand Prasad
da71e01d30
Merge pull request #1359 from aanand/remove-dco-validation
...
Remove DCO validation from CI script
2015-04-27 15:08:51 +01:00
Daniel Nephin
a89bc304f6
Merge pull request #1075 from KyleJamesWalker/master
...
Support alternate Dockerfile name.
2015-04-27 10:06:43 -04:00
Aanand Prasad
240495f07f
Remove DCO validation from CI script
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-27 15:02:24 +01:00
Aanand Prasad
2e19887bf1
Update README.md with changes to docs/index.md
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-27 14:59:42 +01:00
Daniel Nephin
a982e516fc
Merge pull request #1354 from xwisen/master
...
modified the release notes section the first[PR #972 ]to[PR #1088 ]
2015-04-27 09:56:46 -04:00
Ben Firshman
3af56e1602
Merge pull request #1200 from chanezon/1148-pat-paul
...
paulczar fixes plus example file
2015-04-27 14:54:14 +01:00
Aanand Prasad
16f8106149
Merge pull request #1158 from chernjie/addhosts
...
Add extra_hosts to yml configuration --add-hosts
2015-04-27 12:26:29 +01:00
CJ
86a08c00f2
See https://github.com/docker/compose/pull/1158#discussion_r29063218
...
Signed-off-by: CJ <lim@chernjie.com>
2015-04-27 14:07:21 +08:00
xwisen
0ca9fa8b2b
modified the release notes section the first[PR #972 ]to[PR #1088 ]
...
Signed-off-by: xwisen <xwisen@gmail.com>
2015-04-26 13:16:23 +08:00
xuxinkun
688f82c1cf
Add cpuset config.
...
Signed-off-by: xuxinkun <xuxinkun@gmail.com>
2015-04-26 00:14:52 +08:00
Michael Chase-Salerno
9a44708081
Fix for #1301 , Alphabetize Commands
...
Signed-off-by: Michael Chase-Salerno <bratac@linux.vnet.ibm.com>
2015-04-24 20:45:18 +00:00
Daniel Nephin
89789c54ad
Merge pull request #1232 from aleksandr-vin/add-parent-directories-search-for-default-compose-files
...
Add parent directories search for default compose-files
2015-04-24 13:12:24 -04:00
Kyle Walker
d17c4d27fa
Support alternate Dockerfile name.
...
Signed-off-by: Kyle James Walker <KyleJamesWalker@gmail.com>
2015-04-24 08:30:36 -07:00
CJ
25ee3f0033
Remove extra s from --add-host
...
linting...
six.string_types
list-of-strings in examples
disallow extra_hosts support for list-of-dicts
A more thorough sets of tests for extra_hosts
Provide better examples
As per @aanand's [comment](https://github.com/docker/compose/pull/1158/files#r28326312 )
I think it'd be better to check `if not isinstance(extra_hosts_line,
six.string_types)` and raise an error saying `extra_hosts_config must be
either a list of strings or a string->string mapping`. We shouldn't need
to do anything special with the list-of-dicts case.
order result to work with assert
use set() instead of sort()
Signed-off-by: CJ <lim@chernjie.com>
2015-04-24 09:21:29 +08:00
Thomas Desvenain
8098b65576
Fix when pyyaml has interpreted line as a dictionary
...
Added unit tests in build_extra_hosts + fix
Signed-off-by: CJ <lim@chernjie.com>
2015-04-24 09:21:21 +08:00
Sam Wing
fb81c37ca6
added the extra_hosts option to the yml configuration which exposes the --add-host flag from the docker client
...
Signed-off-by: Sam Wing <sampwing@gmail.com>
2015-04-23 21:54:59 +08:00
Daniel Nephin
e6ec76161d
Merge pull request #1293 from mchasal/1224
...
1224: Check that image or build is specified.
2015-04-21 15:19:11 -04:00
Aanand Prasad
b317071cf3
Merge pull request #1205 from josephpage/run-rm-restart
...
[cli] run --rm overrides restart: always
2015-04-21 15:48:43 +01:00
Aanand Prasad
bb922d63f5
Merge pull request #1318 from aanand/fix-restart-timeout
...
Fix --timeout flag on restart, add tests for stop and restart
2015-04-21 15:07:07 +01:00
Aanand Prasad
2291fa2d45
Fix --timeout flag on restart, add tests for stop and restart
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-21 11:59:33 +01:00
Aanand Prasad
2cdde099fa
Merge pull request #1297 from aanand/bump-1.3.0-dev
...
Bump 1.3.0dev
2015-04-16 18:02:59 +01:00
Aanand Prasad
310c7623f9
Bump 1.3.0dev
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-16 17:54:18 +01:00
Aanand Prasad
6e64802545
Merge pull request #1296 from aanand/merge-release-1.2.0
...
Merge release 1.2.0
2015-04-16 17:52:47 +01:00
Aanand Prasad
8b5015c10f
Bump 1.2.0
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-16 17:48:28 +01:00
Michael Chase-Salerno
24a6c240fc
Testcase for #1224 , check that image or build is specified
...
Signed-off-by: Michael Chase-Salerno <bratac@linux.vnet.ibm.com>
2015-04-15 21:38:24 +00:00
Michael Chase-Salerno
15b763acdb
Fix for #1224 , check that image or build is specified
...
Signed-off-by: Michael Chase-Salerno <bratac@linux.vnet.ibm.com>
2015-04-15 02:03:02 +00:00
Daniel Nephin
3cd116b99d
Merge pull request #1278 from albers/completion-run-user
...
Add bash completion for docker-compose run --user
2015-04-14 11:04:03 -04:00
Aanand Prasad
b559653c8c
Merge pull request #1277 from fredlf/add-help-text
...
Adds Where to Get Help section
2015-04-14 15:16:11 +01:00
Harald Albers
5f17423d3e
Add bash completion for docker-compose run --user
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-04-10 19:52:13 +02:00
Fred Lifton
2a442ec6d9
Adds Where to Get Help section
...
Signed-off-by: Fred Lifton <fred.lifton@docker.com>
2015-04-09 16:23:25 -07:00
Aleksandr Vinokurov
ceff5cb9ca
Add parent directories search for default compose-files
...
Does not change directory to the parent with the compose-file found.
Works like passing '--file' or setting 'COMPOSE_FILE' with absolute path.
Resolves issue #946 .
Signed-off-by: Aleksandr Vinokurov <aleksandr.vin@gmail.com>
2015-04-09 22:36:47 +00:00
Ben Firshman
4926f8aef6
Merge pull request #1261 from aanand/fix-vars-in-volume-paths
...
Fix vars in volume paths
2015-04-09 14:44:07 +01:00
Daniel Nephin
927115c3d4
Merge pull request #1271 from sdake/master
...
Remove stray print
2015-04-09 09:41:27 -04:00
Steven Dake
1d7247b67e
Remove stray print
...
A previous commit introduced a stray print operation. Remove it.
Signed-off-by: Steven Dake <stdake@cisco.com>
2015-04-08 12:49:37 -07:00
Ben Firshman
a1cd00e3f0
Merge pull request #1251 from aanand/extends-guide
...
Add tutorial and reference for `extends`
2015-04-08 15:47:39 +01:00
Aanand Prasad
fd568b389d
Fix home directory and env expansion in volume paths
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-07 16:23:45 +01:00
Aanand Prasad
4f95e81c6d
Merge pull request #1166 from spk/fix_example_env_file
...
Docs: fix env_file example
2015-04-07 15:52:10 +01:00
Aanand Prasad
619e783a05
Merge pull request #1011 from sdake/master
...
Add a --pid=host feature to expose the host PID space to the container
2015-04-07 13:49:53 +01:00
Aanand Prasad
f3f7f000fe
Add tutorial and reference for extends
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-07 13:46:14 +01:00
Aanand Prasad
219751abc7
Merge pull request #1258 from fredlf/1.6-docs-updates
...
Prepping for 1.6 release.
2015-04-07 11:22:02 +01:00
Joseph Page
0b48e137e8
add unit tests for run --rm with restart
...
Signed-off-by: Joseph Page <joseph.page@rednet.io>
2015-04-07 10:18:25 +02:00
Fred Lifton
947742852e
Prepping for 1.6 release.
...
Adds release notes and edits/revises new Compose in production doc.
2015-04-06 16:47:07 -07:00
Steven Dake
94277a3eb0
Add --pid=host support
...
Allow docker-compsoe to use the docker --pid=host API available in 1.17
Signed-off-by: Steven Dake <stdake@cisco.com>
2015-04-06 12:44:35 -07:00
Steven Dake
11a2100d53
Add a --pid=host feature to expose the host PID space to the container
...
Docker 1.5.0+ introduces a --pid=host feature which allows sharing of PID
namespaces between baremetal and containers. This is useful for atomic
upgrades, atomic rollbacks, and monitoring.
For more details of a real-life use case, check out:
http://sdake.io/2015/01/28/an-atomic-upgrade-process-for-openstack-compute-nodes/
Signed-off-by: Steven Dake <stdake@cisco.com>
2015-04-06 11:45:37 -07:00
Fred Lifton
530d7af5cf
Merge pull request #1253 from aanand/production-guide
...
Add guide to using Compose in production
2015-04-06 10:49:49 -07:00
Aanand Prasad
502d58abe6
Add guide to using Compose in production
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-03 18:56:29 -04:00
Fred Lifton
eb073c53f4
Merge pull request #1249 from asveepay/update_doc
...
Update install docs for permission denied error
2015-04-03 12:31:38 -07:00
Roland Cooper
d866415b9a
Update install docs for permission denied error
...
Signed-off-by: Roland Cooper <rcooper@enova.com>
2015-04-03 12:21:15 -05:00
Aanand Prasad
dd40658f87
Merge pull request #1238 from aanand/use-docker-1.6-rc3
...
Use Docker 1.6 RC3
2015-04-03 13:00:49 -04:00
Aanand Prasad
b3382ffd4f
Use Docker 1.6 RC4
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-04-03 10:57:28 -04:00
Aanand Prasad
15a0fac939
Merge pull request #1141 from bfirsh/contributing-section-in-readme
...
Add contributing section to readme
2015-04-03 10:56:06 -04:00
Laurent Arnoud
e3cff5d17d
Docs: fix env_file example
...
Thanks-to: @aanand
Signed-off-by: Laurent Arnoud <laurent@spkdev.net>
2015-04-01 11:15:09 +02:00
Daniel Nephin
0f70b8638f
Merge pull request #1213 from moysesb/relative_build
...
Make value of 'build:' relative to the yml file.
2015-03-31 21:20:02 -04:00
Moysés Borges
8584525e8d
Interpret 'build:' as relative to the yml file
...
* This fix introduces one side-effect: the build parameter is now
validated early, when the service dicionary is first constructed.
That leads to less scary stack traces when the path is not valid.
* The tests for the changes introduced here alter the fixtures
of those (otherwise unrelated) tests that make use of the 'build:'
parameter)
Signed-off-by: Moysés Borges Furtado <moyses.furtado@wplex.com.br>
2015-03-31 18:47:26 -03:00
Aanand Prasad
e3e2247159
Merge pull request #1231 from aanand/docker-1.6rc2
...
Test against Docker 1.6 RC2 only
2015-03-31 16:31:03 -04:00
Aanand Prasad
0650c4485a
Test against Docker 1.6 RC2 only
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-31 16:04:22 -04:00
Aanand Prasad
e708f4f59d
Merge pull request #1226 from aanand/merge-multi-value-options
...
Merge multi-value options when extending
2015-03-31 16:01:22 -04:00
Aanand Prasad
907918b492
Merge multi-value options when extending
...
Closes #1143 .
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-31 15:30:59 -04:00
Aanand Prasad
6dbe321a45
Merge pull request #1225 from aanand/fix-1222
...
When extending, `build` replaces `image` and vice versa
2015-03-31 15:23:34 -04:00
Aanand Prasad
2a415ede08
When extending, build replaces image and vice versa
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-30 17:14:19 -04:00
Ben Firshman
43369cda9c
Merge pull request #1221 from aanand/update-swarm-doc
...
Update Swarm doc
2015-03-30 18:08:16 +01:00
Aanand Prasad
a2557a3354
Merge pull request #1198 from funkyfuture/reformat-contributing.md
...
Reformat CONTRIBUTING.md
2015-03-30 12:08:56 -04:00
Aanand Prasad
1a14449fe6
Update Swarm doc
...
- Co-scheduling will now work, so we can remove the stuff about
`volumes_from` and `net` and manual affinity filters.
- Added a section about building.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-30 11:34:26 -04:00
Joseph Page
0b89ae6f20
[cli] run --rm overrides restart: always
...
docker/compose#1013
Signed-off-by: Joseph Page <joseph.page@rednet.io>
2015-03-30 14:45:24 +02:00
Patrick Chanezon
cec6dc28bb
implemented @fredl suggestions
...
Signed-off-by: Patrick Chanezon <patlist@chanezon.com>
2015-03-27 17:12:29 -07:00
Aanand Prasad
853ce255ea
Merge pull request #1202 from aanand/jenkins-script
...
WIP: Jenkins script
2015-03-27 14:59:49 -07:00
Aanand Prasad
db852e14e4
Add script/ci
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-27 14:39:32 -07:00
Patrick Chanezon
98dd0cd1f8
implemented @aanand comments
...
Signed-off-by: Patrick Chanezon <patlist@chanezon.com>
2015-03-27 13:26:51 -07:00
Patrick Chanezon
c441ac90d6
paulczar fixes plus example file
...
Signed-off-by: Patrick Chanezon <patlist@chanezon.com>
2015-03-26 16:35:53 -07:00
Aanand Prasad
9d7b54d8fd
Merge pull request #1183 from pborreli/patch-2
...
Fixed typo
2015-03-26 12:31:07 -07:00
Pascal Borreli
59f04c6e29
Fixed typo
...
Signed-off-by: Pascal Borreli <pascal@borreli.com>
2015-03-26 19:03:06 +00:00
Aanand Prasad
367ae0c848
Merge pull request #1185 from akoskaaa/master
...
Make test files and config files pep8 valid
2015-03-26 10:04:37 -07:00
akoskaaa
4e0f555c58
make flake8 a bit more specific
...
Signed-off-by: akoskaaa <akos.hochrein@prezi.com>
2015-03-26 09:09:15 -07:00
Ben Firshman
baf18decae
Merge pull request #1179 from aanand/test-1.6-rc
...
Add Docker 1.6 RC2 to tested versions
2015-03-26 14:18:36 +00:00
funkyfuture
826b8ca4d3
Reformat CONTRIBUTING.md
...
- some reformatting to make it better readable in smaller terminals
- adds a note that suggests validating DCO before pushing
Signed-off-by: funkyfuture <funkyfuture@riseup.net>
2015-03-26 13:11:05 +01:00
akoskaaa
fa2fb6bd38
[pep8] flake8 run for everything, fix items from this change
...
Signed-off-by: akoskaaa <akos.hochrein@prezi.com>
2015-03-25 23:15:34 -07:00
akoskaaa
f9ea5ecf40
[pep8] make test files and config files pep8 valid
...
Signed-off-by: akoskaaa <akos.hochrein@prezi.com>
2015-03-25 20:20:38 -07:00
Aanand Prasad
99f7eba930
Add Docker 1.6 RC2 to tested versions
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-25 14:48:39 -07:00
Ben Firshman
e1b27acd02
Add contributing section to readme
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-03-25 17:22:04 +01:00
Ben Firshman
9aab7bc242
Merge pull request #1172 from aanand/fix-dns
...
Fix regression in Dns and DnsSearch settings
2015-03-25 16:11:13 +00:00
Aanand Prasad
83dcceacaf
Fix regression in Dns and DnsSearch settings
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-24 16:17:05 -07:00
Aanand Prasad
1f06070f12
Merge pull request #1160 from aanand/fix-volume-merging
...
Fix volume merging
2015-03-24 13:40:07 -07:00
Aanand Prasad
35c6e0314c
Fix volume merging when there's no explicit host path
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-24 13:26:36 -07:00
Aanand Prasad
276e43ca6b
Fix service dict merging when only one dict has a volumes key
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-24 13:26:36 -07:00
Aanand Prasad
b7046777d1
Merge pull request #1161 from aanand/revert-labels-and-dependencies
...
Revert labels and dependencies
2015-03-24 13:05:46 -07:00
Aanand Prasad
1c14fc06da
Update docker-py and requests version ranges
...
Leave the pinned versions in requirements.txt alone, as there's an
incompatibility between PyInstaller and requests 2.5.2 and 2.5.3, and by
extension with docker-py 1.1.0.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-23 15:04:18 -07:00
Aanand Prasad
f4ef2c09d6
Revert "Remove restriction for requests version, update docker-py requirement"
...
This reverts commit 81a32a266f .
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-23 15:04:15 -07:00
Aanand Prasad
16495c577b
Revert "Use dev version of Docker"
...
This reverts commit d209ded13c .
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-23 15:04:10 -07:00
Aanand Prasad
965426e39b
Revert "Add 'labels:' config option"
...
This reverts commit 721327110d .
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-23 15:04:04 -07:00
Aanand Prasad
02f119e4b7
Merge pull request #1145 from aanand/labels
...
Implement `labels` option
2015-03-20 18:53:26 -07:00
Aanand Prasad
721327110d
Add 'labels:' config option
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-20 18:12:04 -07:00
Aanand Prasad
d209ded13c
Use dev version of Docker
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-20 18:12:04 -07:00
Aanand Prasad
49c2080bcd
Merge pull request #1088 from aanand/extends
...
`extends` – Inherit services from other services
2015-03-20 16:00:50 -07:00
Aanand Prasad
37efdb1f8b
Make volume host paths relative to file, merge volumes when extending
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-20 15:45:16 -07:00
Aanand Prasad
4c582e4352
Implement extends
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-20 15:45:16 -07:00
Aanand Prasad
5dca6c232e
Merge pull request #972 from aanand/set-host-config-at-create-time
...
Make Swarm schedule containers on the same node when they are linked together
2015-03-20 15:43:52 -07:00
Aanand Prasad
eef4bc3917
Specify all HostConfig at create time
...
This is required for Swarm integration: the cluster needs to know
about config like `links` and `volumes_from` at create time so that it
can co-schedule containers.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-20 15:14:07 -07:00
Ben Firshman
9931cd2c4c
Merge pull request #1140 from jfrazelle/add-to-readme
...
Add build status \o/
2015-03-20 01:03:37 +00:00
Jessica Frazelle
0226675766
Add build status \o/
...
Signed-off-by: Jessica Frazelle <jess@docker.com>
2015-03-19 17:50:15 -07:00
Ben Firshman
ae9c965823
Merge pull request #1128 from aanand/jenkins-dco
...
Validate DCO in script/test-versions
2015-03-18 14:49:40 +00:00
Daniel Nephin
d7a90092c2
Merge pull request #1118 from funkyfuture/issue-1082
...
Change port in ports-composefile to 49152
2015-03-17 21:39:34 -04:00
Aanand Prasad
85fb8956f3
Validate DCO in script/test-versions
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-17 18:02:22 -07:00
Ben Firshman
1e5b9dc2eb
Merge pull request #1005 from aanand/docker-in-docker
...
Run tests using Docker-in-Docker so we can test multiple versions
2015-03-17 15:13:59 +00:00
Ben Firshman
d21b8f1ba3
Merge pull request #1112 from bfirsh/remove-wercker-from-readme
...
Remove wercker status from readme
2015-03-16 23:53:18 +00:00
funkyfuture
4c5a80f253
Change port in ports-composefile to 49152
...
This shall lower the propability to interfere with another service (e.g. the
WebUI of an application) that is running on the machine where tests are run.
Signed-off-by: funkyfuture <funkyfuture@riseup.net>
2015-03-17 00:21:29 +01:00
Ben Firshman
198598c936
Remove wercker status from readme
...
Because it doesn't really work anymore and looks scary when it's broken.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-03-13 19:36:54 +00:00
Ben Firshman
8b5a882459
Merge pull request #867 from knutwalker/feature/timeout-flag
...
Add timeout flag to stop, restart, and up
2015-03-13 17:41:16 +00:00
Ben Firshman
dae451019b
Merge pull request #1099 from aanand/fix-env-file-resolution
...
Fix env file resolution
2015-03-13 16:49:10 +00:00
Ben Firshman
dfc729b8f2
Merge pull request #1108 from aanand/fix-deps-tests
...
Fix Project.up() tests
2015-03-13 16:38:25 +00:00
Aanand Prasad
eb7ea76d6c
Merge pull request #1100 from vmalloc/patch-3
...
Remove restriction for requests version, update docker-py requirement
2015-03-13 16:22:40 +00:00
Aanand Prasad
3c8ef6a94c
Fix Project.up() tests
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-13 14:51:26 +00:00
Ben Firshman
081afd9bbf
Merge pull request #1097 from aanand/script-shell
...
Add script/shell
2015-03-13 14:43:47 +00:00
Aanand Prasad
528bed9ef6
Fix environment resolution
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-13 14:22:28 +00:00
Aanand Prasad
4ecf5e01ff
Extract YAML loading and parsing into config module
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-13 14:21:58 +00:00
Rotem Yaari
81a32a266f
Remove restriction for requests version, update docker-py requirement
2015-03-13 14:39:11 +02:00
Aanand Prasad
25c70c2af4
Merge pull request #1076 from gilclark/master
...
Make volumes_from and net containers first class dependencies
2015-03-13 11:46:13 +00:00
likeon
f393447ac9
Docs: yml link in getting started with django
...
Signed-off-by: Alexander Sterchov i@likeon.name
2015-03-13 13:50:20 +03:00
Aanand Prasad
7b1f01bb52
Add script/shell
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-12 14:02:14 +00:00
Daniel Nephin
c23189a5fa
Merge pull request #971 from IanVS/master
...
Provide user override option on command line
2015-03-11 10:16:43 -04:00
Ian VanSchooten
86b723e227
Provide user override option on command line
...
Allows overriding a user on the command line from the one specified in
the docker-compose.yml
The added tests verify that a specified user overrides a default
user in the docker-compose.yml file.
Based on commit f2f01e207b491866349db7168e3d48082d7abdda by @chmouel
Signed-off-by: Ian VanSchooten <ian@badgelabsllc.com>
2015-03-11 00:11:31 -04:00
Paul Horn
2534a0964f
Add timeout flag to stop, restart, and up
...
The commands `stop`, `restart`, and `up` now support a flag `--timeout`.
It represents the number of seconds to give the services to comply to
the command. In case of `up`, this is only relevant if running in
attached mode.
Signed-off-by: Paul Horn <knutwalker@gmail.com>
2015-03-10 12:21:58 +01:00
Aanand Prasad
42e6296b0e
Kick everything off from a single container
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-09 17:53:54 +00:00
Aanand Prasad
74440b2f92
Run tests using Docker-in-Docker so we can test multiple versions
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-03-09 17:53:54 +00:00
Gil Clark
95f4e2c7c3
Make volumes_from and net containers first class dependencies and
...
assure that starting order is correct. Added supporting unit and
integration tests as well.
Signed-off-by: Gil Clark <gilclark1@gmail.com>
2015-03-06 13:30:56 -08:00
Ben Firshman
9e9a66f0f8
Merge pull request #965 from albers/bash-completion
...
Favour yml and yaml extensions in bash completion for -f
2015-03-06 15:20:12 +00:00
Ben Firshman
300234429c
Merge pull request #1034 from bfirsh/remove-d11wtq-as-maintainer
...
Remove @d11wtq as a maintainer
2015-03-05 11:14:50 +00:00
Ben Firshman
3384bc5fcf
Merge pull request #1059 from bfirsh/fix-missing-space-in-docs
...
Fix missing space in rails docs
2015-03-05 11:14:37 +00:00
Ben Firshman
08f936b2e7
Fix missing space in rails docs
...
From #1031
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-03-04 10:27:25 +00:00
Ben Firshman
df925bc759
Merge pull request #1031 from fredlf/edit-qs-guides
...
Edits and revisions to Compose Quickstart guides
2015-03-04 10:26:32 +00:00
Aanand Prasad
33c7b3f752
Merge pull request #1052 from albers/bash-completion-rm-f
...
Add -f flag to bash completion for docker-compose rm
2015-03-02 18:15:12 +00:00
Harald Albers
ac7a97f420
Add -f flag to bash completion for docker-compose rm
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-03-02 18:33:34 +01:00
Aanand Prasad
d5fcb0de67
Merge pull request #970 from dnephin/fix_environment_as_list_bug
...
Fix merging command line environment with config environment
2015-03-02 15:28:05 +00:00
Daniel Nephin
f47431d591
Resolves #927 - fix merging command line environment with a list in the config
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-03-02 10:23:43 -05:00
Aanand Prasad
8610adcaf3
Merge pull request #997 from abesto/use-latest-docker-py
...
Use docker-py 1.0.0
2015-03-02 14:15:18 +00:00
Zoltan Nagy
8f38b28816
Use docker-py 1.0.0
...
Signed-off-by: Zoltan Nagy <abesto@abesto.net>
2015-03-02 13:11:02 +01:00
Aanand Prasad
db3b4731cd
Merge pull request #1044 from usrenmae/py3-compat
...
Move several steps closer to python3 compatibility
2015-03-02 12:08:39 +00:00
Aanand Prasad
30b7c22c71
Merge pull request #1043 from alunduil/add-bashcomp-to-sdist
...
add bash completion to sdist
2015-03-02 12:05:09 +00:00
Aanand Prasad
f89f9e3190
Merge pull request #1007 from KingsleyKelly/force
...
Add -f flag as option on rm.
2015-03-02 11:26:28 +00:00
Igor Ch
f1fc1d7a16
Move several steps closer to python3 compatibility
...
Signed-off-by: Igor Ch <usrenmae@gmail.com>
2015-02-28 23:26:20 +02:00
Alex Brandt
0e30d0085b
add bash completion to sdist
...
When installing from the source distribution (for packaging or other
purposes), it's convenient to be able to install the bash completion
file as part of that process.
2015-02-28 15:18:29 -06:00
Ben Firshman
98f32a21e7
Remove @d11wtq as a maintainer
...
Thanks for all the help!
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-02-27 11:18:41 +00:00
KingsleyKelly
fa195bc829
Add -f flag as option on rm.
...
Signed-off-by: Kingsley Kelly <kingsley.kelly@gmail.com>
2015-02-27 07:24:43 +00:00
Fred Lifton
882dc673ce
Edits and revisions to Compose Quickstart guides
2015-02-26 18:58:06 -08:00
Ben Firshman
44f5a3ea46
Merge pull request #1028 from aanand/update-readme
...
Update README with new docs URL and IRC channel
2015-02-26 14:11:37 +00:00
Ben Firshman
ac4e800763
Merge pull request #1009 from aanand/update-docker-install-instructions
...
Point at official Docker install instructions rather than repeating them
2015-02-25 19:11:08 +00:00
Ben Firshman
2e57575a61
Merge pull request #1018 from aanand/link-to-getting-started-guides
...
Build and link to getting started guides
2015-02-25 19:07:57 +00:00
Ben Firshman
03535a6158
Merge pull request #1027 from aanand/ship-1.1.0
...
Ship 1.1.0
2015-02-25 18:42:28 +00:00
Aanand Prasad
c41342501b
Update README with new docs URL and IRC channel
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-25 18:25:15 +00:00
Aanand Prasad
4ac02bfca6
Ship 1.1.0
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-25 18:16:44 +00:00
Aanand Prasad
35d5d1a5b1
Build and link to getting started guides
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-25 17:54:02 +00:00
Aanand Prasad
72003de737
Merge pull request #1020 from bfirsh/move-docs-index-higher-up-on-compose-docs
...
Move docs index higher up on index page
2015-02-25 17:52:56 +00:00
Ben Firshman
a0db5bee3e
Merge pull request #1022 from aanand/previously-known-as
...
Add 'previously known as Fig' note to README.md
2015-02-25 17:52:04 +00:00
Ben Firshman
59c45e3398
Merge pull request #1026 from aanand/fix-requests-version-range
...
Fix requests version range
2015-02-25 17:51:39 +00:00
Aanand Prasad
ea8364fd11
Add 'previously known as Fig' note to README.md
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-25 17:39:12 +00:00
Aanand Prasad
cf6b09e94b
Fix requests version range
...
It was more permissive than docker-py's, resulting in an incompatible
version (2.5.x) being installed.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-25 17:34:22 +00:00
Ben Firshman
66555aa69b
Merge pull request #1021 from aanand/update-urls
...
Update URLs in documentation
2015-02-25 16:48:28 +00:00
Aanand Prasad
bb943d5cb5
Update URLs in documentation
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-25 14:58:03 +00:00
Ben Firshman
178c50d46f
Move docs index higher up on index page
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-02-25 14:09:30 +00:00
Ben Firshman
32cdabefc2
Merge pull request #1016 from SvenDowideit/docs-tweak
...
Add an index to the bottom of the Compose docs as they're scattered arou...
2015-02-25 13:55:47 +00:00
Sven Dowideit
5b07c581e0
Add an index to the bottom of the Compose docs as they're scattered around docs.docker.com
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-02-25 23:38:25 +10:00
Ben Firshman
17bbb9d357
Merge pull request #1017 from aanand/swarm-doc
...
Document Swarm integration
2015-02-25 12:53:07 +00:00
Aanand Prasad
ec2966222a
Document Swarm integration
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-25 10:45:40 +00:00
Aanand Prasad
8076c7d7fe
Merge pull request #1010 from bfirsh/add-create-message-when-scaling-containers
...
Log "creating container" when scaling
2015-02-24 14:09:12 +00:00
Ben Firshman
b2425c1f1e
Log "creating container" when scaling
...
If an image needs pulling, it just looks like it's hanging.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-02-24 13:39:38 +00:00
Aanand Prasad
34c6920b37
Point at official Docker install instructions rather than repeating them
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-24 11:43:14 +00:00
Ben Firshman
8d8dd37d2c
Merge pull request #924 from aanand/update-contributing
...
Add checklist item for completion script URL to CONTRIBUTING.md
2015-02-24 10:44:16 +00:00
Ben Firshman
b1739e703b
Merge pull request #1002 from SvenDowideit/add-links-to-references
...
Add links to the main Compose references
2015-02-24 10:43:34 +00:00
Ben Firshman
a42f2007ea
Merge pull request #1001 from SvenDowideit/build-docs-in-local-fig-repo
...
add ./script/doc to build fig documentation using the docs.docker.com to...
2015-02-23 22:45:59 +00:00
Aanand Prasad
1dd5ef4133
Merge pull request #619 from bfirsh/add-script-which-runs-fig-inside-docker
...
Add script which runs Fig inside Docker
2015-02-23 18:20:33 +00:00
Sven Dowideit
c3215a1764
Add links to the main Compose references
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-02-23 16:13:58 +10:00
Sven Dowideit
bd320b19fe
add ./script/doc to build fig documentation using the docs.docker.com tooling
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-02-23 13:56:13 +10:00
Ben Firshman
0fa0131372
Add script which runs Fig inside Docker
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-02-20 14:33:15 +00:00
Aanand Prasad
a7fe67e691
Merge pull request #991 from aanand/credit-contributors
...
Credit contributors in CHANGES.md
2015-02-19 18:08:45 +00:00
Aanand Prasad
f78dfa7958
Credit contributors in CHANGES.md
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-19 17:42:33 +00:00
Aanand Prasad
d95de03de9
Merge pull request #990 from bfirsh/add-title-to-docs-index
...
Add title to docs index
2015-02-19 16:02:22 +00:00
Ben Firshman
e3eccd1047
Merge pull request #979 from aanand/fix-env-docs
...
Update environment variable names in docs
2015-02-19 14:34:48 +00:00
Ben Firshman
d32994c250
Add title to docs index
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-02-19 14:34:08 +00:00
Aanand Prasad
a516d61b49
Update environment variable names in docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-18 11:39:57 +00:00
Aanand Prasad
6eb1c8896f
Merge pull request #952 from fredlf/cli-doc-revision
...
Revises Compose cli reference
2015-02-18 11:38:50 +00:00
Ben Firshman
160e2dc7b9
Merge pull request #949 from aanand/update-intro
...
Rejig introduction
2015-02-18 09:46:16 +00:00
Aanand Prasad
5e8bcd2d29
Rejig introduction
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-17 10:58:51 +00:00
Ben Firshman
2eb20d89af
Merge pull request #904 from fredlf/install-doc-revision
...
Revision and edit of Compose install doc
2015-02-13 12:25:32 +00:00
Aanand Prasad
ab65c829ea
Merge pull request #960 from bfirsh/remove-nathanleclaire-as-maintainer
...
Remove @nathanleclaire as a maintainer
2015-02-13 11:59:27 +00:00
Aanand Prasad
83110b8e6b
Merge pull request #959 from bfirsh/tidy-up-contributing-guidelines
...
Tidy up contributing guidelines
2015-02-13 11:43:05 +00:00
Harald Albers
3a8a25b9b3
Favour yml and yaml extensions in bash completion for -f
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-02-13 10:25:18 +01:00
Ben Firshman
0a8f9abfae
Remove @nathanleclaire as a maintainer
...
Thanks for your help <3
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-02-12 16:39:59 +00:00
Ben Firshman
3146fe5e4b
Tidy up contributing guidelines
...
- Add intro saying we roughly follow the Docker project's guidelines
- Link to Docker's signing off docs
- Fix formatting at bottom
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-02-12 13:40:02 +00:00
Fred Lifton
4a33686787
Revises Compose cli reference
2015-02-11 18:22:36 -08:00
Aanand Prasad
64239f1408
Merge pull request #950 from aanand/update-pep8
...
Update pep8, fix errors and freeze requirements-dev.txt
2015-02-11 21:33:14 +00:00
Aanand Prasad
c39a0b0a2d
Update pep8, fix errors and freeze requirements-dev.txt
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-11 19:00:13 +00:00
Fred Lifton
8a7b3fb0eb
Merge pull request #922 from aanand/tweak-intro
...
Tweak intro
2015-02-09 16:11:21 -08:00
Daniel Nephin
4251f2b732
Merge pull request #911 from ggtools/release_notes
...
Add missing cpu_shares option for rel. 1.1.0-rc1
2015-02-06 10:47:40 -05:00
Fred Lifton
9f4775c554
Revision and edit of Compose install doc
...
Fix rc version to latest.
Signed-off-by: Fred Lifton <fred.lifton@docker.com>
2015-02-05 17:48:06 -08:00
Aanand Prasad
7ff607fb7a
Add checklist item for completion script URL to CONTRIBUTING.md
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-05 17:37:04 -05:00
Aanand Prasad
b25ed59b1c
Tweak intro
...
We shouldn't yet be recommending production use - for now, let's continue to emphasise the development use case and mention staging/CI.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-02-05 16:17:38 -05:00
Daniel Nephin
eabca3d7b7
Merge pull request #907 from apenney/typo
...
Fix a small typo.
2015-02-02 11:02:12 -05:00
Christophe Labouisse
45b8d526ba
Add missing cpu_shares option for rel. 1.1.0-rc1
...
Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
2015-02-01 17:03:50 +01:00
Ashley Penney
75247e5a54
Fix a small typo.
2015-01-31 20:00:04 -05:00
Fred Lifton
2cf1fa6c9d
Merge pull request #902 from SvenDowideit/iterate-on-freds-index-doc-revisions
...
Edit and revision of overview & quick start doc
2015-01-30 10:57:19 -08:00
Sven Dowideit
3b7ea5c055
resolve most of my comments
...
Signed-off-by: Sven Dowideit <SvenDowideit@home.org.au>
2015-01-30 21:27:57 +10:00
Fred Lifton
461f1ad5d5
Edit and revision of overview & quick start doc
...
Signed-off-by: Fred Lifton <fred.lifton@docker.com>
2015-01-29 19:55:11 -08:00
Fred Lifton
2307adc4b2
Merge pull request #855 from SvenDowideit/add-docker-docs-metadata-and-reflow-to-80-chars
...
Add Docker docs.docker.com meta-data, and reflow to 80-chars to simplify GH diffs
2015-01-29 19:21:23 -08:00
Sven Dowideit
d8d0fd6dc9
Add Docker docs.docker.com meta-data, and reflow to 80-chars to simplify github diffs
...
Signed-off-by: Sven Dowideit <SvenDowideit@docker.com>
2015-01-30 13:11:48 +10:00
Aanand Prasad
e4d6a2c240
Merge pull request #900 from aanand/ship-1.1.0-rc2
...
Ship 1.1.0-rc2
2015-01-29 18:00:26 -05:00
Aanand Prasad
deb2de3c07
Ship 1.1.0-rc2
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-29 18:00:10 -05:00
Aanand Prasad
bc1f6c97d8
Merge pull request #898 from aanand/support-fig-yml
...
Support fig.yml
2015-01-29 13:47:49 -05:00
Aanand Prasad
7c087f1c07
Support fig.y(a)ml and show a deprecation warning
...
Closes #864
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-29 13:14:44 -05:00
Ben Firshman
fd30920aac
Merge pull request #897 from aanand/nicer-env-file-error
...
Nicer env file error
2015-01-29 00:51:05 +00:00
Aanand Prasad
9bc7604e0e
Make sure we're testing uppercase directories properly
...
(OS X is case-sensitive so we can't have fixture dirs which are
identically named if you ignore case)
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-28 17:19:27 -05:00
Aanand Prasad
de07e0471e
Show a nicer error when the env file doesn't exist
...
Closes #865
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-28 16:20:01 -05:00
Aanand Prasad
dfc6206d0d
Extract get_env_files()
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-28 16:18:02 -05:00
Aanand Prasad
6c45b6ccdb
Make sure we're testing blank lines and comments in env files
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-28 16:18:02 -05:00
Daniel Nephin
d79dc85fa5
Merge pull request #887 from albers/multiple-configfiles
...
Bash completion supports fig.yml and other legacy filenames
2015-01-27 23:08:23 -05:00
Aanand Prasad
22aca1a8a5
Merge pull request #879 from albers/bash-completion
...
Update bash completion for compose 1.1.0-rc1
2015-01-27 16:34:33 -05:00
Aanand Prasad
74302560f5
Merge pull request #891 from aanand/fix-image-volumes-test
...
Fix test for image-declared volumes
2015-01-27 16:33:59 -05:00
Aanand Prasad
bc2f6044fd
Merge pull request #880 from dnephin/use_latest_docker_py
...
Use latest docker-py
2015-01-27 16:32:56 -05:00
Aanand Prasad
1476027410
Fix test for image-declared volumes
...
A stray 'fig' got lost in the merge post-rename, meaning the containers
weren't being cleaned up properly.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-27 14:46:58 -05:00
Daniel Nephin
28fa49e569
Merge pull request #810 from madwire/patch-1
...
Tweaks to the rails tutorial to bring it inline with rails 4.2 release
2015-01-27 14:45:31 -05:00
Harald Albers
27e4f982fa
Bash completion supports fig.yml and other legacy filenames
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-01-27 09:03:04 +01:00
Daniel Nephin
0bc4a28dcc
Use latest docker-py.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-01-25 15:33:15 -05:00
Harald Albers
bd535c76d0
Add --service-ports to bash completion
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-01-25 09:47:30 -08:00
Daniel Nephin
ef027599f7
Merge pull request #871 from albers/bash-completion
...
Rebrand bash completion script
2015-01-22 12:52:27 -05:00
Harald Albers
f1e4fb7736
Rebrand bash completion script
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-01-22 16:07:11 +01:00
Aanand Prasad
df3221df61
Merge pull request #862 from aanand/ship-1.1.0rc1
...
Ship 1.1.0rc1
2015-01-20 22:50:39 +00:00
Aanand Prasad
43fdae8bc6
Ship 1.1.0-rc1
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-20 22:42:59 +00:00
Aanand Prasad
4869fed97f
Merge pull request #835 from aanand/rebrand
...
Rebrand (pre-RC)
2015-01-20 22:24:21 +00:00
Aanand Prasad
16d6018419
Fix typos
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-20 21:28:49 +00:00
Aanand Prasad
8297f55f2c
Remove all website-related stuff from docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-20 21:00:23 +00:00
Aanand Prasad
724be54f09
Manual fixes to docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-20 21:00:23 +00:00
Aanand Prasad
e3c4a662d9
Find-and-replace on docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-20 21:00:23 +00:00
Aanand Prasad
c981ce929a
Update README.md, ROADMAP.md and CONTRIBUTING.md
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-20 21:00:23 +00:00
Aanand Prasad
620e29b63f
Rename binary to docker-compose and config file to docker-compose.yml
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-20 21:00:23 +00:00
Aanand Prasad
2af7693e64
WIP: rename Fig to Compose
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-20 21:00:23 +00:00
Aanand Prasad
7be8b4c06d
Merge pull request #851 from aanand/swarm-names
...
Handle Swarm-style prefixed container names
2015-01-20 20:51:47 +00:00
Aanand Prasad
cbd3ca07c4
Handle Swarm-style prefixed names in Container.from_ps()
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-20 20:38:06 +00:00
Aanand Prasad
edb6b24b8f
Handle Swarm-style prefixed names in Service.containers()
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-20 20:38:06 +00:00
Aanand Prasad
608f29c7cb
Unit tests for Service.containers() and get_container_name()
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-20 20:38:06 +00:00
Aanand Prasad
37ed743ee8
Merge pull request #859 from aanand/test-image-volumes
...
Test for preservation of volumes declared in images
2015-01-20 20:26:40 +00:00
Aanand Prasad
17a8a7be4b
(Failing) test for preservation of volumes declared in images
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2015-01-20 20:16:18 +00:00
Aanand Prasad
f57db078ba
Merge pull request #863 from dnephin/revert_volume_recreate_changes
...
Revert #711 from dnephin/fix_volumes_on_recreate
2015-01-20 20:15:17 +00:00
Daniel Nephin
2dd1cc80ca
Revert "Merge pull request #711 from dnephin/fix_volumes_on_recreate"
...
This reverts commit 55095ef488 , reversing
changes made to 72095f54b2 .
Signed-off-by: Daniel Nephin <dnephin@yelp.com>
2015-01-20 12:03:03 -08:00
Aanand Prasad
55095ef488
Merge pull request #711 from dnephin/fix_volumes_on_recreate
...
Fix volumes on recreate
2015-01-15 18:53:48 +00:00
Daniel Nephin
7eb476e61d
Resolves #447 , fix volume logic for recreate container
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-01-14 16:20:59 -05:00
Aanand Prasad
72095f54b2
Merge pull request #639 from albers/bash-completion
...
Bash completion for fig command
2015-01-13 17:46:42 +00:00
Daniel Nephin
26f45efea2
Remove unused intermediate_container from return value.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-01-12 22:16:54 -08:00
Aanand Prasad
4827e60641
Merge pull request #568 from Aigeruth/fix/project_name
...
Convert project_name to lowercase
2015-01-12 16:23:09 +00:00
Aanand Prasad
74a0c47389
Merge pull request #830 from ggtools/cpu_shares
...
Add cpu_shares option in fig.yml
2015-01-12 12:09:08 +00:00
Christophe Labouisse
aa0c43df96
Add cpu_shares option in fig.yml
...
This options maps exactly the docker run option with the same name.
Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
2015-01-11 20:10:48 +01:00
Aanand Prasad
4ef2e21cca
Merge pull request #815 from dnephin/fix_the_build
...
Fix the failing test
2015-01-09 12:36:09 +00:00
Daniel Nephin
3ee8437eaa
Fix the failing test.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2015-01-08 10:55:40 -05:00
Daniel Nephin
b903217a4a
Merge pull request #544 from LuminosoInsight/external-links
...
Allow links to containers outside of the project
2015-01-08 10:39:00 -05:00
Harald Albers
2406a3936a
Documentation for bash completion
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-01-08 15:18:39 +01:00
Harald Albers
69db596b5d
Bash completion for fig command
...
Signed-off-by: Harald Albers <github@albersweb.de>
2015-01-08 15:18:39 +01:00
Richard Adams
9a90a27376
be explicit with a ruby version number in the Dockerfile
...
Signed-off-by: Richard Adams <richard@madwire.co.uk>
2015-01-07 19:45:00 +00:00
Aanand Prasad
a2f3c0b5da
Merge pull request #804 from bfirsh/roadmap-update
...
Reorganised roadmap, add high-level goals
2015-01-07 19:19:45 +00:00
Richard Adams
3b638f0c43
tweaks to the rails tutorial to bring it inline with rail 4.2 release
...
Due to a change in Rack, rails server now listens on localhost instead of 0.0.0.0 by default.
Signed-off-by: Richard Adams <richard@madwire.co.uk>
2015-01-07 17:06:47 +00:00
Ben Firshman
b252300e94
Reorganised roadmap, adding high-level goals
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2015-01-06 15:39:02 +00:00
Daniel Nephin
be553e393a
Merge pull request #787 from ggtools/patch-1
...
Added missing options
2015-01-05 13:05:48 -05:00
Christophe Labouisse
91c90a722a
Added missing options
...
The stdin_open and tty options are supported by fig but were missing from the documentation.
Signed-off-by: Christophe Labouisse <christophe@labouisse.org>
2015-01-03 23:20:10 +01:00
Ben Firshman
d399d386ae
Merge pull request #765 from aanand/roadmap
...
Docker Compose roadmap
2014-12-31 19:25:39 +00:00
Daniel Nephin
4cb47e498b
Merge pull request #586 from dnephin/speed_up_fig_up
...
Speed up fig up
2014-12-31 14:00:07 -05:00
Daniel Nephin
3056ae4be3
Add a no-build option to fig up, to save time when services were already freshly built.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-12-31 13:47:24 -05:00
Daniel Nephin
5b777ee5f1
Cleanup service unit tests and restructure some service create logic.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-12-31 13:39:41 -05:00
Aanand Prasad
c885aaa5f8
ROADMAP.md
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-12-31 18:10:05 +00:00
Jason Bernardino Alonso
4257707244
Accept an external_links list in the service configuration dictionary to create links to containers outside of the project
...
Signed-off-by: Jason Bernardino Alonso <jalonso@luminoso.com>
Signed-off-by: Mauricio de Abreu Antunes <mauricio.abreua@gmail.com>
2014-12-30 15:31:33 -05:00
Aanand Prasad
70c3676084
Merge pull request #763 from bfirsh/pass-through-detach-to-create-container
...
Don't attach stdin and stdout when in detach mode
2014-12-30 16:05:53 +00:00
Ben Firshman
e89826fe43
Don't attach stdin and stdout when in detach mode
...
This is primarily to make it work with Swarm, which checks that
AttachStd{in,out,err} is false when creating containers.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-12-30 14:13:36 +00:00
Aanand Prasad
0e172228d1
Merge pull request #485 from squebe/run-service-ports
...
Added map service ports option for run command.
2014-12-19 14:17:57 -08:00
Daniel Nephin
cb1a5e0a24
Merge pull request #476 from salehe/dns-search
...
Add dns_search support in yml config
2014-12-19 10:00:45 -05:00
Mohammad Salehe
3c105c6db2
Fix typo in dns_search documentation
...
Signed-off-by: Mohammad Salehe <salehe+dev@gmail.com>
2014-12-15 16:37:32 +03:30
Mohammad Salehe
5182bd0968
Add dns_search support in yml config
...
Signed-off-by: Mohammad Salehe <salehe@gmail.com>
2014-12-15 16:37:31 +03:30
Daniel Nephin
200c44cff3
Merge pull request #728 from aanand/volume_test
...
Stronger integration test for volume binds
2014-12-13 12:51:22 -05:00
Aanand Prasad
05544ce241
Stronger integration tests for volume binds
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-12-12 17:53:57 -08:00
Stephen Quebe
cc834aa564
Added map service ports option for run command.
...
When using the fig run command, ports defined in fig.yml can be mapped
to the host computer using the -service-ports option.
Signed-off-by: Stephen Quebe <squebe@gmail.com>
2014-12-11 20:30:38 -05:00
Ben Firshman
a5505e7711
Merge pull request #721 from dnephin/fix_broken_tests
...
Include image name for env_file tests
2014-12-12 00:46:41 +00:00
Daniel Nephin
8f8e322de2
Include image name for env_file tests.
...
Signed-off-by: Daniel Nephin <dnephin@yelp.com>
2014-12-11 14:25:26 -08:00
Daniel Nephin
64762c9dea
Merge pull request #716 from bfirsh/pull-latest-tag-by-default
...
Pull latest tag by default
2014-12-11 15:58:40 -05:00
Ben Firshman
8ebec9a67f
Pull latest tag by default
...
This was changed in Docker recently:
https://github.com/docker/docker/pull/7759
This means we aren't pulling loads of tags when we only use the
latest.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-12-11 12:37:04 -08:00
Ben Firshman
45b2712032
Merge pull request #720 from dnephin/upstream_minor_fixes
...
Support a timeout on docker client
2014-12-11 19:28:33 +00:00
Daniel Nephin
3c0f297ba6
Some minor cleanup from yelp/fig
...
Signed-off-by: Daniel Nephin <dnephin@yelp.com>
2014-12-11 10:08:39 -08:00
Ben Firshman
c0123c7477
Merge pull request #717 from bfirsh/rm-containers-in-scripts
...
Remove containers in scripts
2014-12-10 23:26:51 +00:00
Ben Firshman
2a0782c660
Merge pull request #718 from bfirsh/docker-py-0.6.0
...
Upgrade to docker-py 0.6.0
2014-12-09 22:12:05 +00:00
Daniel Nephin
481a8cb7ab
Merge pull request #713 from leishman/add-favicon-headers
...
Add favicon.ico and links in header
2014-12-09 14:29:33 -05:00
Ben Firshman
788741025e
Upgrade to docker-py 0.6.0
...
Force using remote API version 1.14 so Fig is still compatible with
Docker 1.2.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-12-09 10:57:45 -08:00
Ben Firshman
c12d1d73f0
Remove containers in scripts
...
So we don't clutter up Docker with loads of stopped containers.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-12-09 10:49:37 -08:00
Ben Firshman
e794e79209
Merge pull request #665 from benlangfeld/support-env-file
...
Support env file
2014-12-09 18:42:31 +00:00
Ben Langfeld
98b6d7be78
Add support for 'env_file' key
...
Signed-off-by: Ben Langfeld <ben@langfeld.me>
2014-12-08 23:42:09 +00:00
Ben Firshman
a12cf826cd
Merge pull request #585 from alunduil/add-tests-to-sdist
...
Add tests to sdist.
2014-12-08 21:34:47 +00:00
Ben Firshman
d18cfa1c98
Merge pull request #661 from bfirsh/add-entrypoint-to-dockerfile
...
Add fig as entrypoint to Dockerfile
2014-12-08 21:32:06 +00:00
Ben Firshman
9a04ae0ddf
Merge pull request #623 from TFenby/capabilities
...
Add capability add/drop introduced in Docker 1.2
2014-12-08 21:24:02 +00:00
Alexander Leishman
ab77cef7ab
Add favicon.ico and links in header
...
Signed-off-by: Alexander Leishman <leishman3@gmail.com>
2014-12-08 13:04:02 -08:00
Tyler Fenby
5c58180538
Add capability add/drop introduced in Docker 1.2
...
Signed-off-by: Tyler Fenby <tylerfenby@gmail.com>
2014-12-08 12:32:52 -05:00
Ben Firshman
429a3feabc
Merge pull request #699 from dtenenba/master
...
interpolate service_name in error message
2014-12-08 08:49:54 -08:00
Ben Firshman
1033439e63
Merge pull request #701 from bersace/master
...
Respect --allow-insecure-ssl option for dependencies
2014-12-08 08:46:30 -08:00
Ben Firshman
e9d946b038
Merge pull request #594 from popox/restart-option
...
Add restart option to Fig.
2014-12-08 08:43:27 -08:00
Étienne BERSAC
4e8337c168
Respect --allow-insecure-ssl option for dependencies
...
Signed-off-by: Étienne Bersac <etienne.bersac@novapost.fr>
2014-12-04 11:45:36 +01:00
Dan Tenenbaum
e34a62956e
interpolate service_name in error message when service has no configuration options.
...
Signed-off-by: Dan Tenenbaum <dtenenba@fhcrc.org>
2014-12-03 09:44:35 -08:00
Alex Brandt
0150b38b8f
Add tests to sdist.
...
In order to validate installation it's very convenient to have the tests
as part of the source distribution. This greatly assists native
packaging that might occur (i.e. Gentoo ebuilds).
Signed-off-by: Alex Brandt <alunduil@alunduil.com>
2014-11-28 09:37:33 -06:00
Ben Firshman
bb85e238e0
Add fig as entrypoint to Dockerfile
...
A step towards "docker run fig".
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-11-20 17:23:43 +00:00
Daniel Nephin
65ae22e79a
Merge pull request #611 from raulcd/604_support_reloading_containers
...
Add signal in the kill CLI commando to send a specific signal to the service
2014-11-13 10:28:14 -05:00
Paul B
04da6b035e
Add restart option to Fig. Related to #478
...
Signed-off-by: Paul Bonaud <paul@bonaud.fr>
2014-11-08 12:10:11 +01:00
Daniel Nephin
d3e94f2caf
Merge pull request #624 from drewkett/multiple_port_mappings
...
Support multiple port bindings for same internal port
2014-11-07 11:28:27 -08:00
Andrew Burkett
4f6d02867b
Move to build_port_bindings(). Added Tests
...
Signed-off-by: Andrew Burkett <burkett.andrew@gmail.com>
2014-11-06 18:11:09 -08:00
Andrew Burkett
f98323b79e
Support multiple port mappings for same internal port
...
Signed-off-by: Andrew Burkett <burkett.andrew@gmail.com>
2014-11-06 16:29:39 -08:00
Aanand Prasad
3f4b16181d
Merge pull request #618 from bfirsh/make-dnephin-a-maintainer
...
Make @dnephin a maintainer
2014-11-05 10:58:50 +00:00
Aanand Prasad
5dde2a2498
Merge pull request #612 from bfirsh/ship-1.0.1
...
Ship 1.0.1
2014-11-05 10:57:53 +00:00
Ben Firshman
06a1b32c12
Make @dnephin a maintainer
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-11-05 09:47:48 +00:00
Ben Firshman
46433c70b6
Ship 1.0.1
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-11-04 14:12:48 +00:00
Aanand Prasad
9260603149
Merge pull request #588 from bfirsh/use-upstream-dockerpty
...
Use upstream dockerpty 0.3.2
2014-11-04 12:59:01 +00:00
Raúl Cumplido
9abdd337b5
Add signal in the kill CLI commando to send a specific signal to the service
...
Signed-off-by: Raúl Cumplido <raulcumplido@gmail.com>
2014-11-04 12:22:39 +00:00
Ben Firshman
8773f51583
Don't select stdin when interactive=False
...
Patch from https://github.com/d11wtq/dockerpty/pull/24
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-11-04 10:25:27 +00:00
Ben Firshman
38a3ee8d63
Use upstream dockerpty 0.3.2
...
This reverts commit 60411e9f05 .
Closes #556
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
Conflicts:
requirements.txt
setup.py
2014-11-04 10:23:42 +00:00
Aanand Prasad
cb275b8633
Merge pull request #591 from npeters/fix-insecure-registry
...
fix insecure parameter
2014-11-03 14:17:43 +00:00
Aanand Prasad
604b370bb4
Merge pull request #606 from kojiromike/602-no-help-without-figfile
...
Fixes #602 Allowing `help $cmd` with no figfile
2014-11-03 11:27:58 +00:00
Michael A. Smith
782a46fd60
Fixes #602 Allowing help $cmd with no figfile
...
Signed-off-by: Michael A. Smith <michael@smith-li.com>
2014-11-02 06:22:16 -05:00
Aanand Prasad
1bd3d0dd77
Merge pull request #584 from kevinsimper/patch-1
...
Update wordpress url on wordpress example
2014-10-31 12:23:30 +00:00
Nicolas Peters
b64ea85916
fix insecure parameter
...
Signed-off-by: Nicolas Peters <peters.nico@gmail.com>
2014-10-28 00:05:17 +01:00
Kevin Simper
b47ab2b0f6
Update wordpress url on wordpress example
...
The old url gave a 302 and wordpress 4.0 has also been released.
2014-10-24 23:50:06 +02:00
Aanand Prasad
11280e4f30
Merge pull request #581 from bfirsh/add-dockerignore
...
Add .dockerignore
2014-10-24 11:59:01 +01:00
Aanand Prasad
a83876da09
Merge pull request #580 from bfirsh/improve-contributing-instructions
...
Improve contributing instructions
2014-10-24 11:43:14 +01:00
Ben Firshman
e66c0452d5
Add .dockerignore
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-23 19:00:44 +01:00
Ben Firshman
899670fc6c
Move building binaries instructions
...
It's less important than signing your work.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-23 18:31:28 +01:00
Ben Firshman
ea45715a50
Tidied up development environment instructions
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-23 18:30:48 +01:00
Ben Firshman
28f9c8d047
Add TL;DR section to CONTRIBUTING.md
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-23 18:28:17 +01:00
Aanand Prasad
292fe6640e
Merge pull request #578 from bfirsh/update-url-in-twitter-button
...
Update Twitter button URL
2014-10-23 16:17:38 +01:00
Ben Firshman
b759b9854a
Update Twitter button URL
...
I originally left it as orchardup.github.io so the number wouldn't roll
back to 0, but people have been tweeting about fig.sh now.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-23 16:05:11 +01:00
Aanand Prasad
40943d5c81
Merge pull request #533 from bfirsh/mention-configuration-files-on-home-page
...
Mention names of config files on home page
2014-10-23 11:23:33 +01:00
Aanand Prasad
93a0195dc8
Merge branch 'andreagrandi-patch-1'
...
Closes #570 .
2014-10-23 11:14:53 +01:00
Andrea Grandi
7f0745d146
Add command line options to the documentation
...
Signed-off-by: Andrea Grandi <a.grandi@gmail.com>
2014-10-23 11:13:40 +01:00
Ben Firshman
9813a8d5be
Merge pull request #562 from tjrivera/insecure-registry
...
Allow dependent image pull from insecure registry
2014-10-22 18:45:03 +01:00
Tyler Rivera
491181ec31
Allow dependent image pull from insecure registry
...
PR #490 Provides the ability to pull from an insecure registry by passing --allow-insecure-ssl. This commit extends the work done in #490 and adds the ability to pass --allow-insecure-ssl to the up and run commands which will attempt to pull dependent images if they do not exist.
Signed-off-by: Tyler Rivera <riverat2@email.chop.edu>
2014-10-22 10:57:43 -04:00
Aanand Prasad
e1ad5b1b99
Merge pull request #575 from bfirsh/fix-google-analytics-code
...
Fix Google Analytics code
2014-10-22 12:48:45 +01:00
Aanand Prasad
67d4b7c587
Merge pull request #574 from bfirsh/update-tagline
...
Update tagline to match website
2014-10-22 12:46:16 +01:00
Ben Firshman
98f663bab2
Fix Google Analytics code
...
It was not reporting because our URL changed.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-22 12:46:05 +01:00
Ben Firshman
75b3dcf5fd
Update tagline to match website
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-22 12:41:01 +01:00
Ben Firshman
deeb6c2236
Merge pull request #567 from aanand/fix-wordpress-guide
...
Fix language in Wordpress guide
2014-10-22 11:31:41 +01:00
Gabor Nagy
c838f7da18
Convert project_name to lowercase
...
Signed-off-by: Gabor Nagy <mail@aigeruth.hu>
2014-10-21 13:40:19 +02:00
Aanand Prasad
e1e2b75691
Fix language in Wordpress guide
...
Was still talking about 'environment variables'.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-10-21 11:44:42 +01:00
Aanand Prasad
392c118bbc
Merge pull request #554 from dnephin/more_defensive_stream
...
Fix a couple bugs with 1.0 release and Docker 1.3
2014-10-20 15:10:50 +01:00
Ben Firshman
dbd1e56dd3
Merge pull request #548 from aanand/fix-docker-py-requirement
...
Fix docker-py requirement in setup.py
2014-10-20 10:33:44 +01:00
Daniel Nephin
7544580b4b
Resolves #553 , Resolves #546 - bug fixes with unit tests
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-10-18 13:54:10 -04:00
Aanand Prasad
2efb4f5be0
Merge pull request #550 from bfirsh/fix-date-on-change-notes
...
Fix date on 1.0.0 change notes
2014-10-17 15:47:50 +01:00
Ben Firshman
5e8dc6c972
Merge pull request #549 from aanand/credit-1.0-contributors
...
Credit 1.0 contributors
2014-10-17 15:43:34 +01:00
Ben Firshman
23c8ec8930
Fix date on 1.0.0 change notes
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-17 15:43:14 +01:00
Aanand Prasad
bd8affb7aa
Credit 1.0 contributors
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-10-17 14:54:46 +01:00
Aanand Prasad
7a943739cb
Fix docker-py requirement in setup.py
...
I updated requirements.txt but forgot about setup.py, so the version on
pypi is broken for people who already have docker-py 0.5.0 installed.
Closes #547 .
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-10-17 11:17:58 +01:00
Aanand Prasad
6580c5609c
Merge pull request #526 from bfirsh/ship-1.0.0
...
WIP: Ship 1.0.0
2014-10-16 18:54:56 +01:00
Ben Firshman
a07c83659d
Merge pull request #537 from aanand/tls
...
TLS support
2014-10-16 18:53:59 +01:00
Aanand Prasad
0f58b9f6b4
Update docker-py to 0.5.3
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-10-16 18:46:55 +01:00
Aanand Prasad
fed391a23e
Update documentation for TLS and boot2docker
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-10-16 18:46:48 +01:00
Ben Firshman
4d1b2f1547
Ship 1.0.0
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-16 16:27:13 +01:00
Aanand Prasad
60411e9f05
Vendor dockerpty at c8b493553477c9a57d163c71c97b2102f44a6ce7
...
Include TLS fixes and relative imports:
c8b4935534
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-10-16 16:24:39 +01:00
Aanand Prasad
b318585f3c
TLS support, with same env vars as docker client
...
Thanks to @jkingyens for the bulk of the work.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-10-16 10:41:26 +01:00
Ben Firshman
1820306d0a
Merge pull request #529 from chmouel/override-environement
...
Allow overriding environements on command line
2014-10-14 11:27:20 +01:00
Aanand Prasad
bf1c1b4c17
Merge pull request #534 from bfirsh/use-bin-echo-for-intermediate-container
...
Use /bin/echo for intermediate container
2014-10-10 13:12:33 +01:00
Ben Firshman
352062c2dc
Use /bin/echo for intermediate container
...
In cases where the service is using a minimal container,
/bin/echo can be created but echo cannot.
See #517
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-10 12:24:00 +01:00
Ben Firshman
d3f88cace5
Mention names of config files on home page
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-10 11:06:49 +01:00
Chmouel Boudjnah
92249364b6
Allow overriding environements on command line
...
Add a new command line option -e to override environement variables when
running a service.
Signed-off-by: Chmouel Boudjnah <chmouel@chmouel.com>
2014-10-09 16:33:41 +02:00
Ben Firshman
872a1b5a5c
Merge pull request #523 from aanand/remove-references-to-docker-osx
...
Remove references to docker-osx
2014-10-06 16:05:06 +01:00
Aanand Prasad
b969988ccb
Remove references to docker-osx
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-10-06 14:21:49 +01:00
Aanand Prasad
a5aac7d59e
Merge pull request #508 from bfirsh/recommend-boot2docker-in-install-instructions
...
Recommend boot2docker in installation instructions
2014-10-06 13:44:23 +01:00
Ben Firshman
c16f4d4041
Recommend boot2docker in installation instructions
...
Fixes #26
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-06 13:14:12 +01:00
Aanand Prasad
d91c458d52
Merge pull request #509 from bfirsh/smarter-binary-urls
...
Use uname to generate binary download URL
2014-10-06 12:35:36 +01:00
Ben Firshman
475a7e19a9
Merge pull request #521 from aanand/clean-up-env-docs
...
Clean up environment variable docs
2014-10-06 12:34:35 +01:00
Aanand Prasad
f43bfaadaa
Clean up environment variable docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-10-06 11:58:16 +01:00
Aanand Prasad
2680756dd6
Merge pull request #518 from dnephin/env_docs
...
Add environment variables to cli.md docs
2014-10-06 11:36:21 +01:00
Daniel Nephin
837f368361
Add environment variables to cli.md docs.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-10-03 13:47:54 -04:00
Aanand Prasad
9df5481066
Merge pull request #512 from bfirsh/fix-entrypoint
...
Fix fig run entrypoint option
2014-10-01 15:39:00 -07:00
Aanand Prasad
59c7528b4e
Merge pull request #513 from bfirsh/update-wercker-badge
...
Update wercker badge
2014-10-01 14:57:47 -07:00
Ben Firshman
d2385e3c2c
Fix fig run entrypoint option
...
Slipped through because Wercker didn't report build status.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-01 14:19:23 -07:00
Ben Firshman
6b600faf0b
Update wercker badge
...
I moved the project.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-01 12:50:30 -07:00
Aanand Prasad
431fdaa0f1
Merge pull request #490 from LuminosoInsight/insecure-pull
...
Allow pulls from an insecure registry
2014-10-01 10:52:54 -07:00
Aanand Prasad
ed12f2539c
Merge pull request #511 from bfirsh/support_entrypoint
...
Add support for entrypoint to "fig run"
2014-10-01 10:51:50 -07:00
Ben Firshman
0dc19cb885
Order "fig run" options alphabetically
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-10-01 09:28:28 -07:00
satoru
62b9c64311
Add support for the --entrypoint option of docker run
...
Signed-off-by: Satoru Logic <satorulogic@gmail.com>
2014-10-01 09:28:28 -07:00
Moss Collum
3408e0d463
Add unit test for Service.pull
...
Signed-off-by: Moss Collum <mcollum@luminoso.com>
2014-10-01 11:09:19 -04:00
Ben Firshman
f4b599551a
Use uname to generate binary download URL
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-09-30 18:59:18 -07:00
Aanand Prasad
267be12bb2
Merge pull request #456 from dnephin/volumes_from_service
...
Fix volumes_from a service with no containers
2014-09-30 18:33:39 -07:00
Aanand Prasad
ec5c864cc7
Merge pull request #460 from dnephin/fix_tests_for_docker_1.1
...
Fix test failures on docker 1.1.2
2014-09-30 17:52:38 -07:00
Aanand Prasad
cabe47a379
Merge pull request #505 from bfirsh/use-debian-wheezy-base-image
...
Compile against older version of GLIBC
2014-09-30 17:07:15 -07:00
Ben Firshman
b4fbab4b56
Run pyinstaller build as normal user
...
... and test build on CI so we don't break it again!
Fixes #503
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-09-30 16:25:40 -07:00
Alexander Holbreich
6797a322b5
Changing to stable debian (wheezy).
...
Therefore it compiles agains more common version of GLIBC.
Now works out of the box on Debian wheezy, centos:centos6 and other stable
Of course it works on new distributions. Tested with:
debian:jessie and
ubuntu:14.04
Signed-off-by: Alexander Holbreich <alexander@holbreich.org>
Conflicts:
Dockerfile
2014-09-30 16:25:13 -07:00
Aanand Prasad
e04c5cb52c
Merge pull request #506 from bfirsh/make-test-script-use-docker
...
Make script/test use docker
2014-09-30 15:16:07 -07:00
Ben Firshman
a3f70a9f64
Make script/test use Docker
...
Really easy to run entire test suite with Docker now. Also switch
Wercker to use the same script.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-09-30 13:51:42 -07:00
Ben Firshman
f407504679
Remove old Travis files
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-09-30 13:47:47 -07:00
Aanand Prasad
253b245a1c
Merge pull request #492 from dnephin/project_name_from_env
...
Support setting project name from the environment
2014-09-29 15:32:29 -07:00
Daniel Nephin
fac49b62b6
Support setting project name from the environment.
...
Signed-off-by: Daniel Nephin <dnephin@yelp.com>
2014-09-29 18:01:08 -04:00
Ben Firshman
92ae5af019
Merge pull request #501 from aanand/fix-build-error
...
Fix race condition in cli_test.py
2014-09-28 04:54:08 +01:00
Jason Bernardino Alonso
c270e9d622
Require docker-py 0.5 or later for insecure_registry kwarg
...
Signed-off-by: Jason Bernardino Alonso <jalonso@luminoso.com>
2014-09-26 16:36:42 -04:00
Jason Bernardino Alonso
1c5194e2ec
Allow pulls from an insecure registry
...
Signed-off-by: Jason Bernardino Alonso <jalonso@luminoso.com>
2014-09-26 16:36:36 -04:00
Aanand Prasad
537d435a28
Fix race condition in cli_test.py
...
We weren't waiting for the build to finish, causing the rest of the test
to occasionally fail when looking for the image.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-09-26 11:42:16 -07:00
Aanand Prasad
5d76d183b4
Merge pull request #483 from dnephin/sort_containers_by_name_in_ps
...
Sort containers in ps output by name
2014-09-26 10:18:08 -07:00
Aanand Prasad
d4b7ed94e1
Merge pull request #499 from bfirsh/wercker-badge
...
Add wercker badge to readme
2014-09-25 11:37:03 -07:00
Aanand Prasad
d978787fcc
Merge pull request #439 from dnephin/faster_integration_tests
...
Faster integration testing
2014-09-24 17:34:52 -07:00
Ben Firshman
3535270ef0
Add wercker badge to readme
...
And removed PyPi badge because who cares.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-09-24 14:19:27 -07:00
Ben Firshman
b9eb55a225
Merge pull request #498 from bfirsh/mieciu-patch-1
...
Fix the broken URL
2014-09-24 21:53:57 +01:00
mieciu
35b217a0a4
Fix the broken URL
...
It was not redirecting to the proper page
Signed-off-by: Przemek Hejman <przemyslaw.hejman@gmail.com>
2014-09-24 13:52:08 -07:00
Aanand Prasad
c37dc558fb
Merge pull request #497 from bfirsh/wercker
...
Add wercker.yml
2014-09-24 10:51:56 -07:00
Ben Firshman
7a8f5e10fd
Add wercker.yml
...
Changed Dockerfile to run as root so it has access to
/var/run/docker.sock.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-09-23 10:40:51 -07:00
Daniel Nephin
192fce9153
Resolves #43 - sort containers in ps output by name, so services are grouped together.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-09-14 16:06:23 -04:00
Ben Firshman
fc4c35e977
Merge pull request #411 from Banno/fig-pull
...
adding "fig pull [SERVICE]" to pull service images
2014-09-10 23:57:20 +01:00
Luke Amdor
648c89768b
adding 'fig pull' to cli docs
...
Signed-off-by: Luke Amdor <luke.amdor@gmail.com>
2014-09-10 16:20:14 -05:00
Daniel Nephin
e0b0801e87
Do less work during integration testing.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-09-09 22:00:21 -04:00
Daniel Nephin
71e7103662
Fix some tests failing with docker 1.1.2 and add a comment to recreate_container() explaining what it does.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-09-09 20:59:28 -04:00
Daniel Nephin
dbd723659b
Add container.get() which removes the duplication of container.inspect() in every property, and provides a nicer interface for querying container data.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-09-09 20:59:28 -04:00
Aanand Prasad
6b221d5687
Merge pull request #477 from bfirsh/docker-py-0.5.0
...
Upgrade to docker-py 0.5.0
2014-09-08 14:20:12 -07:00
Ben Firshman
ce8ef23c09
Merge pull request #393 from marksteve/restart
...
Implement restart command (Closes #98 )
2014-09-08 17:47:08 +01:00
Ben Firshman
b0159e5100
Upgrade to docker-py 0.5.0
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-09-08 09:23:01 -07:00
Ben Firshman
ee6bb9a252
Merge pull request #475 from bfirsh/fix-missing-six-package
...
Fix missing six package
2014-09-06 02:20:55 +01:00
Ben Firshman
866050937a
Fix missing six package
...
I had some .pyc files kicking around, urgh.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-09-05 17:19:53 -07:00
Ben Firshman
41ee65b664
Merge branch 'dnephin-replace_packages_with_deps'
...
Closes #375
2014-09-05 11:55:17 -07:00
Daniel Nephin
7fd37c89b9
Remove fig.packages replace with real deps.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-09-05 11:44:49 -07:00
Aanand Prasad
8d3c9dccc5
Merge pull request #402 from dnephin/fig_ports.rebase
...
Fig port command
2014-09-05 11:09:40 -07:00
Daniel Nephin
f5d43b6452
Resolves #455 - volumes_from a service with no containers.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-09-04 22:21:49 -04:00
Daniel Nephin
c48ee5caef
Add a new fig command for retrieving the locally bound port of a service.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-09-04 22:09:12 -04:00
Ben Firshman
2827786886
Merge pull request #364 from docker/non-numeric-link-alias
...
Non-numeric link alias
2014-09-04 20:39:18 +01:00
Aanand Prasad
7ad91f3f00
Merge pull request #442 from dnephin/fix_create_container_volumes
...
Additional validation for container volumes and ports.
2014-09-04 12:12:09 -07:00
Daniel Nephin
24044fa704
Some additional validation for container ports, and a couple extra test cases.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-08-31 02:00:58 -04:00
Daniel Nephin
07fa169fd2
Resolves #260 , #301 and #449
...
Adds ~ support and ro mode support for volumes, along with some additional validation.
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-08-31 02:00:52 -04:00
Daniel Nephin
8157f0887d
Fix the return value of get_tty_width() it should return an int.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-08-25 22:20:07 -04:00
Aanand Prasad
6dab8c1b89
Merge pull request #420 from bfirsh/inline-installation-commands
...
Collapse install instructions into single line
2014-08-21 17:28:08 -07:00
Ben Firshman
63bd05d40e
Collapse install instructions into single line
...
For maximum copy and paste happiness
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-18 13:36:37 -07:00
Luke Amdor
e51851c884
adding "fig pull [SERVICE]" to pull service images
...
Fixes #158
Signed-off-by: Luke Amdor <luke.amdor@gmail.com>
2014-08-15 09:24:15 -05:00
Mark Steve Samson
e224c4caa4
Add integration test for restart command
...
Signed-off-by: Mark Steve Samson <hello@marksteve.com>
2014-08-13 10:01:27 +08:00
Aanand Prasad
dc857a7ad5
Merge pull request #404 from bfirsh/validate-dco
...
Validate DCO on Travis
2014-08-12 11:20:38 -07:00
Ben Firshman
aca0e42178
Validate DCO on Travis
...
Copied straight from Docker, replacing github.com/docker/docker
with github.com/docker/fig in .validate.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-12 10:58:16 -07:00
Ben Firshman
15037ce0e5
Merge pull request #397 from alunduil/master
...
Exclude tests package from installation.
2014-08-12 18:16:50 +01:00
Mark Steve Samson
9d55e01e2a
Implement restart command ( Closes #98 )
...
Signed-off-by: Mark Steve Samson <hello@marksteve.com>
2014-08-12 10:07:20 +08:00
Aanand Prasad
8eee2bf913
Merge pull request #396 from dnephin/remove_extra_calls
...
Remove extra calls, test bug fixes
2014-08-11 11:54:57 -07:00
Alex Brandt
3965db9dff
Exclude tests package from installation.
...
Installing the top-level tests package is asking for conflicts with
other python packages and isn't required to run fig. This simply lets
find_packages know to ignore tests and any sub-packages.
2014-08-11 09:00:16 -05:00
Daniel Nephin
294453433d
Remove extra calls to docker server.
...
Fix broken integration tests
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-08-10 11:24:20 -04:00
Chris Corbyn
22f897ed09
Merge pull request #370 from dnephin/debug_option
...
Add a --debug flag for debugging docker calls
2014-08-10 21:36:17 +10:00
Daniel Nephin
df7c2cc43f
Resolves #369 , add verbose output on --verbose flag
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-08-09 21:05:54 -04:00
Aanand Prasad
f2bf7f9e0d
Merge pull request #384 from timfreund/master
...
Enable monochrome output in the 'up' and 'logs' commands
2014-08-08 14:55:31 -07:00
Tim Freund
69c241ba12
Enable monochrome output in the 'up' and 'logs' commands
...
Some systems, like Jenkins or other build servers, cannot correctly
render ANSI color codes. The '--no-color' option enables monochrome
output in the 'up' and 'logs' commands to improve readability in those
systems.
Signed-off-by: Tim Freund <tim@freunds.net>
2014-08-08 16:15:27 -04:00
Aanand Prasad
59e31ff544
Update docs to remove numeric suffix
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-08-08 13:08:27 -07:00
Aanand Prasad
62a4d214e8
Default link alias which is just the service name
...
Closes #37 .
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-08-08 13:05:42 -07:00
Aanand Prasad
73bd4aca74
Use hostnames everywhere in docs, add YAML note and deprecate env.md
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-08-08 11:58:41 -07:00
Aanand Prasad
342ed948ec
Merge pull request #379 from docker/use-library-python-image-for-dockerfile
...
Use library python image for dockerfile
2014-08-07 17:06:38 -07:00
Ben Firshman
3fc7ad3291
Don't use deprecated orchardup/python image
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-07 16:43:59 -07:00
Aanand Prasad
a39460d7b2
Merge pull request #392 from bfirsh/more-official-images
...
More official images
2014-08-07 16:42:36 -07:00
Chris Corbyn
6ab084a338
Merge pull request #390 from bfirsh/remove-integration-tests-from-ci
...
Remove integration tests from ci
2014-08-08 08:37:12 +10:00
Ben Firshman
406425a6b9
Use official images in rails tutorial
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-07 14:54:59 -07:00
Chris Corbyn
b690b0d20e
Merge pull request #387 from dnephin/make_ps_work_on_jekins
...
tty width on jenkins
2014-08-08 07:54:00 +10:00
Ben Firshman
796df302dd
Use official images on getting started guide
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-07 14:50:55 -07:00
Aanand Prasad
1346805bef
Merge pull request #391 from bfirsh/repository-move
...
github.com/docker/fig
2014-08-07 14:49:26 -07:00
Ben Firshman
16744bc78b
Switch to official images in readme
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-07 14:48:29 -07:00
Ben Firshman
fc3c12ad90
Update repository URL
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-07 14:42:49 -07:00
Ben Firshman
bbcbe9df9f
Upload PyPi package manually
...
This never worked properly anyway.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-07 14:36:49 -07:00
Ben Firshman
1a240f50ae
Remove integration tests from Travis
...
Orchard is going away and Travis will be able to run these soon
anyway.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-07 14:35:22 -07:00
Ben Firshman
47970761c5
Remove Orchard message from readme
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-07 14:19:27 -07:00
Aanand Prasad
df7bc8cbb8
Merge pull request #389 from orchardup/update-irc-channel
...
Update IRC channel to be #docker-fig
2014-08-07 13:43:12 -07:00
Ben Firshman
ba9d744293
Update IRC channel to be #docker-fig
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-07 13:39:27 -07:00
Aanand Prasad
d5854bb625
Merge pull request #388 from orchardup/dockerize
...
Point at Docker website and Docker IRC channel
2014-08-07 10:16:16 -07:00
Ben Firshman
e5f7690137
Point at Docker website and Docker IRC channel
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-07 10:15:01 -07:00
Daniel Nephin
b0f398caaa
Resolves #386 , tty width on jenkins
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-08-07 12:30:01 -04:00
Aanand Prasad
0a15e7fe9c
Merge pull request #378 from orchardup/use-ruby-image-for-rails-tutorial
...
Use ruby image for rails docs
2014-08-06 16:51:04 -07:00
Aanand Prasad
255b9419dd
Merge pull request #382 from orchardup/use-official-repositories-in-django-example
...
Use official images in Django example
2014-08-06 16:50:45 -07:00
Aanand Prasad
c63947b5e2
Merge pull request #383 from orchardup/use-official-repos-on-homepage
...
Use official repos on home page
2014-08-06 16:40:48 -07:00
Ben Firshman
b5d1979d58
Use official repos on home page
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-06 16:33:31 -07:00
Ben Firshman
94aa097bc3
Use official images in Django example
...
Much neater.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-06 16:30:27 -07:00
Aanand Prasad
72ce7ce374
Merge pull request #380 from orchardup/use-hostname-for-redis-on-home-page-example
...
Use hostname on home page example
2014-08-06 16:11:44 -07:00
Ben Firshman
6d64f20ad6
Use hostname on home page example
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-06 15:53:45 -07:00
Ben Firshman
506f54e9c3
Use ruby image for rails docs
...
Fixes #376
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-08-06 13:42:56 -07:00
Chris Corbyn
90f5eda930
Merge pull request #367 from dnephin/fix_366_python_dependencies
...
Don't pin versions in setup.py install_requires
2014-08-05 08:17:23 +10:00
Daniel Nephin
c0450f7df0
Resolves #366 , non-pinned versions in setup.py:install_requires
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-07-29 17:13:22 -07:00
d11wtq
847ec5b559
Update dockerpty -> 0.2.3
...
Signed-off-by: d11wtq <chris@w3style.co.uk>
2014-07-29 01:17:28 +00:00
Aanand Prasad
09ffa101ed
Merge pull request #362 from orchardup/add-flake8-to-test-script
...
Add flake8 to test script
2014-07-28 16:34:07 -07:00
Ben Firshman
01e2b56405
Add flake8 to test script
...
For those who don't use tox.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-28 16:27:57 -07:00
Ben Firshman
2f6c763703
Merge pull request #353 from dnephin/add_flake8
...
Add flake8
2014-07-28 22:35:51 +01:00
Ben Firshman
4caf90c581
Merge pull request #361 from orchardup/update-release-process
...
Add "update the website" step to release process
2014-07-28 21:53:35 +01:00
Aanand Prasad
8fdeb46430
Add "update the website" step to release process
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-28 13:27:22 -07:00
Ben Firshman
07c47426ba
Merge pull request #358 from orchardup/ship-0.5.2
...
Ship 0.5.2
2014-07-28 21:18:51 +01:00
Aanand Prasad
a6324d6226
Ship 0.5.2
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-28 13:17:08 -07:00
Daniel Nephin
939406ca9d
Run flake8 in travis build
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-07-27 08:51:36 -07:00
Daniel Nephin
50a24bc3bf
Add flake8 and fix errors.
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-07-27 08:51:17 -07:00
Chris Corbyn
0dc55fda45
Merge pull request #322 from dnephin/fix_cli_for_py26
...
Fix cli for python 2.6
2014-07-27 18:35:40 +10:00
Chris Corbyn
dcd8e7863f
Update dockerpty. Fixes #352 .
2014-07-27 08:17:38 +00:00
Aanand Prasad
ed283fd3df
Merge pull request #345 from orchardup/docker-inc
...
Docker, Inc.
2014-07-25 14:31:58 -07:00
Aanand Prasad
393433b702
Merge pull request #347 from orchardup/fix-typo-yml-docs
...
Fix typo yml docs
2014-07-24 14:31:19 -07:00
Ben Firshman
7516b67a14
Add link to docker-osx in yml docs
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-24 14:18:21 -07:00
Ben Firshman
5eac04d8d4
Fix typo in yml docs
...
From c09734822e
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-24 14:16:49 -07:00
Ben Firshman
fec41d3567
Merge pull request #288 from saulshanabrook/patch-1
...
Add warning for mapping local volumes
2014-07-24 22:15:49 +01:00
Saul Shanabrook
c09734822e
Add warning for mapping local volumes
...
Mapping local volumes is not currently supported in boot2docker
https://github.com/boot2docker/boot2docker/issues/413
https://github.com/dotcloud/docker/issues/4023
Signed-off-by: Saul Shanabrook <s.shanabrook@gmail.com>
2014-07-24 16:37:14 -04:00
Aanand Prasad
94887a28c7
Make sure we support explicit protocols in port bindings
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-24 11:48:29 -07:00
Aanand Prasad
262efce43e
Fix test regression introduced in ed80576236
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-24 11:47:39 -07:00
Ben Firshman
99064d17dd
Docker, Inc.
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-24 10:24:17 -07:00
Aanand Prasad
ed80576236
Merge pull request #276 from marksteve/nocache
...
Add `--no-cache` option to `fig build` (Closes #152 )
2014-07-23 10:13:47 -07:00
Ben Firshman
5131eaeba0
Merge pull request #335 from orchardup/document-missing-yml-options
...
Document missing .yml options
2014-07-23 03:45:52 +01:00
Aanand Prasad
b559880a80
Document missing .yml options
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-22 15:37:05 -07:00
Mark Steve Samson
7f06d46827
Add test for building with --no-cache
...
Signed-off-by: Mark Steve Samson <hello@marksteve.com>
2014-07-22 11:40:44 +08:00
Aanand Prasad
e1a0937a61
Merge pull request #330 from orchardup/www.fig.sh
...
www.fig.sh
2014-07-21 16:46:14 -07:00
Ben Firshman
59c976510c
Update URL in readme and setup.py
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-21 16:22:03 -07:00
Ben Firshman
f189e299fd
Add canonical link pointing at fig.sh
...
This will keep Google happy.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-21 16:20:43 -07:00
Ben Firshman
d08720247a
Remove absolute link from docs
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-21 16:19:55 -07:00
Aanand Prasad
a4df76dd3f
Merge pull request #329 from orchardup/update-to-docker-1.1.1
...
Update docs to Docker version 1.1.1
2014-07-21 11:46:33 -07:00
Ben Firshman
b2e3a91098
Update docs to Docker version 1.1.1
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-21 11:30:15 -07:00
Mark Steve Samson
47bbc35b74
Add --no-cache option to fig build ( Closes #152 )
...
Signed-off-by: Mark Steve Samson <hello@marksteve.com>
2014-07-20 11:28:28 +08:00
Ben Firshman
a12f3b40d5
Merge pull request #327 from orchardup/add-cname-to-github-sites
...
Add fig.sh CNAME to GitHub sites
2014-07-20 01:36:27 +01:00
Ben Firshman
3386927f9f
Add fig.sh CNAME to GitHub sites
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-19 17:35:38 -07:00
Aanand Prasad
12d75a74e6
Merge pull request #325 from orchardup/fix-dns
...
Fix and document `dns:` option
2014-07-17 18:34:12 -07:00
Aanand Prasad
1a9c5e197d
Merge pull request #324 from orchardup/add-maintainers-file
...
Add maintainers file
2014-07-17 18:32:33 -07:00
Ben Firshman
8fa85ecc05
Add maintainers file
...
Docker style: https://github.com/dotcloud/docker/blob/master/hack/MAINTAINERS.md
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-17 18:20:53 -07:00
Aanand Prasad
140ced6a3b
Fix and document dns: option
...
Closes #240 .
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-17 18:11:50 -07:00
Daniel Nephin
779f4bda01
Fix cli for python 2.6
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com>
2014-07-15 13:07:46 -07:00
Ben Firshman
0021a06468
Merge pull request #321 from orchardup/update-install-docs-for-0.5.1
...
Update install docs for 0.5.1
2014-07-15 00:05:13 +01:00
Aanand Prasad
6ead40e14c
Update install docs for 0.5.1
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-14 16:01:41 -07:00
Aanand Prasad
5e2308d14a
CHANGES.md credits for 0.5.1
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-14 15:58:26 -07:00
Ben Firshman
9ab8f358ca
Merge pull request #315 from orchardup/ship-0.5.1
...
Ship 0.5.1
2014-07-14 23:22:48 +01:00
Aanand Prasad
d9c9b5e1f0
Ship 0.5.1
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-14 13:36:32 -07:00
Aanand Prasad
730de9187a
Merge pull request #320 from orchardup/add-egg-info-to-clean
...
Add fig.egg-info to clean script
2014-07-14 13:35:22 -07:00
Ben Firshman
bad0f45816
Merge pull request #319 from orchardup/fix-project-name-regression
...
Fix regression of default behaviour in Command.project_name
2014-07-14 20:31:20 +01:00
Ben Firshman
190ea2bbd6
Add fig.egg-info to clean script
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-14 11:34:17 -07:00
Aanand Prasad
91fe414522
Fix regression of default behaviour in Command.project_name
...
Needed an `os.abspath` in there. Added more tests, too.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-14 11:32:10 -07:00
Ben Firshman
7fb43cc85f
Merge pull request #283 from d11wtq/feature/optional-command
...
Make fig run COMMAND parameter optional.
2014-07-14 18:33:18 +01:00
Ben Firshman
d6657ed16c
Merge pull request #317 from ryanbrainard/project-name-dirname
...
Set default project name to dir name of fig.yml
2014-07-14 18:26:43 +01:00
Ben Firshman
48e7c86d66
Merge pull request #316 from orchardup/restructure-yaml-docs
...
Improve fig.yml docs
2014-07-14 18:24:50 +01:00
Ryan Brainard
e9c2f2c5fb
Default project_name to dirname of fig.yml
...
Signed-off-by: Ryan Brainard <brainard@heroku.com>
2014-07-12 23:38:20 -07:00
Aanand Prasad
197fd77b99
Improve some of the .yml options docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-12 09:55:13 -07:00
Aanand Prasad
36bef254ff
Restructure .yml docs
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-12 09:47:43 -07:00
Aanand Prasad
8e265905d3
Add host-in-port-mapping feature to docs and changelog
...
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-12 09:38:18 -07:00
Chris Corbyn
ef2fb77c1d
Make fig run COMMAND parameter optional.
...
This behaves more like the native docker client, where the absence of a
command means docker runs the CMD in the Dockerfile. If a command is
defined in fig.yml this is used instead.
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-07-12 02:30:34 +00:00
Ben Firshman
dd5c2e8767
Merge pull request #313 from orchardup/fix-volumes-from-container
...
Fix volumes_from container
2014-07-12 01:10:45 +01:00
Aanand Prasad
c255999fce
Merge pull request #312 from orchardup/fix-default-values-for-service-args
...
Remove empty lists from default Service args
2014-07-11 17:06:55 -07:00
Aanand Prasad
89341013a0
Fix volumes_from container
...
Closes #311 .
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-11 16:39:23 -07:00
Ben Firshman
f983110492
Remove empty lists from default Service args
...
This will cause terrifying bugs.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-11 16:07:31 -07:00
Aanand Prasad
9fd296f416
Merge pull request #310 from orchardup/fix-race-condition-in-recreate-containers
...
Fix race condition in recreate containers
2014-07-11 15:14:17 -07:00
Ben Firshman
bb89f85984
Remove stop timeout in recreate containers
...
This doesn't seem like a good idea – 1 second isn't enough time
to stop gracefully.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-11 14:53:56 -07:00
Ben Firshman
b573b87a92
Fix race condition in recreate containers
...
Container might have stopped between checking `is_running` and
calling `stop()`, which then threw an exception.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-11 14:53:46 -07:00
Aanand Prasad
036adb2de9
Merge pull request #309 from orchardup/update-docs-to-be-0.5.0
...
Update docs to be 0.5.0
2014-07-11 14:29:38 -07:00
Ben Firshman
36f4e30dba
Add 0.5.0 to docs
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-11 14:16:39 -07:00
Ben Firshman
9f0cfbdfd2
Document release process
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-11 14:16:29 -07:00
Aanand Prasad
e117a7822d
Merge pull request #307 from orchardup/ship-0.5.0
...
Ship 0.5.0
2014-07-11 14:07:40 -07:00
Ben Firshman
5489465905
Ship 0.5.0
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-11 13:21:01 -07:00
Ben Firshman
4afcdbdb3c
Add docs for volumes_from
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-11 12:52:22 -07:00
Ben Firshman
94d82d4acb
Merge pull request #308 from orchardup/fix-fig-up-attach
...
Regardless of dependencies, `fig up` only attaches to what you specify
2014-07-11 20:51:54 +01:00
Aanand Prasad
d528f9f642
Regardless of dependencies, fig up only attaches to what you specify
...
Without this, if you go:
$ fig up -d db
$ fig up web
you'll get output for both db and web, and Ctrl-C will kill them both.
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-11 11:58:59 -07:00
Ben Firshman
99d7a474af
Merge pull request #297 from ryanbrainard/resolve-env
...
Resolve environment without values to values on host
2014-07-11 18:55:40 +01:00
Ryan Brainard
d1052ff666
Add documention for key-only environment
...
Signed-off-by: Ryan Brainard <brainard@heroku.com>
2014-07-11 10:18:17 -07:00
Ryan Brainard
44a91e6ba8
Resolve environment without values to values on host
...
For parity with the Docker CLI, allow environment variables without
values to be automatically resolved to their values on the host.
Signed-off-by: Ryan Brainard <brainard@heroku.com>
Conflicts:
tests/integration/service_test.py
2014-07-11 10:18:05 -07:00
Ben Firshman
3996947024
Merge pull request #304 from Elemecca/t-domainname
...
add support for domainname, qualified hostname
2014-07-11 17:40:19 +01:00
Ben Firshman
b7afaba56a
Merge pull request #305 from ryanbrainard/fix-dir-typo
...
Fix typo in script dir name
2014-07-11 17:37:13 +01:00
Ryan Brainard
2ce3685e32
Fix typo in script dir name
...
Signed-off-by: Ryan Brainard <brainard@heroku.com>
2014-07-11 09:13:00 -07:00
Sam Hanes
699bbe9ca2
Split the domainname out of qualified hostnames.
...
Docker doesn't like it when a fully qualified hostname is passed in
the `hostname` parameter. When an FQDN is provided with `-h` the
official CLI puts the first component in `hostname` and the rest in
`domainname`. This change replicates that behavior when the user
specifies an FQDN in `hostname` in their `fig.yml`.
Signed-off-by: Sam Hanes <sam@maltera.com>
2014-07-10 20:18:09 -07:00
Ben Firshman
4b890bffde
Merge pull request #290 from d11wtq/bugfix/multiplexed_non_tty
...
BUGFIX: Update dockerpty for non-TTY multiplexing.
2014-07-11 01:44:31 +01:00
Sam Hanes
789e1ba82b
Add domainname to allowed container config.
...
Signed-off-by: Sam Hanes <sam@maltera.com>
2014-07-10 15:56:26 -07:00
Ben Firshman
1a9614c35e
Merge pull request #293 from binarin/master
...
Change working dir through fig.yml
2014-07-10 10:31:57 -07:00
Alexey Lebedeff
d83bdd5164
Change working dir through fig.yml
...
Closes #144
Signed-off-by: Alexey Lebedeff <binarin@gmail.com>
2014-07-10 21:22:45 +04:00
Ben Firshman
e1a3fc2536
Merge pull request #303 from mozz100/master
...
Use yaml.safe_load instead of yaml.load
2014-07-10 09:50:51 -07:00
Richard Morrison
251aa7efb6
Use yaml.safe_load instead of yaml.load
...
http://pyyaml.org/wiki/PyYAMLDocumentation#LoadingYAML
Signed-off-by: Richard Morrison <richard@rmorrison.net>
2014-07-10 15:15:55 +01:00
Aanand Prasad
2924b9997a
Merge pull request #302 from orchardup/better-fig-up-output-in-docs
...
Use concise fig up output in docs
2014-07-09 17:35:41 -07:00
Ben Firshman
2a9aef1332
Use concise fig up output in docs
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-07-09 17:34:39 -07:00
Chris Corbyn
361294d20b
Update dockerpty for non-TTY multiplexing.
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-07-05 08:23:21 +00:00
Ben Firshman
9a825c5c35
Merge pull request #279 from orchardup/fix-run-with-no-links
...
Stop `fig run` starting everything when a service has no links
2014-07-02 15:46:22 +01:00
Aanand Prasad
944e15fa65
Stop fig run starting everything when a service has no links
...
This was thanks to the semantics of project.up(), which starts everything
if you pass it an empty list of service names. (That logic should
probably be moved out to main.py.)
Signed-off-by: Aanand Prasad <aanand.prasad@gmail.com>
2014-07-02 11:51:12 +01:00
Aanand Prasad
d04b1724ec
Merge pull request #236 from rail44/feature-support-volumes-from
...
Support volumes_from option
2014-07-02 10:48:11 +01:00
Satoshi Amemiya
e5916b2fae
Support volumes_from option
...
Signed-off-by: Satoshi Amemiya <rail.sky@gmail.com>
2014-07-02 13:27:54 +09:00
Mark Steve Samson
4f7cbc3812
Support for host address in port bindings ( Closes #267 )
2014-06-27 15:07:22 +01:00
Aanand Prasad
3c48884dbb
Update dockerpty; stub it out in tests
...
Its current behaviour occasionally causes tests to hang; until this is
resolved, we'll stub it out. We weren't testing the output of 'run'
anyhow (though we should be).
2014-06-27 14:41:36 +01:00
Aanand Prasad
7ec63afae9
Merge pull request #272 from d11wtq/bugfix/race_condition
...
Update dockerpty to fix discovered race condition.
2014-06-26 13:07:15 +01:00
Chris Corbyn
8c6b516aa0
Update dockerpty to fix discovered race condition.
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-26 11:41:43 +00:00
Aanand Prasad
50c588176c
Merge pull request #270 from d11wtq/bugfix/tty_size
...
Use dockerpty instead for pseudo-tty behaviour (fixes TTY size issue #253 & #97 )
2014-06-25 17:00:56 +01:00
Chris Corbyn
3770aac1af
Use dockerpty instead for pseudo-tty behaviour.
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-25 15:54:52 +00:00
Aanand Prasad
256dccc554
Merge pull request #268 from orchardup/update-docker-py-0.3.2
...
Update to docker-py 0.3.2
2014-06-25 14:16:48 +01:00
Ben Firshman
d0f65906ed
Update to docker-py 0.3.2
...
From 59ced5700c
Now only supports Docker 1.0.0 / remote API v1.12.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-06-25 11:56:20 +01:00
Ben Firshman
95aa61cfe5
Merge pull request #246 from d11wtq/feature/auto_start
...
Feature: `fig up` and `fig run` now start linked containers (closes #31 ).
2014-06-24 14:46:47 +01:00
Chris Corbyn
247691ca44
Remove auto_start option from fig.yml.
...
This option is redundant now that services can be started along with links.
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-21 10:39:36 +00:00
Chris Corbyn
0fc9cc65d1
Rename '--only' => '--no-deps'
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-21 10:30:36 +00:00
Ben Firshman
eb69225444
Merge pull request #209 from orchardup/better-invalid-service-name-error
...
Better error message when service names are invalid
2014-06-20 12:32:07 +01:00
Aanand Prasad
cafe68a92d
Better error message when service names are invalid
2014-06-20 12:10:18 +01:00
Ben Firshman
723cccdae8
Merge pull request #258 from j0hnsmith/support_net_param
...
add net param support
2014-06-19 12:19:06 +01:00
j0hnsmith
6b8044e92c
add net param support
...
Signed-off-by: Peter Flood <info@whywouldwe.com>
2014-06-19 11:57:55 +01:00
Aanand Prasad
1e7e8202af
Merge pull request #257 from orchardup/use-ubuntu-image-to-build-docs
...
Use ubuntu:13.10 image to build docs
2014-06-18 17:31:23 +01:00
Ben Firshman
c0fdf7bd39
Use ubuntu:13.10 image to build docs
...
stackbrew/ubuntu and ubuntu are the same thing now.
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-06-18 17:26:38 +01:00
Aanand Prasad
034b66fedb
Merge pull request #256 from orchardup/ship-0.4.2
...
Ship 0.4.2
2014-06-18 16:45:21 +01:00
Ben Firshman
eed274c632
Ship 0.4.2
2014-06-18 16:32:23 +01:00
Ben Firshman
5b10c4811f
Merge pull request #255 from orchardup/fix-unicode
...
Fix encoding errors
2014-06-18 16:00:43 +01:00
Tobias Bradtke
2bd6e3d0a5
Do not encode chunk, just write as is.
2014-06-18 15:31:45 +01:00
Aanand Prasad
d0b5bcf26a
Pass byte strings straight through LogPrinter
2014-06-18 14:51:13 +01:00
Aanand Prasad
262248d8a6
Firm up tests for split_buffer
2014-06-18 14:51:13 +01:00
Aanand Prasad
9eb3697b40
Encode all progress stream output as UTF-8
...
Closes #231 .
2014-06-18 14:51:13 +01:00
Aanand Prasad
c246897af1
Pass script/test arguments through to nosetests
2014-06-18 14:51:13 +01:00
Aanand Prasad
cfcabce593
Extract stream_output to module
2014-06-18 14:51:12 +01:00
Aanand Prasad
e517061010
Add /venv to .gitignore
2014-06-18 14:51:12 +01:00
Aanand Prasad
feb8ad7b4c
Update Dockerfile reference/tutorial links
2014-06-16 23:32:50 +01:00
Chris Corbyn
1b5bf6e12a
Merge remote-tracking branch 'upstream/master' into feature/auto_start
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
Conflicts:
tests/fixtures/simple-figfile/fig.yml
tests/unit/project_test.py
2014-06-12 22:05:51 +00:00
Aanand Prasad
e953a32a82
Merge pull request #248 from orchardup/docker-1.0.0
...
Update to docs to Docker 1.0.0
2014-06-11 12:13:09 -07:00
Ben Firshman
f1390b3cb6
Merge pull request #249 from d11wtq/performance/busybox_fixtures
...
Use busybox in fixtures, instead of ubuntu
2014-06-11 19:59:21 +01:00
d11wtq
6e485df084
Rename --no-links to --only
...
Signed-off-by: d11wtq <chris@w3style.co.uk>
2014-06-11 10:50:45 +00:00
d11wtq
3a342fb25d
Use busybox in fixtures, instead of ubuntu
...
Signed-off-by: d11wtq <chris@w3style.co.uk>
2014-06-11 10:25:50 +00:00
Chris Corbyn
e71e82f8ac
Add missing fixture file
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-11 10:09:54 +00:00
Ben Firshman
da80eca28c
Update to docs to Docker 1.0.0
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-06-10 14:58:06 -07:00
d11wtq
1d1e23611b
Rename --keep-old to --no-recreate
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:51 +00:00
d11wtq
74e067c6e6
Document --keep-old flag in CLI reference
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:50 +00:00
d11wtq
85b9619799
Document 'auto_start' in fig.yml
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:50 +00:00
d11wtq
ab1fbc96c3
Move keep_old check up into Project
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:50 +00:00
d11wtq
a04143e2a7
Remove unused: from __future__ import unicode_literals.
...
This is not being used and it confuses the Command class. Rather
than try to fix the Command class, I've taken the pragmatic
approach and removed the trigger that confuses it.
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:50 +00:00
d11wtq
6c4299039a
Write integration tests for --keep-old in the CLI
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:49 +00:00
d11wtq
655d347ea2
Write integration tests on new fig run linking behaviour
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:49 +00:00
d11wtq
94a3164248
Re-add missing import for patch
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:49 +00:00
d11wtq
18728a64b9
Write tests for --no-links changes to fig up
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:48 +00:00
d11wtq
d8b0fa294e
Add integration tests for Project.up() w/ start_links and keep_old
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:48 +00:00
d11wtq
a6c8319b5d
Add integration tests for Service.recreate_containers() with keep_old
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:48 +00:00
d11wtq
5d92f12f8e
Add unit tests for include_links in get_services()
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:48 +00:00
d11wtq
c0231bdb70
Rename _prepend_with_links() -> _inject_links()
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:47 +00:00
d11wtq
ac541e208f
Remove obsolete method _get_linked_service_names()
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:47 +00:00
d11wtq
3d8ce448b8
Spike: Re-use existing containers for fig run
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:47 +00:00
d11wtq
949df97726
Fix issue with infinite recursion when service_names is empty
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:46 +00:00
d11wtq
14cbe40543
Update doc string to reflect new behaviour.
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:46 +00:00
d11wtq
9dd53ecdaa
Fix bug with duplicate service entries in fig up
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:46 +00:00
d11wtq
6bfe5e049d
Spike: Implement --no-links for fig up
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:46 +00:00
d11wtq
b672861ffd
Spike: Start linked containers on fig run by default
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:45 +00:00
d11wtq
b081077f2b
Remove FIXME, as there's nothing to fix :)
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:45 +00:00
d11wtq
13a296049b
Update cli integration test for 'auto_start' behaviour
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:45 +00:00
d11wtq
22c531dea7
Add unit tests for Project.get_services()
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:44 +00:00
d11wtq
dfc74e2a77
Write integration test for 'auto_start' behaviour
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:44 +00:00
d11wtq
0c12db06ec
Move 'auto_start' option default to Service and add unit tests
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:44 +00:00
d11wtq
edf6b56016
Spike: Add --up option to fig run
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:43 +00:00
d11wtq
8b4ed0c1a8
Spike: Add 'auto_start' option to fig.yml
...
Signed-off-by: Chris Corbyn <chris@w3style.co.uk>
2014-06-09 01:31:27 +00:00
Ben Firshman
1b5335f409
Add developer certificate of origin docs
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-05-28 11:08:46 +01:00
Ben Firshman
3a2c9c1016
Switch to Apache License 2.0
...
Signed-off-by: Ben Firshman <ben@firshman.co.uk>
2014-05-28 10:59:21 +01:00
Aanand Prasad
cf3eed2cda
Merge pull request #227 from orchardup/add-pythonunbuffered-to-django-docs
...
Add PYTHONUNBUFFERED=1 to Django tutorial
2014-05-22 17:12:23 +01:00
Ben Firshman
2ecd366905
Add PYTHONUNBUFFERED=1 to Django tutorial
2014-05-22 14:15:17 +01:00
Ben Firshman
d34dc45b78
Merge pull request #223 from orchardup/put-orchard-in-sidebar
...
Put Orchard in docs sidebar
2014-05-14 16:35:37 +01:00
Aanand Prasad
8394e84099
Compress the sidebar a bit
2014-05-14 16:32:39 +01:00
Ben Firshman
adda3a7f79
Put Orchard in docs sidebar
2014-05-14 13:05:40 +01:00
Aanand Prasad
52d0f4d9e7
Merge pull request #206 from orchardup/remove-intermediate-build-containers
...
Remove intermediate build containers
2014-05-12 11:59:01 +01:00
Ben Firshman
c1a38d787d
Fix 0.4.1 release notes
2014-05-12 11:45:55 +01:00
Ben Firshman
7879dfd3fd
Fix deploy docs script
2014-05-09 10:59:44 +01:00
Ben Firshman
cd1c8b2f09
Update docs to Docker 0.11.1
2014-05-09 10:53:12 +01:00
Ben Firshman
7a9228ad75
Remove intermediate build containers
...
Docker does this by default now.
2014-05-08 15:40:53 +01:00
Aanand Prasad
98ceb62202
Update Fig version on install page
2014-05-08 13:10:13 +01:00
Ben Firshman
b99bb64487
Add sanity check to OS X build script
2014-05-08 13:03:21 +01:00
Ben Firshman
580affa5f3
Add sanity check to linux build script
2014-05-08 13:02:50 +01:00
Ben Firshman
d600b3498b
Remove entrypoint from dockerfile
2014-05-08 13:00:39 +01:00
Aanand Prasad
f0eaf84cb9
Merge pull request #217 from orchardup/0.4.1
...
Ship 0.4.1
2014-05-08 12:51:35 +01:00
Ben Firshman
257a171c0c
Ship 0.4.1
2014-05-08 12:43:09 +01:00
Ben Firshman
3c5e818b49
Update install docs for Docker 0.11.0
2014-05-08 12:21:46 +01:00
Ben Firshman
c3c8395cef
Merge pull request #215 from marksteve/docker-0.11
...
Docker 0.11
2014-05-08 10:10:19 +01:00
Mark Steve Samson
38c008e527
Fix index error when getting ghost state of containers
2014-05-08 12:39:15 +08:00
Aanand Prasad
a3d8f7d113
Remove hash from gif URL
2014-05-06 17:13:56 +01:00
Ben Firshman
65a642097c
Merge pull request #211 from servebox/project-name
...
Add the ability to configure the project name using a command line option
2014-05-05 10:50:48 +01:00
Ben Firshman
dff9aa6f0c
Add installation and entrypoint to dockerfile
2014-05-05 10:50:23 +01:00
Ben Firshman
ab145b5365
Fix pull requests failing on travis
2014-05-05 10:50:10 +01:00
Jef Mathiot
5878fe3834
Add the ability to configure the project name
2014-05-02 18:00:58 +02:00
Aanand Prasad
715e29d7ba
Merge pull request #207 from orchardup/fig-run-correct-exit-code
...
Return correct exit code from fig run
2014-05-01 18:21:40 +01:00
Ben Firshman
983337401c
Return correct exit code from fig run
...
Closes #197
2014-05-01 18:17:12 +01:00
Ben Firshman
8251dec587
Add docs, build and dist to clean script
2014-05-01 17:17:23 +01:00
Ben Firshman
52f994cf04
Remove /docs/.git-gh-pages from gitignore
...
It's inside /docs/_site
2014-05-01 17:17:06 +01:00
Ben Firshman
3d4b5cfbfe
Update version of docker-osx
2014-05-01 15:34:21 +01:00
Aanand Prasad
33b057bfaf
Update tag in docker-osx download URL
2014-05-01 10:51:42 +01:00
Aanand Prasad
629fe771df
Update domain in docker-osx download URL
2014-04-30 16:37:20 +01:00
Aanand Prasad
5e6f175b5f
Update download URLs on install page
2014-04-30 16:26:46 +01:00
Aanand Prasad
6dc1a404d5
Merge pull request #202 from orchardup/ship-0.4.0
...
Ship 0.4.0
2014-04-30 14:04:56 +01:00
Aanand Prasad
d1d4f47764
Ship 0.4.0
2014-04-30 11:53:39 +01:00
Aanand Prasad
3abce4259f
Fix regression in handling of build errors
2014-04-30 11:53:23 +01:00
Aanand Prasad
c78b952c3d
Merge pull request #201 from orchardup/better-log-printing
...
Better log printing
2014-04-29 10:57:56 +01:00
Ben Firshman
fff5e51426
Make log messages line up with each other
2014-04-29 09:31:57 +01:00
Ben Firshman
a724aa5717
Use name without project for log printing
2014-04-29 09:22:20 +01:00
Ben Firshman
10725136d8
Add tests for names on containers
2014-04-29 09:20:29 +01:00
Aanand Prasad
8f1793dd06
Merge pull request #186 from orchardup/update-docker-py-7f55a101f813f3e96413d1b577e98d9467b0bffc
...
WIP: Docker >=0.9 support, docker-py 0.3.1
2014-04-28 18:51:38 +01:00
Aanand Prasad
fd85be2c9e
Update docker[-osx] version in install docs
2014-04-28 18:22:11 +01:00
Ben Firshman
24959209cc
Update build status badge
2014-04-25 23:33:25 +01:00
Ben Firshman
29c9763feb
Use Orchard to run integration tests
2014-04-25 23:24:05 +01:00
Ben Firshman
ca7151aeb1
Split tests into unit and integration
2014-04-25 22:58:21 +01:00
Aanand Prasad
6e932794f7
Fix regression when mounting volumes
...
Caused by
77fec67c60
2014-04-25 12:28:00 +01:00
Aanand Prasad
9e1dfcfb37
Update docker-py APIError imports
2014-04-23 18:20:33 +01:00
Aanand Prasad
5166b2c1a8
Update docker-py
...
Using commit:
b31bb4d879
2014-04-23 18:16:35 +01:00
Aanand Prasad
80991f1521
Set "VolumesFrom" when starting containers
...
This is necessary when working with Docker 0.10.0 and up. Fortunately,
we can set it both when creating and starting, and retain compatibility
with 0.8.x and 0.9.x.
recreate_containers() is now responsible for starting containers, as
well as creating them. This greatly simplifies usage of the Service
class.
2014-04-23 15:46:26 +01:00
Ben Firshman
b752a86589
Merge pull request #193 from damm/fix_scripts_build_linux
...
Ensure that `pwd`/dist exists and is writeable
2014-04-16 08:07:32 +01:00
Scott M. Likens
c2acceba4e
Ensure pwd/dist exists always and is 777.
...
Fixes #192
Signed-off-by: Scott M. Likens <scott@likens.us>
2014-04-16 00:15:25 +00:00
Aanand Prasad
f8ee52ca2a
Fix build output
...
docker-py now streams us the raw JSON events, so we have to replicate
the Docker client's progress logic.
On the bright side, we now have well-behaved progress bars when pulling
an image during `fig build` (no more ski slopes) and `fig up` (no more
silence).
2014-04-15 10:41:06 +01:00
Ben Firshman
2b245bdf9e
Update to docker-py 0.3.1
...
From 7f55a101f8
This now requires Docker 0.9 or greater.
2014-04-15 10:41:06 +01:00
Ben Firshman
d7e01a23f8
Merge pull request #191 from orchardup/fix-one-off-containers-not-linking-to-service
...
Fix one-off containers not linking to service
2014-04-15 10:40:37 +01:00
Ben Firshman
4e20be9c66
Remove unused imports
2014-04-14 22:39:49 +01:00
Ben Firshman
94e15a9985
Fix one-off containers not linking to service
...
Closes #185 .
Need to test this more thoroughly. We need a docker-py mock.
2014-04-14 22:29:03 +01:00
Ben Firshman
5061875fa9
Merge pull request #188 from shanejonas/fix/utf8-encoding
...
fix issue with utf8 encoding in logger stdout
2014-04-14 22:17:14 +01:00
Shane Jonas
d9782b2dd1
fix issue with utf8 encoding in logger stdout
2014-04-11 11:21:20 -07:00
Ben Firshman
530afba5cb
Merge pull request #150 from muff1nman/utf8
...
Jekyll errors out with utf8 input
2014-04-06 16:01:32 +01:00
Aanand Prasad
4a90a7691b
Merge pull request #180 from orchardup/better-error-message-for-broken-links
...
Improve error message when link does not exist
2014-04-05 17:29:08 +01:00
Ben Firshman
050f81e37c
Improve error message when link does not exist
2014-04-04 13:06:52 +01:00
Ben Firshman
aecaf665f1
Merge pull request #164 from orchardup/friendlier-build-error
...
Friendlier build error
2014-03-28 23:05:46 +00:00
Ben Firshman
23a8938809
Merge pull request #165 from orchardup/number-one
...
Stop 'fig up' when a container exits
2014-03-28 23:03:00 +00:00
Ben Firshman
641c773476
Merge pull request #173 from colinmccune/master
...
Fixes the mac build script so it wont fail when the venv folder doesn't exist
2014-03-28 22:56:17 +00:00
Colin McCune
97be5b4cfb
Updates the mac build script so it wont fail when the venv folder does not exist.
2014-03-27 20:22:05 -04:00
Aanand Prasad
76b7d0095d
Merge pull request #171 from orchardup/scaling-down-removes-containers
...
Scaling down removes containers
2014-03-27 12:23:04 +00:00
sebastianneubauer
352ad7a38c
Scaling down removes containers
...
Squashed version of #162 .
Closes #121 .
2014-03-26 18:28:10 +00:00
Aanand Prasad
401ea4e7a8
Merge pull request #166 from orchardup/utf8-fixes
...
Fix UnicodeEncodeErrors in output of 'build', 'run' and 'up'
2014-03-25 13:43:50 +00:00
Maurits van Mastrigt
710cd38591
Fix UnicodeEncodeErrors in output of 'build', 'run' and 'up'
...
Squashed version of #125 .
Closes #112 .
2014-03-25 13:32:03 +00:00
Aanand Prasad
859d4bb98b
Stop 'fig up' when a container exits
...
Closes #1 ヽ(*・ω・)ノ
2014-03-25 13:19:32 +00:00
Aanand Prasad
a3374ac51d
Update install instructions on homepage
...
Closes #161
2014-03-25 12:26:33 +00:00
Aanand Prasad
168b1909ae
Friendlier build error
...
Hide the backtrace and show a comprehensible message.
Closes #160 .
2014-03-25 12:20:05 +00:00
Ben Firshman
a96ab41739
Merge pull request #132 from kvz/privileged
...
Add support for privileged containers #123
2014-03-13 13:42:52 +00:00
Kevin van Zonneveld
0f5a56b3c2
Add support for privileged containers #123
...
This is required for mounting external volumes and
addresses errors such as `mount.nfs: Operation not permitted`
Be gentle, I don't normally use Python :)
2014-03-13 14:31:05 +01:00
Ben Firshman
c1d9e5156f
Merge pull request #154 from talwai/patch-1
...
Update django.md: Fix link to fig.yml reference
2014-03-13 12:14:27 +00:00
Aaditya Talwai
b0ec54b6f7
Update django.md: Fix link to fig.yml reference
2014-03-12 15:45:32 -07:00
Andrew DeMaria
2360bf0eb9
Use utf8 when building docs
2014-03-08 18:28:41 -07:00
Ben Firshman
1a1a61a672
Merge pull request #148 from orchardup/only-self-link-in-one-off-containers
...
Only `fig run` containers link back to the service they're part of
2014-03-06 19:10:09 +00:00
Aanand Prasad
13c7380113
Only fig run containers link back to the service they're part of
...
Fixes #107 .
2014-03-06 18:59:24 +00:00
Ben Firshman
3a48172332
Create CONTRIBUTING.md
2014-03-06 10:57:24 +00:00
Ben Firshman
14e778b3de
Update version in install docs
2014-03-05 14:57:24 +00:00
Aanand Prasad
9164125177
Merge pull request #146 from orchardup/ship-0.3.2
...
Ship 0.3.2
2014-03-05 14:49:26 +00:00
Ben Firshman
2595f89519
Ship 0.3.2
2014-03-05 14:33:32 +00:00
Ben Firshman
a058c40dfb
Merge pull request #143 from orchardup/expose-option
...
Support 'expose' config option, like docker's --expose
2014-03-05 14:30:17 +00:00
Ben Firshman
fc4b3d2771
Merge pull request #145 from marksteve/run-rm
...
Add option to remove container in `docker run` (Closes #137 )
2014-03-05 11:58:44 +00:00
Mark Steve Samson
59cc9c9b68
Add option to remove container in docker run ( Closes #137 )
2014-03-05 09:03:06 +08:00
Aanand Prasad
d1a52d2b1a
Remove unneeded 'ports' entries from WP and Django fig.ymls in docs
2014-03-04 21:54:10 +00:00
Aanand Prasad
5f5fbb3ea4
Display unpublished ports in 'fig ps'
2014-03-04 18:07:06 +00:00
Aanand Prasad
2d98071e55
Support 'expose' config option, like docker's --expose
...
Exposes ports to linked services without publishing them to the world.
2014-03-04 18:06:52 +00:00
Aanand Prasad
6a3d1d06b5
Check NetworkSettings.Ports instead of HostConfig.PortBindings in tests
...
The latter appears to be unreliable.
2014-03-04 17:58:42 +00:00
Ben Firshman
6813cb86a2
Update version in installation docs
2014-03-04 11:53:16 +00:00
Ben Firshman
f5cf9b60b2
Remove venv before building on OS X
2014-03-04 11:51:12 +00:00
Aanand Prasad
7cec029f03
Merge pull request #141 from orchardup/ship-0.3.1
...
Ship 0.3.1
2014-03-04 11:47:36 +00:00
Ben Firshman
4fbad941cb
Ship 0.3.1
2014-03-04 11:40:39 +00:00
Aanand Prasad
d4bff56a61
Merge pull request #140 from orchardup/fix-ps-on-docker-0.8.1-with-no-command
...
Fix ps on Docker 0.8.1 when there is no command
2014-03-04 11:37:15 +00:00
Ben Firshman
f430b82b43
Fix ps on Docker 0.8.1 when there is no command
...
Fixes #138
2014-03-04 11:27:55 +00:00
Ben Firshman
71533791dd
Merge pull request #139 from orchardup/fix-delete-volume
...
Fix delete volume
2014-03-04 11:19:35 +00:00
Ben Firshman
65f3411320
Merge pull request #133 from kvz/contributingdocs
...
Add a contributing page. Refs #123
2014-03-04 11:07:52 +00:00
Kevin van Zonneveld
b92651070f
Add steps for contributing to README
2014-03-04 12:05:38 +01:00
Ben Firshman
5be8a37b7e
Pass through standard remove_container options
2014-03-04 11:00:09 +00:00
Ben Firshman
044c348faf
Add test for fig rm
2014-03-04 11:00:09 +00:00
Ben Firshman
465c7d569c
Improve CLI test names
2014-03-04 11:00:09 +00:00
Ben Firshman
2ca0e7954a
Add --force option to fig rm
2014-03-04 11:00:06 +00:00
Mark Steve Samson
96a92a73f1
Fix KeyError when -v is not specified in fig rm
2014-03-04 13:13:23 +08:00
Ben Firshman
48e7b4b0a6
Remove Python 3 from Travis
...
Let's not kid ourselves.
2014-03-03 19:21:27 +00:00