quarkus
quarkus copied to clipboard
Fast-Jar doesn't work for OpenShift S2I deployment
Describe the bug
When the Quarkus app uses the openshift extension for the openshift deployment, the fast-jar (default package format) fails to build the app with the following error:
Receiving source from STDIN as archive ... error: unable to extract binary build input, must be a zip, tar, or gzipped tar, or specified as a file: exit status 1
This happens in only 3.6.8. As a workaround, the legacy-jar format works
Expected behavior
Build success
Actual behavior
Build failure
How to Reproduce?
- Add quarkus-openshift extension to any app
- Add the following properties. quarkus.kubernetes.deploy=true quarkus.kubernetes.deployment-target=openshift quarkus.openshift.route.expose=true quarkus.kubernetes-client.trust-certs=true
- quarkus build --no-tests
Make sure to log in to the OpenShift cluster
Output of uname -a
or ver
Darwin doh-mac 23.2.0 Darwin Kernel Version 23.2.0
Output of java -version
openjdk version "21.0.1" 2023-10-17 LTS
Quarkus version or git rev
3.6.8
Build tool (ie. output of mvnw --version
or gradlew --version
)
Apache Maven 3.9.6
Additional information
No response