Use docker-compose.yml file version: '2' with extends: file + service.
Expected Behaviour
Load service-definition from file referenced in services:extends:file taking version of that file into account.
Current Behaviour
Currently org.arquillian.cube.docker.impl.docker.compose.ContainerBuilder#extend assumes the referenced file is version: 1 with services definitions at root level (line 690).
Steps To Reproduce
create docker-compose-services.yml with version: "2"
create docker-compose-test.yml with version: "2" containing a service definition with extends:file: docker-compose-services.yml and extends:service:<extended-service-name>
create arquillian.xml with <extension name="docker"> and <property name="dockerContainersFile">docker-compose-test.yml</property>
Issue Overview
Use
docker-compose.yml
fileversion: '2'
withextends: file + service
.Expected Behaviour
Load service-definition from file referenced in
services:extends:file
takingversion
of that file into account.Current Behaviour
Currently
org.arquillian.cube.docker.impl.docker.compose.ContainerBuilder#extend
assumes the referenced file isversion: 1
with services definitions at root level (line 690).Steps To Reproduce
docker-compose-services.yml
withversion: "2"
docker-compose-test.yml
withversion: "2"
containing a service definition withextends:file: docker-compose-services.yml
andextends:service:<extended-service-name>
arquillian.xml
with<extension name="docker">
and<property name="dockerContainersFile">docker-compose-test.yml</property>
Additional Information