I would like have spring integration test with the plugin of fabric8, but when I try to run the test I got the next error:
Cannot create docker access object
I have ubuntu and I think that I have well configurated dockers, I haven't had any problems with dockerfiles or dockercompose, so may it will be either a permissions problems or I forgot something.
I past below my fabric8 configuration, this have an image of mysql and the maven-failsafe-plugin to integration test.
<!--maven plugin -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-failsafe-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
<configuration>
<environmentVariables>
<it-database.port>${it-database.port}</it-database.port>
</environmentVariables>
</configuration>
</plugin>
<!--fabric8 plugin -->
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.18.1</version>
<configuration>
<!--<dockerHost>unix:///var/run/docker.sock</dockerHost>-->
<dockerHost>tcp://0.0.0.0:2375</dockerHost>
</configuration>
<executions>
<execution>
<id>prepare-it-database</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<images>
<image>
<name>mysql:5.7</name>
<alias>it-database</alias>
<run>
<ports>
<port>it-database.port:5432</port>
</ports>
<wait>
<log>database system is ready to accept connections</log>
<time>20000</time>
</wait>
</run>
</image>
</images>
</configuration>
</execution>
<execution>
<id>remove-it-database</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>