Thanks for the reply.

I understood that it is normal.

Best regards,
Shingo

From: Andrea Aime <andrea.a...@geosolutionsgroup.com>
Sent: Friday, April 19, 2024 7:30 PM
To: Shingo NISHIYAMA (西山 真吾) <shin...@intent-exchange.com>
Cc: geoserver-users <geoserver-users@lists.sourceforge.net>
Subject: Re: [Geoserver-users] Setting SKIP_DEMO_DATA=true changes the global 
settings.

What you're seeing seems quite normal to me.
From the documentation:

"The environment variable SKIP_DEMO_DATA can be set to true to create an empty 
data directory."

So you switch from a demo data directory, that not only has data, but also 
several settings, to one that's
completely empty, where everything picks built-in defaults.

Using the internal data directory is anyways a bad idea, please externalize it 
instead<https://github.com/geoserver/docker?tab=readme-ov-file#how-to-mount-an-external-folder-for-use-as-a-data-directory>,
 and use a
starter data directory with the base settings that best suit your needs. If you 
like the settings
found in the demo data, just start from there and remove the bits you don't 
want.


Regards,

Andrea Aime



==
GeoServer Professional Services from the experts!

Visit http://bit.ly/gs-services-us for more information.
==

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions Group
phone: +39 0584 962313

fax:     +39 0584 1660272

mob:   +39  339 8844549


https://www.geosolutionsgroup.com/

http://twitter.com/geosolutions_it

-------------------------------------------------------

Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 
2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa 
che ogni circostanza inerente alla presente email (il suo contenuto, gli 
eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i 
destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per 
errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei 
comunque grato se potesse darmene notizia.

This email is intended only for the person or entity to which it is addressed 
and may contain information that is privileged, confidential or otherwise 
protected from disclosure. We remind that - as provided by European Regulation 
2016/679 “GDPR” - copying, dissemination or use of this e-mail or the 
information herein by anyone other than the intended recipient is prohibited. 
If you have received this email by mistake, please notify us immediately by 
telephone or e-mail


On Fri, Apr 19, 2024 at 11:21 AM Shingo NISHIYAMA (西山 真吾) 
<shin...@intent-exchange.com<mailto:shin...@intent-exchange.com>> wrote:
Does anyone have any information?

Best regards,
Shingo

-----Original Message-----
From: Shingo NISHIYAMA
Sent: Friday, March 29, 2024 4:30 PM
To: geoserver-users 
<geoserver-users@lists.sourceforge.net<mailto:geoserver-users@lists.sourceforge.net>>
Subject: Setting SKIP_DEMO_DATA=true changes the global settings.

Hello All,

I am using geoserver docker image.
If I set `SKIP_DEMO_DATA=true`[1], the Global Settings[2] will change.
For example, "Number of Decimals" is set to 4 instead of the default value of 8.

Is this an intended change? Or is it a bug?

[1] https://github.com/geoserver/docker?tab=readme-ov-file#environment-variables
[2] https://docs.geoserver.org/latest/en/user/configuration/globalsettings.html

$ docker image ls --digests 
docker.osgeo.org/geoserver<http://docker.osgeo.org/geoserver>
REPOSITORY                   TAG       DIGEST                                   
                                 IMAGE ID       CREATED         SIZE
docker.osgeo.org/geoserver<http://docker.osgeo.org/geoserver>   2.25.0    
sha256:19335fcc02fbdcbcff0acdc89a05831f88e074d9025e49b11cb0355df1091c4f   
e2ab41d76027   9 days ago      957MB

$ docker run --rm -it -p 80:8080 -e SKIP_DEMO_DATA=false 
docker.osgeo.org/geoserver:2.25.0<http://docker.osgeo.org/geoserver:2.25.0> ...
$ curl -s -u admin:geoserver http://localhost:80/geoserver/rest/settings | jq 
.global.settings.numDecimals
8

---

$ docker run --rm -it -p 80:8080 -e SKIP_DEMO_DATA=true 
docker.osgeo.org/geoserver:2.25.0<http://docker.osgeo.org/geoserver:2.25.0> ...
$ curl -s -u admin:geoserver http://localhost:80/geoserver/rest/settings | jq 
.global.settings.numDecimals
4

Best regards,
Shingo



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net<mailto:Geoserver-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-users
_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this 
list:
- Earning your support instead of buying it, but Ian Turton: 
http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: 
http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: 
https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to