-
Notifications
You must be signed in to change notification settings - Fork 76
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
document pre-built native-s2i from http://Quay.io in README.md #1
Conversation
also @tqvarnst |
I honestly don't think that it's necessary to document how to build the S2I image itself. IMO it's a bit confusing and I would remove that part and just keep the example where we are pointing to the image on Quay.io. |
oc new-app quay.io/quarkus/centos-quarkus-native-s2i~https://github.com/quarkusio/quarkus-quickstarts --context-dir=getting-started --name=getting-started-native | ||
|
||
or, to use the image locally built above: | ||
|
||
oc new-app quarkus-native-s2i~https://github.com/quarkusio/quarkus-quickstarts --context-dir=getting-started --name=getting-started-native |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oc new-app quarkus-native-s2i~https://github.com/quarkusio/quarkus-quickstarts --context-dir=getting-started --name=getting-started-native | |
oc new-app https://github.com/quarkusio/quarkus-quickstarts --context-dir=getting-started --name=getting-started-native --image-stream="quarkus-native/centos-quarkus-native-s2i:latest" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That command fails for me with:
➜ oc new-app quarkus-native-s2i~https://github.com/quarkusio/quarkus-quickstarts --context-dir=getting-started --name=getting-started-native
error: only a partial match was found for "quarkus-native-s2i": "quarkus-native/centos-quarkus-native-s2i:latest"
The argument "quarkus-native-s2i" only partially matched the following Docker image, OpenShift image stream, or template:
* Image stream "centos-quarkus-native-s2i" (tag "latest") in project "quarkus-native"
Use --image-stream="quarkus-native/centos-quarkus-native-s2i:latest" to specify this image or template
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That command fails for me with:
@gastaldi that's curious, it worked fine for me locally.. did you perhaps run oc new-build https://github.com/quarkusio/quarkus.git
in a different oc project
namespace/context (the quarkus-native
) than where you do oc new-app ... quarkus-quickstarts
? What's what this error message seems to tell us.
Your Suggested Change -image-stream="quarkus-native/centos-quarkus-native-s2i:latest
would only work if you did that, but not in the general case - that quarkus-native
is "arbitrary" (not suggested in the previous step) - am I making any sense?
Does it work if you just do oc new-app quay.io/quarkus/centos-quarkus-native-s2i~https://github.com/quarkusio/quarkus-quickstarts --context-dir=getting-started --name=getting-started-native
and therefore use the container what is available on https://quay.io/repository/quarkus/centos-quarkus-native-s2i, instead of locally building this S2I Builder image inside your OpenShift cluster yourself?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@vorburger
oc new-app quay.io/quarkus/centos-quarkus-native-s2i~https://github.com/quarkusio/quarkus-quickstarts --context-dir=getting-started --name=getting-started-native
works for me
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the output is:
| 2019-03-25 21:59:52,866 ERROR [null] (main) Failed to publish log record (OPEN_FAILURE[4]): Failed to set log file: java.io.FileNotFoundException: quarkus.log
-- | --
| at com.oracle.svm.core.posix.PosixUtils.fileOpen(PosixUtils.java:234)
| at java.io.FileOutputStream.open(FileOutputStream.java:618)
| at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
| at org.jboss.logmanager.handlers.FileHandler.setFile(FileHandler.java:148)
| at io.quarkus.runtime.logging.LoggingSetupTemplate.initializeLogging(LoggingSetupTemplate.java:71)
| at io.quarkus.deployment.steps.LoggingResourceProcessor$setupLoggingRuntimeInit2.deploy(Unknown Source)
| at io.quarkus.runner.ApplicationImpl1.doStart(Unknown Source)
| at io.quarkus.runtime.Application.start(Application.java:93)
| at io.quarkus.runtime.Application.run(Application.java:198)
| at io.quarkus.runner.GeneratedMain.main(Unknown Source)
|
| 2019-03-25 21:59:52,873 INFO [io.quarkus] (main) Quarkus 0.12.0 started in 0.009s. Listening on: http://[::]:8080
| 2019-03-25 21:59:52,873 INFO [io.quarkus] (main) Installed features: [cdi, resteasy]
Probably it is missing the quarkus.log.file.enabled=false
(or something similar) property?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you mean, from a public doc / end-user point of view, this is too low-level / internal... I just find it useful to document this for locally testing future changes to this image (without relying on a remote repo like Quay), for myself and others. Let's do one thing: I'll clarify this README here and split the two completely. And when we add doc about this on https://quarkus.io (I was thinking of proposing to add this to quarkusio/quarkus#1353 once that is in), then there we'll only mention the end-user usage, not how to build the S2I image itself. Deal? |
Sound good to me.
mån 25 mars 2019 kl. 19:00 skrev Michael Vorburger ⛑️ <
[email protected]>:
… I honestly don't think that it's necessary to document how to build the
S2I image itself. IMO it's a bit confusing and I would remove that part and
just keep the example where we are pointing to the image on Quay.io.
I see what you mean, from a public doc / end-user point of view, this is
too low-level / internal... I just find it useful to document this for
locally testing future changes to this image (without relying on a remote
repo like Quay), for myself and others.
Let's do one thing: I'll clarify this README here and split the two
completely. And when we add doc about this on https://quarkus.io (I was
thinking of proposing to add this to quarkusio/quarkus#1353
<quarkusio/quarkus#1353> once that is in), then
there we'll only mention the end-user usage, not how to build the S2I image
itself. Deal?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABJfk56UwMV-Xhvv63WZRkE0dT-vXi9Jks5vaQ7NgaJpZM4cD_Lq>
.
|
suggested on josequaresma/quarkus@5d357f7 by @josequaresma and should "remove the error with application not being able to create quarkus.log" which was brought up on quarkusio#1 (according to @josequaresma)
because most of that content moved to quarkus.git/docs/src/main/asciidoc/openshift-s2i-guide.adoc in quarkusio/quarkus#1801, and we should not have it dupliate in two places.
@tqvarnst now so done (as discussed) in #1801 ... and simplified this one to avoid copy/paste dupes. |
* set the exact version for centos * Copy the docker file from the quarkus repository. Add the native-image image Add the distroless image Add the native S2I Also add a graal + maven image * align how dockerfile retrieve graalvm * update to GraalVM 1.0.0-rc14 * document pre-built native-s2i from http://Quay.io in README.md * add WORKDIR to centos-quarkus-native-s2i/Dockerfile suggested on josequaresma/quarkus@5d357f7 by @josequaresma and should "remove the error with application not being able to create quarkus.log" which was brought up on #1 (according to @josequaresma) * simplify centos-quarkus-native-s2i/README.md because most of that content moved to quarkus.git/docs/src/main/asciidoc/openshift-s2i-guide.adoc in quarkusio/quarkus#1801, and we should not have it dupliate in two places. * update to graalvm-1.0.0-rc15 * Changed to use a fixed name for the native application in the container. Fixes #11 * Add a readme explaining how this repo is used * Update GraalVM (RC16) and Maven (3.6.1) versions * Add a note about changing the default branch of the repository in the README * quarkus images, cekit poc Signed-off-by: Filippe Spolti <[email protected]> * Add a task goal * Creates a common module installing the base packages * the image providing maven and other tools need is still based on centos * Use ubi-minimal * fix typo * Fix the quarkus user test in the native-image image * Rename modules * Create a gradle module * Change version * Change modules names Avoid overriding the version * Remove the dependency of the push phase * fix image name in the Makefile * Add support for GrallVM 19.0.2 * Use GraalVM 19.0.2 * Update version.
Refactor Jbang implementation
Add a minimal README
@cescoffier @gastaldi @geoand