You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ignite.apache.org by kyro <ab...@fico.com> on 2018/12/20 08:14:47 UTC

External multiple config files for Docker installation

Hi,

Is there any way to provide multiple config files while running ignite from
the docker image? In the docs it is mentioned that we can provide the path
to one config.xml file. I was wondering if there is any way to provide
multiple config files, such as a jetty config xml file along with that.

Thanks,
Abhisek



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: External multiple config files for Docker installation

Posted by Stephen Darlington <st...@gridgain.com>.
A lower-lift method might be to put your config files in the local file system and create a volume to make it accessible from your container.

Something like:

docker run —rm -it -v /home/me/config:/opt/ignite/config -e CONFIG_URI=file:///opt/ignite/config/local.xml <file:///opt/ignite/config/local.xml> apacheignite/ignite:2.7.0

Regards,
Stephen

> On 20 Feb 2019, at 11:26, Stanislav Lukyanov <st...@gmail.com> wrote:
> 
> Ignite's Docker image doesn't have a parameter for that.
> You can create your own Dockerfile extending Ignite's image and define and
> handle a new parameter there.
> 
> Stan
> 
> 
> kyro wrote
>> Hi akurbanov,
>> 
>> Yes, I have the lines as you mentioned in my config. I was asking as to
>> how
>> do I pass the two config files when using the docker run command? In the
>> docker installation documentation it is written that we can give the uri
>> for
>> one config file, but how do I import the jettyconfig.xml file?
>> 
>> Thanks,
>> 
>> 
>> 
>> --
>> Sent from: http://apache-ignite-users.70518.x6.nabble.com/
> 
> 
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/



Re: External multiple config files for Docker installation

Posted by Stanislav Lukyanov <st...@gmail.com>.
Ignite's Docker image doesn't have a parameter for that.
You can create your own Dockerfile extending Ignite's image and define and
handle a new parameter there.

Stan


kyro wrote
> Hi akurbanov,
> 
> Yes, I have the lines as you mentioned in my config. I was asking as to
> how
> do I pass the two config files when using the docker run command? In the
> docker installation documentation it is written that we can give the uri
> for
> one config file, but how do I import the jettyconfig.xml file?
> 
> Thanks,
> 
> 
> 
> --
> Sent from: http://apache-ignite-users.70518.x6.nabble.com/





--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: External multiple config files for Docker installation

Posted by kyro <ab...@fico.com>.
Hi akurbanov,

Yes, I have the lines as you mentioned in my config. I was asking as to how
do I pass the two config files when using the docker run command? In the
docker installation documentation it is written that we can give the uri for
one config file, but how do I import the jettyconfig.xml file?

Thanks,



--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/

Re: External multiple config files for Docker installation

Posted by akurbanov <an...@gmail.com>.
Hi, 

You can use  <import resource="your.xml" /> to include some configuration
properties, that is a generic way to do this. As for Jetty config, you
should point to absolute or relative to $IGNITE_HOME path:

<property name="connectorConfiguration">
    <bean class="org.apache.ignite.configuration.ConnectorConfiguration">
        <property name="jettyPath" value="/path/to/custom/xml"/>
        <property name="port" value="1111"/>
    </bean>
</property>

Regards,




--
Sent from: http://apache-ignite-users.70518.x6.nabble.com/