[Hawkular-dev] Property passing into Hawkular(-metrics)

Heiko W.Rupp hrupp at redhat.com
Tue Jun 16 11:25:04 EDT 2015


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


More information about the hawkular-dev mailing list