I'd like to run stilliard/pure-ftpd
through maven. So when I run mvn clean install
the docker image will spin up and my IT tests can communicate with the docker images.
This is how my pom.xml.file looks like
<plugin>
<groupId>io.fabric8</groupId>
<artifactId>docker-maven-plugin</artifactId>
<executions>
<execution>
<id>prepare-it</id>
<phase>pre-integration-test</phase>
<goals>
<goal>start</goal>
</goals>
<configuration>
<images>
<image>
<alias>rabbitmq</alias>
<name>rabbitmq:3-management-alpine</name>
<run>
<ports>
<port>${rabbitmq.port}:5672</port>
<port>${rabbitmq-management.port}:15672</port>
</ports>
<wait>
<http>
<url>http://${rabbitmq.host}:${rabbitmq-management.port}</url>
<method>GET</method>
<status>200..399</status>
</http>
<time>30000</time>
</wait>
</run>
</image>
<image>
<alias>sftp</alias>
<name>stilliard/pure-ftpd</name>
<run>
<cmd>${sftp.username}:${sftp.password}:::${sftp.directory}</cmd>
<ports>
<port>${sftp.port}:21</port>
</ports>
<wait>
<time>10000</time>
</wait>
</run>
</image>
</images>
</configuration>
</execution>
<execution>
<id>remove-it</id>
<phase>post-integration-test</phase>
<goals>
<goal>stop</goal>
</goals>
</execution>
</executions>
</plugin>
Everything starts except the ftp server. I get this message when I run mvn clean install
[INFO] DOCKER> [stilliard/pure-ftpd] "sftp": Start container c40ccb9d35e7
[ERROR] DOCKER> Error occurred during container startup, shutting down...
[INFO] DOCKER> [rabbitmq:3-management-alpine] "rabbitmq": Stop and removed container afbc982dc61b after 0 ms
[ERROR] DOCKER> I/O Error
What am I missing so that I can get stilliard/pure-ftpd
start.