[GeoNetwork-devel] Geonetwork/ElasticSearch/Kibana docker-compose

Hi All,

I'm working on a docker-compose file for spinning up Geonetwork 3.10
and ElasticSearch/Kibana in docker. I can get the containers to start,
and I think I've got the indices loaded, but Geonetwork doesn't seem
to be able to "see" kibana or elasticsearch on localhost:5601 and
9200, although I have those ports exposed. I think that I need to ask
Geonetwork to listen on http://[containername]:[port] instead. I know
this can be configured in
https://github.com/geonetwork/core-geonetwork/blob/3.10.x/web/src/main/webResources/WEB-INF/config.properties
but is there any way I can set these properties as environment
variables in docker-compose instead of editing that file?

Thanks

Jo

--
Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For
urgent responses at that time, please visit
support.astuntechnology.com or phone our office on 01372 744009

--
--
*Sign up to our mailing list
<https://astuntechnology.com/company/#email-updates&gt; for updates on news,
products, conferences, events and training*
*
*

Astun Technology Ltd,
Epsom Square Centre, 6-7 The Derby Square, Epsom, Surrey, KT19 8AG, UK

t:+44 1372 744 009 w: astuntechnology.com <http://astuntechnology.com/&gt;
twitter:@astuntech <https://twitter.com/astuntech&gt;

iShare - enterprise
geographic intelligence platform <https://astuntechnology.com/ishare/&gt;

GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/training-courses/&gt;
Helpdesk and customer
portal
<https://astuntech.atlassian.net/wiki/spaces/ISHAREHELP/pages/364970043/Astun+Technology+Support+Portal&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

Hi Jo, the setup should be quite similar to the one for version 4
https://github.com/geonetwork/docker-geonetwork/tree/master/4.0.0-alpha.1

HTH

Francois

Le mer. 2 sept. 2020 à 13:06, Jo Cook <jocook@anonymised.com> a écrit :

Hi All,

I’m working on a docker-compose file for spinning up Geonetwork 3.10
and ElasticSearch/Kibana in docker. I can get the containers to start,
and I think I’ve got the indices loaded, but Geonetwork doesn’t seem
to be able to “see” kibana or elasticsearch on localhost:5601 and
9200, although I have those ports exposed. I think that I need to ask
Geonetwork to listen on http://[containername]:[port] instead. I know
this can be configured in
https://github.com/geonetwork/core-geonetwork/blob/3.10.x/web/src/main/webResources/WEB-INF/config.properties
but is there any way I can set these properties as environment
variables in docker-compose instead of editing that file?

Thanks

Jo


Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For
urgent responses at that time, please visit
support.astuntechnology.com or phone our office on 01372 744009

Sign up to our mailing list
<https://astuntechnology.com/company/#email-updates> for updates on news,
products, conferences, events and training

*
*

Astun Technology Ltd,
Epsom Square Centre, 6-7 The Derby Square, Epsom, Surrey, KT19 8AG, UK

t:+44 1372 744 009 w: astuntechnology.com <http://astuntechnology.com/>
twitter:@astuntech <https://twitter.com/astuntech>

iShare - enterprise
geographic intelligence platform <https://astuntechnology.com/ishare/>

GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/training-courses/>
Helpdesk and customer
portal
<https://astuntech.atlassian.net/wiki/spaces/ISHAREHELP/pages/364970043/Astun+Technology+Support+Portal>

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

Hi Francois,

Perfect, that's exactly what I'm looking for. Out of interest does
that version load the indices automatically?

Thanks so much,

Jo

On Wed, Sep 2, 2020 at 1:00 PM Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Jo, the setup should be quite similar to the one for version 4
https://github.com/geonetwork/docker-geonetwork/tree/master/4.0.0-alpha.1

HTH

Francois

Le mer. 2 sept. 2020 à 13:06, Jo Cook <jocook@anonymised.com> a écrit :

Hi All,

I'm working on a docker-compose file for spinning up Geonetwork 3.10
and ElasticSearch/Kibana in docker. I can get the containers to start,
and I think I've got the indices loaded, but Geonetwork doesn't seem
to be able to "see" kibana or elasticsearch on localhost:5601 and
9200, although I have those ports exposed. I think that I need to ask
Geonetwork to listen on http://[containername]:[port] instead. I know
this can be configured in
https://github.com/geonetwork/core-geonetwork/blob/3.10.x/web/src/main/webResources/WEB-INF/config.properties
but is there any way I can set these properties as environment
variables in docker-compose instead of editing that file?

Thanks

Jo

--
Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For
urgent responses at that time, please visit
support.astuntechnology.com or phone our office on 01372 744009

--
--
*Sign up to our mailing list
<https://astuntechnology.com/company/#email-updates&gt; for updates on news,
products, conferences, events and training*
*
*

Astun Technology Ltd,
Epsom Square Centre, 6-7 The Derby Square, Epsom, Surrey, KT19 8AG, UK

t:+44 1372 744 009 w: astuntechnology.com <http://astuntechnology.com/&gt;
twitter:@astuntech <https://twitter.com/astuntech&gt;

iShare - enterprise
geographic intelligence platform <https://astuntechnology.com/ishare/&gt;

GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/training-courses/&gt;
Helpdesk and customer
portal
<https://astuntech.atlassian.net/wiki/spaces/ISHAREHELP/pages/364970043/Astun+Technology+Support+Portal&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

_______________________________________________
GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For
urgent responses at that time, please visit
support.astuntechnology.com or phone our office on 01372 744009

--
--
*Sign up to our mailing list
<https://astuntechnology.com/company/#email-updates&gt; for updates on news,
products, conferences, events and training*
*
*

Astun Technology Ltd,
Epsom Square Centre, 6-7 The Derby Square, Epsom, Surrey, KT19 8AG, UK

t:+44 1372 744 009 w: astuntechnology.com <http://astuntechnology.com/&gt;
twitter:@astuntech <https://twitter.com/astuntech&gt;

iShare - enterprise
geographic intelligence platform <https://astuntechnology.com/ishare/&gt;

GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/training-courses/&gt;
Helpdesk and customer
portal
<https://astuntech.atlassian.net/wiki/spaces/ISHAREHELP/pages/364970043/Astun+Technology+Support+Portal&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

Yes GeoNetwork 4 creates the indices when they do not exist.

So for version 3, you need to create them once Elasticsearch is up or maybe an option would be to have the index dir as a volume and by default provide empty indices ?

Francois

Le mer. 2 sept. 2020 à 14:35, Jo Cook <jocook@anonymised.com> a écrit :

Hi Francois,

Perfect, that’s exactly what I’m looking for. Out of interest does
that version load the indices automatically?

Thanks so much,

Jo

On Wed, Sep 2, 2020 at 1:00 PM Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Hi Jo, the setup should be quite similar to the one for version 4
https://github.com/geonetwork/docker-geonetwork/tree/master/4.0.0-alpha.1

HTH

Francois

Le mer. 2 sept. 2020 à 13:06, Jo Cook <jocook@anonymised.com> a écrit :

Hi All,

I’m working on a docker-compose file for spinning up Geonetwork 3.10
and ElasticSearch/Kibana in docker. I can get the containers to start,
and I think I’ve got the indices loaded, but Geonetwork doesn’t seem
to be able to “see” kibana or elasticsearch on localhost:5601 and
9200, although I have those ports exposed. I think that I need to ask
Geonetwork to listen on http://[containername]:[port] instead. I know
this can be configured in
https://github.com/geonetwork/core-geonetwork/blob/3.10.x/web/src/main/webResources/WEB-INF/config.properties
but is there any way I can set these properties as environment
variables in docker-compose instead of editing that file?

Thanks

Jo


Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For
urgent responses at that time, please visit
support.astuntechnology.com or phone our office on 01372 744009

Sign up to our mailing list
<https://astuntechnology.com/company/#email-updates> for updates on news,
products, conferences, events and training

*
*

Astun Technology Ltd,
Epsom Square Centre, 6-7 The Derby Square, Epsom, Surrey, KT19 8AG, UK

t:+44 1372 744 009 w: astuntechnology.com <http://astuntechnology.com/>
twitter:@astuntech <https://twitter.com/astuntech>

iShare - enterprise
geographic intelligence platform <https://astuntechnology.com/ishare/>

GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/training-courses/>
Helpdesk and customer
portal
<https://astuntech.atlassian.net/wiki/spaces/ISHAREHELP/pages/364970043/Astun+Technology+Support+Portal>

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.


GeoNetwork-devel mailing list
GeoNetwork-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork


Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For
urgent responses at that time, please visit
support.astuntechnology.com or phone our office on 01372 744009

Sign up to our mailing list
<https://astuntechnology.com/company/#email-updates> for updates on news,
products, conferences, events and training

*
*

Astun Technology Ltd,
Epsom Square Centre, 6-7 The Derby Square, Epsom, Surrey, KT19 8AG, UK

t:+44 1372 744 009 w: astuntechnology.com <http://astuntechnology.com/>
twitter:@astuntech <https://twitter.com/astuntech>

iShare - enterprise
geographic intelligence platform <https://astuntechnology.com/ishare/>

GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/training-courses/>
Helpdesk and customer
portal
<https://astuntech.atlassian.net/wiki/spaces/ISHAREHELP/pages/364970043/Astun+Technology+Support+Portal>

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

Hi Francois,

Yes I think I have that working in 3.10, with an additional setup
script that runs after ElasticSearch has started (checking whether
they have already been loaded).

Thanks

Jo

On Wed, Sep 2, 2020 at 2:22 PM Francois Prunayre <fx.prunayre@anonymised.com> wrote:

Yes GeoNetwork 4 creates the indices when they do not exist.

So for version 3, you need to create them once Elasticsearch is up or maybe an option would be to have the index dir as a volume and by default provide empty indices ?

Francois

Le mer. 2 sept. 2020 à 14:35, Jo Cook <jocook@anonymised.com> a écrit :

