summaryrefslogtreecommitdiff
path: root/tests/acceptance
Commit message (Collapse)AuthorAge
* Add option for listing service profilesHarald Albers2021-01-22
| | | | | | | | | For command completion of `docker-compose --profile`, we need a portable way to get a list of profiles used in the current config. This commit adds a new option `docker-compose config --profiles`. Signed-off-by: Harald Albers <github@albersweb.de>
* Merge pull request #7978 from thaJeztah/default_to_cli_buildAnca Iordache2021-01-11
|\ | | | | Make COMPOSE_DOCKER_CLI_BUILD=1 the default
| * Make COMPOSE_DOCKER_CLI_BUILD=1 the defaultSebastiaan van Stijn2020-12-08
| | | | | | | | | | | | | | | | | | | | | | | | This changes compose to use "native" build through the CLI by default. With this, docker-compose can take advantage of BuildKit (which is now enabled by default on Docker Desktop 2.5 and up). Users that want to use the python client for building can opt-out of this feature by setting COMPOSE_DOCKER_CLI_BUILD=0 Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* | Add metricsUlysses Souza2021-01-04
|/ | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
* Implement service profilesRoman Anasal2020-12-02
| | | | | | | | | | Implement profiles as introduced in compose-spec/compose-spec#110 fixes #7919 closes #1896 closes #6742 closes #7539 Signed-off-by: Roman Anasal <roman.anasal@bdsu.de>
* Added option to disable log prefix via cliKaushal Rohit2020-10-18
| | | | Signed-off-by: Kaushal Rohit <rohit.kg98@gmail.com>
* Fix port renderingUlysses Souza2020-09-24
| | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
* Preserve the version when specified in the fileUlysses Souza2020-09-10
| | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
* Update schema and fix memory limit parsingaiordache2020-08-17
| | | | Signed-off-by: aiordache <anca.iordache@docker.com>
* Removed Python2 supportalexrecuenco2020-08-11
| | | | | | | | | | | | | | | | | | | | | Closes: #6890 Some remarks, - `# coding ... utf-8` statements are not needed - isdigit on strings instead of a try-catch. - Default opening mode is read, so we can do `open()` without the `'r'` everywhere - Removed inheritinng from `object` class, it isn't necessary in python3. - `super(ClassName, self)` can now be replaced with `super()` - Use of itertools and `chain` on a couple places dealing with sets. - Used the operator module instead of lambdas when warranted `itemgetter(0)` instead of `lambda x: x[0]` `attrgetter('name')` instead of `lambda x: x.name` - `sorted` returns a list, so no need to use `list(sorted(...))` - Removed `dict()` using dictionary comprehensions whenever possible - Attempted to remove python3.2 support Signed-off-by: alexrecuenco <alejandrogonzalezrecuenco@gmail.com>
* Ignore build context path validation when it is not necessaryVitor Anjos2020-08-10
| | | | Signed-off-by: Vitor Anjos <vitorbartier@hotmail.com>
* Remove the now unneeded version qualifierEric Hripko2020-08-07
| | | | Signed-off-by: Eric Hripko <ehripko@bloomberg.net>
* Implement service mode for ipcEric Hripko2020-08-07
| | | | Signed-off-by: Eric Hripko <ehripko@bloomberg.net>
* Merge pull request #7457 from EricHripko/run-healthyAnca Iordache2020-08-07
|\ | | | | [Compose Spec] Make 'run' behave in the same way as 'up'
| * Make run behave in the same way as upEric Hripko2020-08-06
| | | | | | | | Signed-off-by: Eric Hripko <ehripko@bloomberg.net>
* | Merge pull request #7543 from jarulsamy/7540-flag_nullifierAnca Iordache2020-08-04
|\ \ | |/ |/| Add `--` as a separator of flags and arguments.
| * Add tests for `--` seperator of flags and args.Joshua Arulsamy2020-06-17
| | | | | | | | Signed-off-by: Joshua Arulsamy <joshua.gf.arul@gmail.com>
* | rename schema to compose_specaiordache2020-07-09
| | | | | | | | Signed-off-by: aiordache <anca.iordache@docker.com>
* | Merge 2.x and 3.x schemasaiordache2020-07-08
|/ | | | Signed-off-by: aiordache <anca.iordache@docker.com>
* Fixed new things that came after the PRBastian Venthur2020-06-03
| | | | Signed-off-by: Bastian Venthur <bastian.venthur@flixbus.com>
* Removed sixBastian Venthur2020-06-03
| | | | Signed-off-by: Bastian Venthur <bastian.venthur@flixbus.com>
* Removed Python2 supportBastian Venthur2020-06-03
| | | | | | Closes: #6890 Signed-off-by: Bastian Venthur <bastian.venthur@flixbus.com>
* Add conformity tests hackUlysses Souza2020-03-10
| | | | | | | - That can be used with: ./script/test/acceptance Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
* Use docker context interface from docker-pyAnca Iordache2020-02-06
| | | | Signed-off-by: Anca Iordache <anca.iordache@docker.com>
* Remove `None` entries on execute commandUlysses Souza2020-01-30
| | | | Signed-off-by: Ulysses Souza <ulyssessouza@gmail.com>
* Support attaching to dependencies on upBen Thorner2020-01-16
| | | | | | | | | | | | | | | | | | | | | | | | | When using the 'up' command, only services listed as arguments are attached to, which can be very different to the 'no argument' case if a service has many and deep dependencies: - It's not clear when dependencies have failed to start. Have to run 'compose ps' separately to find out. - It's not clear when dependencies are erroring. Have to run 'compose logs' separately to find out. With a simple setup, it's possible to work around theses issue by using the 'up' command without arguments. But when there are lots of 'top-level' services, with common dependencies, in a single config, using 'up' without arguments isn't practical due to resource limits and the sheer volume of output from other services. This introduces a new '--attach-dependencies' flag to optionally attach dependent containers as part of the 'up' command. This makes their logs visible in the output, alongside the listed services. It also means we benefit from the '--abort-on-container-exit' behaviour when dependencies fail to start, giving more visibility of the failure. Signed-off-by: Ben Thorner <ben.thorner@digital.cabinet-office.gov.uk>
* Allow setting compatibility options from environmentKevin Roy2020-01-13
| | | | Signed-off-by: Kevin Roy <kiniou@gmail.com>
* support PyYAML up to 5.x versionSergey Fursov2020-01-09
| | | | Signed-off-by: Sergey Fursov <geyser85@gmail.com>
* Remove "bundle" subcommand and support for DAB filesSebastiaan van Stijn2020-01-08
| | | | | | | | | | | | | | | | | Deploying stacks using the "Docker Application Bundle" (`.dab`) file format was introduced as an experimental feature in Docker 1.13 / 17.03, but superseded by support for Docker Compose files in the CLI. With no development being done on this feature, and no active use of the file format, support for the DAB file format and the top-level `docker deploy` command (hidden by default in 19.03), will be removed from the CLI, in favour of `docker stack deploy` using compose files. This patch removes the `docker-compose bundle` subcommand from Docker Compose, which was used to convert compose files into DAB files (and given the above, will no longer be needed). Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
* Report image we can't pull and must be builtNicolas De Loof2019-11-25
| | | | Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
* Merge pull request #7037 from ndeloof/stdinUlysses Souza2019-11-22
|\ | | | | config_detail.filename is None when passed by stdin
| * testcase for compose file read from stdinNicolas De Loof2019-11-20
| | | | | | | | Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
* | Revert "only pull images that can't build"Nicolas De Loof2019-11-21
|/ | | | | | This reverts commit c6dd7da15eb3d85a1f7634e8ded9fe42c9035669. Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
* Fix acceptance testsNicolas De Loof2019-10-16
| | | | | | | tty is now (correclty) reported to have 80 columns, which split service ID in two lines Signed-off-by: Nicolas De Loof <nicolas.deloof@gmail.com>
* update alpine version to 3.10.1aiordache2019-08-20
| | | | Signed-off-by: aiordache <anca.iordache@docker.com>
* Add integration tests regarding environmentUlysses Souza2019-07-31
| | | | | | This covers what was included in #6800 Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
* Pin test images on a non rolling tagUlysses Souza2019-07-18
| | | | | | Mainly busybox:latest to the current latest which is 1.31.0-uclibc Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
* Merge pull request #6738 from Inconnu08/set-optimizationDjordje Lukic2019-07-15
|\ | | | | Replace sets with set literal syntax for efficiency
| * replace sets with set literal syntax for efficiencyInconnu082019-05-31
| | | | | | | | Signed-off-by: Taufiq Rahman <taufiqrx8@gmail.com>
* | Pin busybox image version in testsUlysses Souza2019-07-02
|/ | | | Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
* Merge pull request #6342 from collin5/b5547Ian Campbell2019-05-20
|\ | | | | --remove-orphans is ignored when using up --no-start
| * remove stopped containers on --remove-orphansCollins Abitekaniza2019-01-25
| | | | | | | | | | | | | | | | | | | | | | | | Signed-off-by: Collins Abitekaniza <abtcolns@gmail.com> kill orphan containers, catch APIError Exception Signed-off-by: Collins Abitekaniza <abtcolns@gmail.com> test remove orphans with --no-start Signed-off-by: Collins Abitekaniza <abtcolns@gmail.com>
* | Remove remaining containers on test_build_runUlysses Souza2019-05-14
| | | | | | | | Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
* | Avoid race condition on testUlysses Souza2019-04-19
| | | | | | | | Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
* | Workaround race conditions on testsUlysses Souza2019-04-17
| | | | | | | | Signed-off-by: Ulysses Souza <ulysses.souza@docker.com>
* | Merge pull request #6494 from collin5/b6464Ian Campbell2019-03-25
|\ \ | | | | | | Only pull images that can't build `docker-compose pull`
| * | only pull images that can't buildCollins Abitekaniza2019-03-24
| | | | | | | | | | | | Signed-off-by: Collins Abitekaniza <abtcolns@gmail.com>
* | | Merge pull request #6547 from kudos/bugfix/scale-zero-defaultIan Campbell2019-03-07
|\ \ \ | | | | | | | | Fix scale attribute to accept 0 as a value
| * | | Add tests for compose file 'scale: 0'Jonathan Cremin2019-03-06
| | | | | | | | | | | | | | | | Signed-off-by: Jonathan Cremin <jonathan@crem.in>
* | | | Add --quiet build flagAkshit Grover2019-03-02
|/ / / | | | | | | | | | Signed-off-by: Akshit Grover <akshit.grover2016@gmail.com>