[
https://issues.apache.org/jira/browse/CAMEL-24646?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18121097#comment-18121097
]
Torsten Mielke commented on CAMEL-24646:
----------------------------------------
Discussed further with Aurelien.
The deployment of any Camel artifacts to the snapshot repository should have
happened before the Camel JBang IT tests executed. So [previous
analysis|https://issues.apache.org/jira/browse/CAMEL-24646?focusedCommentId=18121028&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-18121028]
is very likely wrong.
Hence we are unclear what caused the problem and it is currently no longer
reproducible.
At the same time, the log of the specific Maven test that failed with the error
is no longer available.
There is a fair chance that the problem might have been resolved already.
We agreed to close this ticket and reopen if needed.
> Camel JBang 4.22.x IT tests cannot build the Docker image
> ---------------------------------------------------------
>
> Key: CAMEL-24646
> URL: https://issues.apache.org/jira/browse/CAMEL-24646
> Project: Camel
> Issue Type: Test
> Components: camel-jbang
> Affects Versions: 4.22.0
> Reporter: Aurélien Pupier
> Assignee: Torsten Mielke
> Priority: Major
>
> half of the tests are failing with this kind of error:
> {noformat}
> org.testcontainers.containers.ContainerFetchException: Can't get Docker
> image: RemoteDockerImage(imageName=<resolving>,
> imagePullPolicy=DefaultPullPolicy(),
> imageNameSubstitutor=org.testcontainers.utility.ImageNameSubstitutor$LogWrappedImageNameSubstitutor@235d29d6)
> at
> org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1308)
> at
> org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:346)
> at
> org.testcontainers.containers.GenericContainer.start(GenericContainer.java:317)
> at
> org.apache.camel.test.infra.cli.services.CliLocalContainerService.initialize(CliLocalContainerService.java:79)
> at
> org.apache.camel.test.infra.common.services.TestServiceUtil.tryInitialize(TestServiceUtil.java:54)
> at
> org.apache.camel.test.infra.common.services.TestService.beforeAll(TestService.java:28)
> at java.base/java.util.ArrayList.forEach(ArrayList.java:1604)
> Caused by: com.github.dockerjava.api.exception.DockerClientException: Could
> not build image: The command '/bin/sh -c source ~/.bashrc && if [[
> "$CAMEL_JBANG_VERSION" == "default" ]] ; then jbang app install
> camel@$CAMEL_REPO/$CAMEL_REF ; else jbang app install
> -Dcamel.jbang.version=$CAMEL_JBANG_VERSION camel@$CAMEL_REPO/$CAMEL_REF ;
> fi' returned a non-zero code: 1
> at
> com.github.dockerjava.api.command.BuildImageResultCallback.getImageId(BuildImageResultCallback.java:71)
> at
> com.github.dockerjava.api.command.BuildImageResultCallback.awaitImageId(BuildImageResultCallback.java:50)
> at
> org.testcontainers.images.builder.ImageFromDockerfile.resolve(ImageFromDockerfile.java:165)
> at
> org.testcontainers.images.builder.ImageFromDockerfile.resolve(ImageFromDockerfile.java:43)
> at
> org.testcontainers.utility.LazyFuture.getResolvedValue(LazyFuture.java:20)
> at org.testcontainers.utility.LazyFuture.get(LazyFuture.java:41)
> at
> org.testcontainers.shaded.com.google.common.util.concurrent.Futures$1.get(Futures.java:538)
> at
> org.testcontainers.images.RemoteDockerImage.getImageName(RemoteDockerImage.java:172)
> at
> org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:76)
> at
> org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:35)
> at
> org.testcontainers.utility.LazyFuture.getResolvedValue(LazyFuture.java:20)
> at org.testcontainers.utility.LazyFuture.get(LazyFuture.java:41)
> at
> org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1306)
> ... 6 more
> {noformat}
> it doesn't find jbang-core 4.22.1-SNAPSHOT
--
This message was sent by Atlassian Jira
(v8.20.10#820010)