The README has the following: > How to watch geoserver.log from host? > > docker exec -it {CONTAINER_ID} tail -f /opt/geoserver_data/logs/geoserver.log
This fails as the logs/geoserver.log file is not availble 1) Since the startup.sh ends with: > $CATALINA_HOME/bin/catalina.sh run And console logging is enabled by default. so we already have logging output... 2) checking using docker exec -it instance bash bash The /oprt/geoserver_data/logging.xml file is zero bytes. Checking global settings the logging profile indicates "CHOOSE ONE" (which I never saw before). Selecting DEFAULT_LOGGING and the logs/geoserver.log file is created and is now available. -- Jody Garnett On Thu, 11 Aug 2022 at 10:04, Jody Garnett <jody.garn...@gmail.com> wrote: > I gave this a go using the following: > > docker pull docker.osgeo.org/geoserver:2.21.1 > docker run -it -p8080:8080 docker.osgeo.org/geoserver:2.21.1 > > So some success in that the application starts (expected warnings as log > directory is created against an empty folder). > > Feedback: > > 1) Starting from ubuntu:22.04 and installing tomcat is cool ... > > Looks like tomcat is being run as root? In that case starting from may be > easier to manage: > > FROM tomcat:9-jdk11 > > I like installing tomcat ourselves; when I do that I create a tomcat user: > > RUN useradd -m -U -d /opt/tomcat -s /bin/false tomcat && > wget -q -O apache-tomcat.zip " > https://dlcdn.apache.org/tomcat/tomcat-9/v${TOMCAT_VERSION}/bin/apache-tomcat-${TOMCAT_VERSION}.zip > " > unzip apache-tomcat.zip > mv apache-tomcat-*/ /opt/tomcat/ > ln -s /opt/tomcat/apache-tomcat-* /opt/tomcat/latest > chown -R tomcat: /opt/tomcat > chmod +x /opt/tomcat/latest/bin/*.sh > rm apache-tomcat.zip > > 2) Release data directory? To use this for user guide tutorials it assume > the release folder is available... > > Reading the dockerfile the geoserver.war is unpacked and it hunts for a > $GS_DATA_PATH at build time (the default is an empty folder) > - The geoserver war is extracted; and includes the release data directory > already; it could be copied into position if GS_DATA_PATH is not provided > - Does not look like libjpegturbo is installed but I can see how it would > be done > > 3) The https://github.com/geoserver/docker/blob/master/README.md is > understandably about build instructions and options. > > We should add a > https://docs.geoserver.org/latest/en/user/installation/index.html#installation > page. > -- > Jody Garnett > > > On Thu, 11 Aug 2022 at 01:39, Johannes Weskamm <wesk...@terrestris.de> > wrote: > >> Hi all, >> >> Based on >> >> https://github.com/geoserver/docker >> >> the first geoserver docker image for version 2.21.1 has been pushed to >> the osgeo repo and can be pulled via >> >> >> docker pull docker.osgeo.org/geoserver:2.21.1 >> >> >> If someone finds issues we can discuss it here. If there are no >> objections we could announce the image also on the users mailinglist. >> >> >> Further roadmap for the image currently contains autogenerated builds >> and maybe also releases on dockerhub. >> >> >> Greetings, >> >> Johannes Weskamm >> >> >> >> _______________________________________________ >> Geoserver-devel mailing list >> Geoserver-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/geoserver-devel >> >
_______________________________________________ Geoserver-devel mailing list Geoserver-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-devel