Skip to content

Commit

Permalink
add tzdata to render-ws image and to render-ws.env so that container …
Browse files Browse the repository at this point in the history
…logs have local instead of GMT timestamps
  • Loading branch information
trautmane committed Feb 6, 2024
1 parent 4392342 commit 99c21d1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@ RUN mkdir -p /root/render-lib && \
FROM jetty:10.0.13-jre11 as render-ws

# add packages not included in base image:
# curl and coreutils are always needed for gnu readlink
# curl and coreutils are always needed for gnu readlink, tzdata is needed to set timezone
# other packages can be added from build command (e.g. docker build ... --build-arg EXTRA_JETTY_PACKAGES=vim )
ARG EXTRA_JETTY_PACKAGES

USER root
RUN apt-get update && apt-get install -y curl coreutils $EXTRA_JETTY_PACKAGES
RUN apt-get update && apt-get install -y curl coreutils tzdata $EXTRA_JETTY_PACKAGES

WORKDIR $JETTY_BASE

Expand Down
5 changes: 5 additions & 0 deletions render-ws/src/main/scripts/docker-compose/render-ws.env
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
# NOTE: don't use quotes around values - details here:
# https://docs.docker.com/engine/reference/commandline/run/#set-environment-variables--e---env---env-file

# ---------------------------------
# Switch containers to local time zone (otherwise log times will be GMT)
# - see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones
TZ=America/New_York

# ---------------------------------
# Database Connection Parameters

Expand Down

0 comments on commit 99c21d1

Please sign in to comment.