-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Support OpenJDK S2I #1305
Comments
Try |
Do any of the quickstarts have it enabled to test with OpenShift? |
No, the quickstarts are not using uberjar.
Note that with uberjar you will be in JVM mode and not in native mode.
… On 7 Mar 2019, at 14:56, Siamak Sadeghianfar ***@***.***> wrote:
Do any of the quickstarts have it enabled to test with OpenShift?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@siamaksade @cescoffier I may be able to help with this one - will try to do so tomorrow or Monday... FYI, background: fabric8io-images/s2i#123 is kind of related to this... see also #304 |
@vorburger That would be awesome! |
Using the uberjar config should do the trick since in that case we add the |
It would be valuable to add a quickstart for OpenShift similar to getting-started-kubernetes and with uberjar config enabled |
@siamaksade Good idea. What else would you like to see in that guide? |
The last section of the kubernetes guide covers OpenShift.
… On 8 Mar 2019, at 09:02, Georgios Andrianakis ***@***.***> wrote:
@siamaksade Good idea. What would you like to see in that guide?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
@geoand a quickstart like getting-started-openshift that possibly has also fabric8 in it and one can just run @cescoffier a guide is also would be great (#1306). One wouldn't even find it currently on quarkus.io since item in the guides page is called "Deploying Applications on Kubernetes" rather than "Deploying Applications on Kubernetes/OpenShift". Furthremore, it needs instructions on how to use S2I for the build, in addition to the docker build strategy. |
If we agree that it is needed, I can definitely add it |
@siamaksade @cescoffier OK so let's fix (or further discuss) that point over in quarkusio/quarkusio.github.io#124 ...
But if we can get
@siamaksade @geoand I'm personally actually not sure if I am huge fan of |
@vorburger sure. I understand your reluctance toward fabric8 😃 |
@stuartwdouglas @cescoffier see #1344 ... I can see two solutions forward: a) I could do what's needed in the S2I Builder image to make it pick the (bigger) runner.jar over the (smaller) other normal JAR; or b) we could make the Doing b) may be quicker, and would have the advantage that it would work for all S2I images (if I did the (a) solution it would be in https://github.com/fabric8io-images/s2i; the later the same would have to separately be redone over in https://github.com/jboss-container-images/openjdk because of fabric8io-images/s2i#218).
Understood; this issue (for #1306) is about building a Quarkus app in OpenShift with S2i in JVM mode, not native. We'll tackle that later under #304. |
(b) is preferable IMHO for reasons you mentioned. S2I builder image just sees 2 jars files and any heuristic for picking one would end up being the wrong choice for other use-cases. |
I opened a PR (#1345) for b) - let's see what people think |
Didn’t read everything, but if we could about the fat jar in a container that would be great...
… On 8 Mar 2019, at 14:33, Georgios Andrianakis ***@***.***> wrote:
I opened a PR for b) - let's see what people think
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Can’t we have a builder that just take the regular runner and copy the libs?
… On 8 Mar 2019, at 14:44, clement escoffier ***@***.***> wrote:
Didn’t read everything, but if we could about the fat jar in a container that would be great...
> On 8 Mar 2019, at 14:33, Georgios Andrianakis ***@***.***> wrote:
>
> I opened a PR for b) - let's see what people think
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub, or mute the thread.
|
can you elaborate a little bit on why? I trust you have good reasons - I'd love to learn about them!
we could, but that requires work in the S2I base image(s; several!), they probably won't know that they have to copy lib/ ... it's doable, but what's the "justification" ? Using |
A docker container is already your packaging unit, creating another packaging unit in it is just looking for bad performances at startup time. In addition, we are creating a huge top layer and every update is going to resync the whole "fat" layer, which we would avoid with using the runner (as it's only your application code and resources). |
quarkusio/quarkus-quickstarts#81 now has a working (tested) proposed first version! That is still based on |
quarkusio#1306 see also quarkusio#1305 requires quarkusio/quarkus-quickstarts#81 and then to actually publish the link to this new guide in the menu it needs quarkusio/quarkusio.github.io#126
via .s2i/environment with suitable options, and by fixing the JAR's finalName in POM, see quarkusio/quarkus#1305 Credit goes to @gastaldi for "inspiration" for this taken from Launcher.
quarkusio/quarkus-quickstarts#81 has gone through some iterations, and we now have something (hopefully) final (now without |
@siamaksade OK for you to close this issue, now that both quarkusio/quarkus-quickstarts#81 as well as #1353 have been merged, and that quarkusio/quarkusio.github.io#126 is hopefully about to be merged? |
This can be closed. quarkusio/quarkusio.github.io#126 need a bit of rework (very very small ordering issue). |
When Using OpenJDK S2I to build and deploy the examples on OpenShift, builds succeeds but the deployment fails.
The deployment fails with the following error since it can't determine which JAR file to use:
The text was updated successfully, but these errors were encountered: