[Hawkular-dev] Property passing into Hawkular(-metrics)
Viet Nguyen
vnguyen at redhat.com
Tue Jun 16 11:40:28 EDT 2015
Heiko,
You can still customize Hawkular start up script in Docker at runtime. Both vanilla Docker and Kubernetes support runtime environment variables.
Dockerfile:
CMD jboss_standalone.sh ${HAWKULAR_OPT}
Runtime:
docker run -e HAWKULAR_OPT=...
Viet
----- Original Message -----
From: "Heiko W.Rupp" <hrupp at redhat.com>
To: "Discussions around Hawkular development" <hawkular-dev at lists.jboss.org>
Sent: Wednesday, June 17, 2015 12:25:04 AM
Subject: Re: [Hawkular-dev] Property passing into Hawkular(-metrics)
On 16 Jun 2015, at 15:34, Matt Wringe wrote:
> On 16/06/15 04:29 AM, Heiko W.Rupp wrote:
>> Hey,
>>
>> currently one can pass properties/options like the C* to use
>> via -Dkey=value pairs to standalone.sh/bat
>>
>> This is a bit cumbersome and also does not work in cases, where
>> the command line is set at "compile time" like in a Dockerfile,
>> but the property needs to be set at run time (when docker run
>> a pre-made image).
>
> You can specify the default start options in the dockerfile, which
> allows for a simple install of that image.
Yes, but then you are forced to e.g. build the Docker image with e.g.
standalone.sh -XX:+UnlockCommercialFeatures -XX:+FlightRecorder
which is probably no longer portable to OpenJDK, that does not offer
this.
Similar for properties to tell where C* is (embedded or on a different
host/port).
>
> But you can also pass your own options when you go to first start your
> docker image, as well as overwrite them in the kubernetes configuration.
>
> Setting the options via a command line option is the easiest option when
> dealing with docker images and kubernetes, otherwise you need to jump
> through a bunch of hoops. I would really like to keep this option
> available if possible.
I do not want to abandon the command line options/parsing.
I want env-variables on top, that can easily be passed into Docker
and allow to use the same Docker image no matter if using the
embedded C* or C* on the host or in some other Docker container.
Heiko
_______________________________________________
hawkular-dev mailing list
hawkular-dev at lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hawkular-dev
More information about the hawkular-dev
mailing list