quarkus icon indicating copy to clipboard operation
quarkus copied to clipboard

Fast-Jar doesn't work for OpenShift S2I deployment

Open danieloh30 opened this issue 1 year ago • 8 comments

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 image

Actual behavior

Build failure image

How to Reproduce?

  1. Add quarkus-openshift extension to any app
  2. Add the following properties. quarkus.kubernetes.deploy=true quarkus.kubernetes.deployment-target=openshift quarkus.openshift.route.expose=true quarkus.kubernetes-client.trust-certs=true
  3. 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

danieloh30 avatar Jan 28 '24 02:01 danieloh30