为什么本地的 hono 构建会因"Unable to pull 'index.docker.io/eclipse/hono-service-auth-quarkus:2.0.0-SNAPSHOT'



环境:

Maven主页:/usr/share/apache-Maven-3.8.2Java版本:17.0.2,供应商:Private Build,运行时:/usr/lib/jvm/Java-17-openjdk-amd64默认区域设置:de_de,平台编码:UTF-8OS名称:";linux";,版本:";4.15.0-173-generic";,拱门:";amd64〃;,家族:";unix";

mvn clean install failsafe:verify -DCI=true -Dhono.components.type=quarkus -Dhono.deviceregistry.type=mongodb -Dhono.messaging-infra.type=kafka -Dhono.commandrouting.cache=server -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DskipStaging=true -Pmetrics-prometheus,jaeger,run-tests

失败:

[信息]DOCKER>[index.docker.io/eclipse/hono infinispan test:2.0.0-SNAPSHOT]:构建图像sha256:57c05[信息]DOCKER>[index.docker.io/eclipse/hono-jaeger test:2.0.0-SNAPSHOT]:跳过建筑[信息]正在将文件复制到/home/achim/repo/hono/tests/target/doker/index.docker.io/eclipse/hoon-service-auth-test/2.0.0-SNAPSHOT/build/maven[信息]建筑tar:/home/achim/repo/hono/tests/target/doker/index.docker.io/eclipse/hoon-service-auth-test/2.0.0-NAPSHOT/tmp/docker-build.tar[信息]DOCKER>[index.docker.io/eclipse/hono-service-auth-test:2.0.0-SNAPSHOT]:在2秒内创建了docker-build.tar[错误]DOCKER>无法从注册表"index.docker.io"中提取"index.docker.io/eclipse/hono service auth quarkus:2.0.0-SNAPSHOT":{"message":"eclipse/heno service-auth quarkus:2.0.0-SNAPPSHOT未找到:清单未知:清单未知"}(未找到:404([{"消息":"eclipse/hono服务身份验证清单:2.0.0-SNAPSHOT未找到:清单未知:清单未知"}(未找到:404(]

是否需要更改mvn参数?或者成功执行测试所需的内容。

maven命令不会激活构建容器映像所需的配置文件。在你的情况下,它应该是

mvn clean install failsafe:verify -DCI=true -Dhono.components.type=quarkus -Dhono.deviceregistry.type=mongodb -Dhono.messaging-infra.type=kafka -Dhono.commandrouting.cache=server -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn -DskipStaging=true -Pbuild-docker-image,metrics-prometheus,jaeger,run-tests

最新更新