GoogleContainerTools / GoogleContainerTools/jib
jib-maven-plugin failing with 'No Compressor found for the stream signature' error over some docker images
- Dominant language
- Java
- Stars
- 14.5k
- Forks
- 1.5k
- PR merge metrics
- No merged PRs in 30d
Description
**Environment**:
- jib-maven-plugin 3.4.3
- Maven
- Linux
**Description of the issue**:
jib-maven-plugin is failing with 'No Compressor found for the stream signature' error over some docker images.
Docker images that failed on jib-maven-plugin with 'No Compressor found for the stream signature' error works fine over standard docker image build commands. So we can assure that those images are not corrupted.
The error only happens on some docker images but not others. So far we cannot find out what specific docker image attribute or content would trigger this error.
**Expected behavior**:
Build succeeds.
**Steps to reproduce**:
1. maven execution over pom.xml file (jib-maven-plugin config included)
**`jib-maven-plugin` Configuration**:
```xml
com.google.cloud.tools
jib-maven-plugin
3.4.3
(image path redacted):latest
/app/resources/logback
/appvol/application
/bin/sh
-c
exec java $JAVA_OPTS -javaagent:/app/libs/dd-java-agent-0.103.0.jar -Ddd.trace.sample.rate=1.0 -Ddd.jdbc.analytics.enabled=true -Ddd.logs.injection=true -Dspring.profiles.active=$SPRING_PROFILES_ACTIVE -cp $( cat /app/jib-classpath-file ) $( cat /app/jib-main-class-file )
8080
```
**Log output**:
[ERROR] Failed to execute goal com.google.cloud.tools:jib-maven-plugin:3.4.3:dockerBuild (default-cli) on project **(project name redacted)**: org.apache.commons.compress.compressors.CompressorException: No Compressor found for the stream signature. -> [Help 1]
Contributor guide
Assessment
This issue has not been assessed yet.