Skip to content
Snippets Groups Projects
Commit 07cec0b3 authored by Robert Butora's avatar Robert Butora
Browse files

docker: sends logs to stdout (soda.logging.properties) including access_log (which is a Valve)

parent 505493d7
No related branches found
No related tags found
No related merge requests found
......@@ -42,6 +42,8 @@ RUN echo "${INST_DIR}/lib" > /etc/ld.so.conf.d/ast.conf && ldconfig \
# change webapps-dir and preconfigure port 8080 (no SSL)
COPY deps/server.xml deps/server-connector.xml ${CATALINA_BASE}/conf/
COPY deps/soda.logging.properties ${CATALINA_BASE}/conf/
COPY deps/setenv.sh ${CATALINA_BASE}/bin/
# configure at start-up
......
......@@ -38,6 +38,8 @@ RUN echo "${INST_DIR}/lib" > /etc/ld.so.conf.d/ast.conf && ldconfig \
# pre-configure port 8080 (no TSL)
COPY deps/server.xml deps/server-connector.xml ${CATALINA_BASE}/conf/
COPY deps/soda.logging.properties ${CATALINA_BASE}/conf/
COPY deps/setenv.sh ${CATALINA_BASE}/bin/
# modif permissions to allow run as non-root: need to config TSL and ROOT-CONTEXT
WORKDIR ${CATALINA_BASE}
......
......@@ -30,8 +30,8 @@
</Realm>
<Host name="localhost" appBase="webapps"
unpackWARs="true" autoDeploy="true">
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs"
prefix="localhost_access_log" suffix=".txt"
<Valve className="org.apache.catalina.valves.AccessLogValve" directory="/dev"
prefix="stdout" suffix="" fileDateFormat=""
pattern="%h %l %u %t &quot;%r&quot; %s %b" />
</Host>
</Engine>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment