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

document pre-built native-s2i from http://Quay.io in README.md #1

Merged
merged 2 commits into from
Apr 2, 2019

Conversation

vorburger
Copy link

@vorburger
Copy link
Author

also @tqvarnst

@tqvarnst
Copy link
Contributor

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
Copy link
Contributor

@gastaldi gastaldi Mar 22, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
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"

Copy link
Contributor

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

Copy link
Author

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?

Copy link
Contributor

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

Copy link
Contributor

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?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@gastaldi do you have time to verify if #7 fixes this problem? Because I can't reproduce it (weird).

@vorburger
Copy link
Author

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 once that is in), then there we'll only mention the end-user usage, not how to build the S2I image itself. Deal?

@tqvarnst
Copy link
Contributor

tqvarnst commented Mar 25, 2019 via email

vorburger added a commit to vorburger/quarkus-images that referenced this pull request Apr 1, 2019
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.
@vorburger
Copy link
Author

@tqvarnst now so done (as discussed) in #1801 ... and simplified this one to avoid copy/paste dupes.

@cescoffier cescoffier merged commit 95d1b5d into quarkusio:graalvm-1.0.0-rc14 Apr 2, 2019
cescoffier added a commit that referenced this pull request Jun 24, 2019
* 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.
cescoffier added a commit that referenced this pull request Aug 28, 2020
Refactor Jbang implementation
matthyx pushed a commit to matthyx/quarkus-images that referenced this pull request Sep 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants