Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

image build fails without resteasy using quarkus-openshift extension #8481

Closed
sshaaf opened this issue Apr 8, 2020 · 0 comments · Fixed by #8490
Closed

image build fails without resteasy using quarkus-openshift extension #8481

sshaaf opened this issue Apr 8, 2020 · 0 comments · Fixed by #8490
Labels
kind/bug Something isn't working
Milestone

Comments

@sshaaf
Copy link
Contributor

sshaaf commented Apr 8, 2020

Describe the bug
When trying to build with Openshift extension with the following command:
./mvnw clean package -Dquarkus.container-image.build=true

Expected behavior
Build should be succesfull

Actual behavior
It seems that the openshift.yml and other kubernetes related files are not generated. The target/kubernetes directory is empty

following error is thrown

[ERROR] Failed to execute goal io.quarkus:quarkus-maven-plugin:1.3.2.Final:build (default) on project test-without-resteasy-quarkus: Failed to build quarkus application: io.quarkus.builder.BuildException: Build failure: Build failed due to errors
[ERROR]         [error]: Build step io.quarkus.container.image.s2i.deployment.S2iProcessor#s2iBuildFromJar threw an exception: java.lang.IllegalStateException: Could not find kubernetes/openshift.yml
[ERROR]         at io.quarkus.container.image.s2i.deployment.S2iProcessor.lambda$s2iBuildFromJar$5(S2iProcessor.java:185)

To Reproduce
Steps to reproduce the behavior:

  1. ./mvnw clean package -Dquarkus.container-image.build=true
  2. Build will fail
  3. Add the resteasy dependency and the build will work.

Following project attached to reproduce
image-build-failed.tar.gz

Configuration

# Add your application.properties here, if applicable.
quarkus.kubernetes-client.trust-certs=true

Screenshots
(If applicable, add screenshots to help explain your problem.)

Environment (please complete the following information):

  • Output of uname -a or ver:
    Linux localhost 5.5.15-200.fc31.x86_64 Switch to the Maven distributed copy of the SubstrateVM annotations #1 SMP Thu Apr 2 19:16:17 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

  • Output of java -version:
    openjdk version "11.0.6" 2020-01-14
    OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.6+10)
    OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.6+10, mixed mode)

  • GraalVM version (if different from Java):

  • Quarkus version or git rev:
    1.3.2.Final

  • Build tool (ie. output of mvnw --version or gradlew --version):
    Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
    Maven home: /home/.m2/wrapper/dists/apache-maven-3.6.3-bin/1iopthnavndlasol9gbrbg6bf2/apache-maven-3.6.3
    Java version: 11.0.6, vendor: AdoptOpenJDK, runtime: /home/jdk-11.0.6+10
    Default locale: en_US, platform encoding: UTF-8
    OS name: "linux", version: "5.5.15-200.fc31.x86_64", arch: "amd64", family: "unix"

Additional context
(Add any other context about the problem here.)

@sshaaf sshaaf added the kind/bug Something isn't working label Apr 8, 2020
geoand added a commit to geoand/quarkus that referenced this issue Apr 9, 2020
geoand added a commit to geoand/quarkus that referenced this issue Apr 9, 2020
geoand added a commit to geoand/quarkus that referenced this issue Apr 9, 2020
geoand added a commit to geoand/quarkus that referenced this issue Apr 9, 2020
geoand added a commit that referenced this issue Apr 9, 2020
Properly handle non-http service in s2i
iocanel pushed a commit to iocanel/quarkus that referenced this issue Apr 14, 2020
@gsmet gsmet added this to the 1.4.0.CR1 milestone Apr 14, 2020
viniciusfcf pushed a commit to viniciusfcf/quarkus-fork that referenced this issue Sep 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants