Jean Pommier
a306878d8a
Fix exec function when running the container as root
2024-09-25 16:48:31 +02:00
Jean Pommier
245d346801
Allow running tomcat as non-root
...
It is a good practice to allow running a container as unprivileged user.
To preserve backward compatibility and provide flexibility, this feature
is added at the entrypoint level and is set using environment variables.
- RUN_UNPRIVILEGED=true activates the unprivileged mode with default uid:gid
as 999:999
- RUN_WITH_USER_UID allows to set the uid used for tomcat user
- RUN_WITH_USER_UID allows to set the gid used for tomcat group
- CHANGE_OWNERSHIP_ON_FOLDERS accepts a space-separated list of folder on
which a chmod will be run, changing (recursively) the ownership for the
tomcat user.
2024-09-24 18:12:16 +02:00
Chris Barnett
31aa91735c
Added context element to config/server.xml and set autoDeploy and deployOnStartup to false
...
url in HEALTHCHECK written to file so that it can be set on startup
updated README with usage info
2024-07-08 21:08:33 -04:00
Chris Barnett
fde66168af
added env variable to specify which tomcat context GeoServer should be deployed at, including ROOT.
...
added logic to ignore ROOT_WEBAPP_REDIRECT if context is ROOT
added logic to choose the correct url for the healthcheck
2024-07-08 21:07:19 -04:00
Dirk Mennecke
e4263e6d1c
Edit startup.sh to handle credentials update
2024-07-08 21:04:19 -04:00
Mitchell Bösecke
701203821a
Added basic HTTPS support by mounting a JKS file and providing some environment variables.
2024-07-08 21:02:58 -04:00
Chris Barnett
edd0315216
Merge branch 'geoserver:master' into support-tomcat-root
2024-02-20 15:22:53 -05:00
Chris Barnett
a2643b4d00
manually deploy ROOT context when ROOT_WEBAPP_REDIRECT is true and WEBAPP_CONTEXT is not ''
2024-02-13 15:13:40 -05:00
Chris Barnett
ce561ff777
Added context element to config/server.xml and set autoDeploy and deployOnStartup to false
...
url in HEALTHCHECK written to file so that it can be set on startup
updated README with usage info
2024-02-13 13:50:05 -05:00
Chris Barnett
edfcef33ad
Merge branch 'geoserver:master' into support-tomcat-root
2024-02-12 09:57:28 -05:00
Jan-Otto Kröpke
1d4bc77faf
Merge branch 'master' into patch-1
2024-02-09 09:35:51 +01:00
Nils Bühner
09f1dfec0c
refactor: use function to avoid duplicate code
2024-02-07 14:49:03 +01:00
Nils Bühner
4a68744113
feat: allow use of custom server.xml
2024-02-07 14:29:46 +01:00
Jan-Otto Kröpke
d744517e76
Update startup.sh
2024-01-29 11:14:05 +01:00
Jan-Otto Kröpke
c691b3578b
Update startup.sh
...
Co-authored-by: Reinout van Rees <reinout@vanrees.org>
2024-01-29 11:12:25 +01:00
Jan-Otto Kröpke
e725d75cd9
Support custom web.xml
2024-01-29 09:50:18 +01:00
Chris Barnett
e04f1ed17d
added env variable to specify which tomcat context GeoServer should be deployed at, including ROOT.
...
added logic to ignore ROOT_WEBAPP_REDIRECT if context is ROOT
added logic to choose the correct url for the healthcheck
2024-01-12 10:25:43 -05:00
Andre Henn
4bc82ce2ba
Apply some CIS Apache Tomcat benchmark recommendations
2023-12-12 14:24:03 +01:00
Mitchell Bösecke
8be469744c
Fixed default value for JNDI resource.
...
In Apache tomcat we have to name it "jdbc/postgres" while in Geoserver we have to name it "java:comp/env/jdbc/postgres".
2023-11-09 10:04:28 -07:00
Mitchell Bösecke
d688d24e7a
Added support for a PostgreSQL JNDI resource.
...
- Included a blurb on the README.md
- Provides a default "context.xml" that a user can easily configure using environment variables.
- Provides a mechanism for the user to override the default "context.xml" with their own version of the file for more advanced customization of the connection pool.
Heavily inspired by the work done at https://github.com/kartoza/docker-geoserver .
2023-11-09 08:59:33 -07:00
Nick Graziano
a20e2942b3
Add CORS_ALLOW_CREDENTIALS env param that controls cors.support.credentials value, defaults to false, only applies if true and CORS_ALLOWED_ORIGINS is not wildcard. Update README with CORS env vars and PROXY_BASE_URL
2023-08-31 10:20:05 -06:00
Nick Graziano
7c36851a05
Add support for access-control-allow-credentials CORS header when CORS_ALLOWED_ORIGINS is not a wildcard
2023-08-30 12:58:31 -06:00
Andreas Watermeyer
2d0483bee5
Graceful tomcat shutdown
2023-06-07 20:10:18 -07:00
Yervand Aghababyan
c8217f80e5
Making sure additional fonts are correctly counted
...
Currently the additional fonts installation fails as they are wrongly counted in the startup.sh script.
2023-03-25 12:37:26 -07:00
Nils Bühner
58521a88d8
Add logs for extension and font installation
2023-03-01 14:55:03 +01:00
Cristhian Rivera
422be0ae8d
Allow redirection to GeoServer webapp from the ROOT webapp
2022-10-16 13:18:31 +02:00
Jakob Miksch
d5dbd403d5
Skip demo data on startup
2022-09-05 15:52:15 +02:00
Jody Garnett
a66ec1e028
Troubleshoot Dockerfile handling of data directory and extensions
2022-08-13 23:41:53 -07:00
Johannes Weskamm
5d8ca42c09
Updating docker and scripts
2022-06-22 17:29:47 +02:00