[jboss-jira] [JBoss JIRA] (WFCORE-995) Add possibility to enable debug mode by setting environment variable in standalone scripts

Tomaz Cerar (JIRA) issues at jboss.org
Mon Oct 5 18:52:00 EDT 2015


     [ https://issues.jboss.org/browse/WFCORE-995?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tomaz Cerar reassigned WFCORE-995:
----------------------------------

    Assignee: James Perkins  (was: Tomaz Cerar)


> Add possibility to enable debug mode by setting environment variable in standalone scripts
> ------------------------------------------------------------------------------------------
>
>                 Key: WFCORE-995
>                 URL: https://issues.jboss.org/browse/WFCORE-995
>             Project: WildFly Core
>          Issue Type: Feature Request
>          Components: Scripts
>            Reporter: Tomaz Cerar
>            Assignee: James Perkins
>
> It's common practice in Docker to control image run by configuring environment variables.
> E.g.
> {code:bash}
> docker run -e POSTGRES_PASSWORD=mysecretpassword -d postgres
> {code}
> The Cloud Enablement team adds such a possibility to EAP docker images. They [replaces|https://gitlab.mw.lab.eng.bos.redhat.com/cloudenablement/jboss-dockerfiles/blob/0a22b6ef7dff7855288f32c55dd122b47cad66ff/standalone/eap/6.4/scripts/install_as_root] initial value of {{DEBUG_MODE}}:
> {code:bash}
> # Enhance standalone.sh to make remote JAVA debugging possible by specifying
> # DEBUG=true environment variable
> sed -i 's|DEBUG_MODE=false|DEBUG_MODE="${DEBUG:-false}"|' $JBOSS_HOME/bin/standalone.sh
> {code}
> It's not a clean solution. This change should be made in original scripts and not on a Dockerfile level. 
> Please allow configuring the {{DEBUG_MODE}} from environment variables (in similar as e.g. the {{JAVA_OPTS}} are handled.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list