-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Building an image with jib fails when adding the quarkus google cloud functions extension #33011
Comments
/cc @geoand (jib), @loicmathieu (google-cloud) |
@loicmathieu, IIUC google-cloud can only work with uber-jar, is that correct? |
@geoand yes, and there is no point of using Jib with Google Cloud Functions as a Google Cloud Functions cannot run inside a container but only inside Google Cloud Functions runtime on GCP |
@loicmathieu In our use case, we want to use the same codebase to deploy to google cloud functions and google cloud run So we want to use JIB to build the image to deploy to cloud run and for functions we will deploy this as a JAR, using the same codebase |
I'm testing a fix |
Makes sense.
Great :) |
#33258 is what I have in mind (and tested with the sample mentioned here) |
Ensure that Google Cloud Functions and Jib extensions work together
Fixes: quarkusio#33011 (cherry picked from commit cfe9a19)
Fixes: quarkusio#33011 (cherry picked from commit cfe9a19)
Describe the bug
After adding the google cloud functions extension to my project, building images with the jib extension failed
Expected behavior
I should still be able to build an image using jib when adding the google cloud functions dependency
Actual behavior
The build fails with exception:
How to Reproduce?
I have added a reproducer project here
https://github.com/emilesteenkamp/quarkus-function-google-function-jib-reproducer
to reproduce the issue, you can clone the project and run the build command in the Readme
Output of
uname -a
orver
Darwin Emiles-MacBook-Pro.local 22.2.0 Darwin Kernel Version 22.2.0: Fri Nov 11 02:03:51 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T6000 arm64
Output of
java -version
openjdk version "20" 2023-03-21 OpenJDK Runtime Environment Homebrew (build 20) OpenJDK 64-Bit Server VM Homebrew (build 20, mixed mode, sharing)
GraalVM version (if different from Java)
No response
Quarkus version or git rev
2.15.3.Final
Build tool (ie. output of
mvnw --version
orgradlew --version
)Gradle 7.5.1
Additional information
No response
The text was updated successfully, but these errors were encountered: