|
1 | 1 | [[docker-compose-format]]
|
2 | 2 | == Docker-Compose Format
|
3 | 3 |
|
4 |
| -Instead of using Arquillian Cube format, you can use Docker Compose format to define containers layout. This means that you can use the same Docker Compose file for running your tests with Arquillian Cube and without any change run `docker-compose up` command from terminal and get the same result. |
| 4 | +Instead of using Arquillian Cube format, you can use https://docs.docker.com/reference/compose-file/[Docker Compose V2 format] |
| 5 | +to define containers layout. |
| 6 | +This means that you can use the same Docker Compose file for running your tests with Arquillian Cube, and without any |
| 7 | +change run `docker-compose up` command from terminal and get the same result. |
5 | 8 |
|
6 |
| -It is important to note that this is not a docker-compose implementation but only the docker-compose format. This means that for example you cannot execute some CLI commands of _docker-compose_ like start several instances of same service. |
| 9 | +It is important to note that this is not a docker-compose implementation but only the docker-compose format. |
| 10 | +This means that for example you cannot execute some CLI commands of _docker-compose_, like to start several instances of same service. |
7 | 11 |
|
8 |
| -In case of some specific Arquillian Cube attributes like await strategy cannot be configured and the default values are going to be used. |
| 12 | +Another limitation is that some specific Arquillian Cube attributes, like await strategy, cannot be configured and the |
| 13 | +default values are used. |
9 | 14 |
|
10 |
| -Moreover, there are some docker-compose commands that are not implemented yet due to restrictions on docker-java library. These commands are _pid_, _log_driver_ and _security_opt_. But they will be implemented as soon as docker-java library adds their support. |
| 15 | +Moreover, there are some docker-compose commands that are not implemented yet due to restrictions on docker-java library. |
| 16 | +These commands are _pid_, _log_driver_ and _security_opt_. |
| 17 | +But they will be implemented as soon as docker-java library adds their support. |
11 | 18 |
|
12 |
| -Last thing, in case you define a command that is not implemented in Arquillian Cube, this command will be ignored (no exception will be thrown), but a log line will be printed notifying this situation. Please it is really important that if this happens you open a bug so we can add support for them. Although this warning we will try to maintain aligned with the latest docker-compose format. |
| 19 | +Last thing, in case you define a command that is not implemented in Arquillian Cube, this command will be ignored |
| 20 | +(no exception will be thrown), but a log line will be printed notifying this situation. |
| 21 | +Please it is really important that if this happens you open a bug, so we can add support for them. |
13 | 22 |
|
14 | 23 | Let's see how you can rewrite previous HelloWorld example with Tomcat, using docker-compose format.
|
15 | 24 |
|
@@ -95,4 +104,4 @@ For example in case of using Maven, your `pom.xml` should look like:
|
95 | 104 | Notice that you don't need to specify _definitionFormat_ since docker compose format is the default one.
|
96 | 105 |
|
97 | 106 | And that's all, you can now reuse your existing docker-compose files in Arquillian Cube too.
|
98 |
| -You can see the full example at: https://github.com/arquillian/arquillian-cube/tree/main/docker/ftest-docker-compose |
| 107 | +You can see the full example at: https://github.com/arquillian/arquillian-cube/tree/main/docker/ftest-docker-compose-v2 |
0 commit comments