Hi Francois,

Perfect, that's exactly what I'm looking for. Out of interest does
that version load the indices automatically?

Thanks so much,

Jo

On Wed, Sep 2, 2020 at 1:00 PM Francois Prunayre <fx.prunayre@anonymised.com> wrote:
>
> Hi Jo, the setup should be quite similar to the one for version 4
> https://github.com/geonetwork/docker-geonetwork/tree/master/4.0.0-alpha.1
>
> HTH
>
> Francois
>
> Le mer. 2 sept. 2020 à 13:06, Jo Cook <jocook@anonymised.com> a écrit :
>>
>> Hi All,
>>
>> I'm working on a docker-compose file for spinning up Geonetwork 3.10
>> and ElasticSearch/Kibana in docker. I can get the containers to start,
>> and I think I've got the indices loaded, but Geonetwork doesn't seem
>> to be able to "see" kibana or elasticsearch on localhost:5601 and
>> 9200, although I have those ports exposed. I think that I need to ask
>> Geonetwork to listen on http://[containername]:[port] instead. I know
>> this can be configured in
>> https://github.com/geonetwork/core-geonetwork/blob/3.10.x/web/src/main/webResources/WEB-INF/config.properties
>> but is there any way I can set these properties as environment
>> variables in docker-compose instead of editing that file?
>>
>> Thanks
>>
>> Jo
>>
>> --
>> Jo Cook
>> t:+44 7930 524 155/twitter:@archaeogeek
>> Please note that currently I do not work on Friday afternoons. For
>> urgent responses at that time, please visit
>> support.astuntechnology.com or phone our office on 01372 744009
>>
>> --
>> --
>> *Sign up to our mailing list
>> <https://astuntechnology.com/company/#email-updates&gt; for updates on news,
>> products, conferences, events and training*
>> *
>> *
>>
>> Astun Technology Ltd,
>> Epsom Square Centre, 6-7 The Derby Square, Epsom, Surrey, KT19 8AG, UK
>>
>> t:+44 1372 744 009 w: astuntechnology.com <http://astuntechnology.com/&gt;
>> twitter:@astuntech <https://twitter.com/astuntech&gt;
>>
>>
>>
>> iShare - enterprise
>> geographic intelligence platform <https://astuntechnology.com/ishare/&gt;
>>
>> GeoServer, PostGIS and QGIS training
>> <https://astuntechnology.com/training-courses/&gt;
>> Helpdesk and customer
>> portal
>> <https://astuntech.atlassian.net/wiki/spaces/ISHAREHELP/pages/364970043/Astun+Technology+Support+Portal&gt;
>>
>>
>>
>>
>>
>> Company registration no. 5410695. Registered in England and Wales.
>> Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
>> 864201149.
>>
>>
>> _______________________________________________
>> GeoNetwork-devel mailing list
>> GeoNetwork-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geonetwork-devel
>> GeoNetwork OpenSource is maintained at http://sourceforge.net/projects/geonetwork

--
Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For
urgent responses at that time, please visit
support.astuntechnology.com or phone our office on 01372 744009

--
--
*Sign up to our mailing list
<https://astuntechnology.com/company/#email-updates&gt; for updates on news,
products, conferences, events and training*
*
*

Astun Technology Ltd,
Epsom Square Centre, 6-7 The Derby Square, Epsom, Surrey, KT19 8AG, UK

t:+44 1372 744 009 w: astuntechnology.com <http://astuntechnology.com/&gt;
twitter:@astuntech <https://twitter.com/astuntech&gt;

iShare - enterprise
geographic intelligence platform <https://astuntechnology.com/ishare/&gt;

GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/training-courses/&gt;
Helpdesk and customer
portal
<https://astuntech.atlassian.net/wiki/spaces/ISHAREHELP/pages/364970043/Astun+Technology+Support+Portal&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.

--
Jo Cook
t:+44 7930 524 155/twitter:@archaeogeek
Please note that currently I do not work on Friday afternoons. For
urgent responses at that time, please visit
support.astuntechnology.com or phone our office on 01372 744009

--
--
*Sign up to our mailing list
<https://astuntechnology.com/company/#email-updates&gt; for updates on news,
products, conferences, events and training*
*
*

Astun Technology Ltd,
Epsom Square Centre, 6-7 The Derby Square, Epsom, Surrey, KT19 8AG, UK

t:+44 1372 744 009 w: astuntechnology.com <http://astuntechnology.com/&gt;
twitter:@astuntech <https://twitter.com/astuntech&gt;

iShare - enterprise
geographic intelligence platform <https://astuntechnology.com/ishare/&gt;

GeoServer, PostGIS and QGIS training
<https://astuntechnology.com/training-courses/&gt;
Helpdesk and customer
portal
<https://astuntech.atlassian.net/wiki/spaces/ISHAREHELP/pages/364970043/Astun+Technology+Support+Portal&gt;

Company registration no. 5410695. Registered in England and Wales.
Registered office: 120 Manor Green Road, Epsom, Surrey, KT19 8LN VAT no.
864201149.