我在执行某些maven目标时使用Spotify Maven plugin自动构建和部署docker镜像。
但是,我正在运行可通过以下主机访问的私有不安全注册表:server.mydomain.com:5000。但是,我似乎无法阻止插件强制安全推送到存储库?它使用https://server.mydomain.com:5000。
有没有办法强制插件不使用https?
感谢。
编辑:
当前插件POM配置:
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>0.4.3</version>
<configuration>
<imageName>server.mydomain.com:5000/${project.artifactId}</imageName>
<baseImage>java</baseImage>
<entryPoint>["java", "-jar", "/${project.build.finalName}-packaged.jar"]</entryPoint>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}-packaged.jar</include>
</resource>
</resources>
<imageTags>
<imageTag>${project.version}</imageTag>
<imageTag>latest</imageTag>
</imageTags>
<retryPushCount>0</retryPushCount>
</configuration>
<executions>
<execution>
<id>build-image</id>
<phase>package</phase>
<goals>
<goal>build</goal>
</goals>
</execution>
<execution>
<id>push-image</id>
<phase>deploy</phase>
<goals>
<goal>push</goal>
</goals>
</execution>
</executions>
</plugin>
答案 0 :(得分:1)