如何通过Maven运行stilliard / pure-ftpd

问题描述 投票:0回答:1

我想通过Maven运行stilliard/pure-ftpd。因此,当我运行mvn clean install时,docker映像将旋转,并且我的IT测试可以与docker映像进行通信。

这是我的pom.xml.file的样子

<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>

除了ftp服务器以外,一切都开始。运行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

我缺少什么,所以我可以开始stilliard/pure-ftpd。>

我想通过maven运行stilliard / pure-ftpd。因此,当我运行mvn clean install时,docker映像将启动,并且我的IT测试可以与docker映像进行通信。这就是我的pom.xml.file ...

java maven docker ftp integration-testing
1个回答
0
投票

我不确定您对什么表示

<cmd>${sftp.username}:${sftp.password}:::${sftp.directory}</cmd>
© www.soinside.com 2019 - 2024. All rights reserved.