question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

OpenShift: We can't provide Java arguments

See original GitHub issue

Describe the bug

Before this PR was merged, we could add Java arguments via the jvmArgs properties (which was wrong and fixed as part of this PR). However, now we don’t have any properties or way to add real Java arguments.

As an example, the args section in the YAML look like:

args:
    - '-Dquarkus.http.host=0.0.0.0'
    - '-Djava.util.logging.manager=org.jboss.logmanager.LogManager'
    - '-jar'
    - /deployments/quarkus-run.jar

And what we can’t achieve is to add Java arguments:

args:
    - '-Dquarkus.http.host=0.0.0.0'
    - '-Djava.util.logging.manager=org.jboss.logmanager.LogManager'
    - '-jar'
    - /deployments/quarkus-run.jar
    - ARG1
    - ARG2

I tried to use the property quarkus.openshift.arguments but it’s replacing all the args section as:

args:
    - ARG1
    - ARG2

I think this issue is also relevant for Kubernetes and S2I.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
geoandcommented, Apr 21, 2021

👍

Let’s keep this open as an enhancement request

0reactions
maxandersencommented, Apr 22, 2021

I think a “appargs” or similar property makes sense to add; but yes - don’t see this as being openshift specific. Should be generally possible for wherever we configure the java/app launch for native and jvmmode.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Java applications on OpenShift
In this respect, I want to present in this blog a few approaches for troubleshooting Java applications running on OpenShift.
Read more >
how to pass args (i.e.configuration) when deploy on openshift ...
My goal is to provide my specific configuration when I execute it. Running the application locally I got what I want but I...
Read more >
Openshift add java option - Stack Overflow
Openshift add java option ... In open shift I would like to change my yaml file to enable to do this... -Djavax.net.debug=ssl:handshake:verbose.
Read more >
Installing a cluster on bare metal - OpenShift Documentation
yaml file to provide more details about the platform. After installation, you cannot modify these parameters in the install-config.yaml file.
Read more >
Building a Native Executable - Quarkus
If you cannot install GraalVM, you can use a multi-stage Docker build to run Maven ... You can provide custom options for the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found