From 4becc16731d8a814acb5cc326e9802d4dfea65ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Fastr=C3=A9?= Date: Fri, 19 May 2017 12:23:11 +0200 Subject: [PATCH] switching to 3.2.9 and add tzdata to container --- Dockerfile | 3 ++- README.md | 7 +++++++ docker-compose.yml | 2 ++ 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 2130230..228600d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ FROM ubuntu:16.04 MAINTAINER Julien Fastré -ARG version=3.2.7 +ARG version=3.2.9 WORKDIR /tmp/build @@ -31,6 +31,7 @@ RUN echo "untar SOPE sources" \ postgresql-server-dev-9.5 \ libmemcached-dev \ libcurl4-openssl-dev \ + tzdata \ && echo "compiling sope & sogo" \ && cd /tmp/SOPE \ && ./configure --with-gnustep --enable-debug --disable-strip \ diff --git a/README.md b/README.md index 6352579..a8dc76b 100644 --- a/README.md +++ b/README.md @@ -61,6 +61,9 @@ services: volumes: # replace by your own file - /path/to/your/file/sogo.conf:/etc/sogo/sogo.conf + environment: + # set the timezone in environment (see https://serverfault.com/a/826222/194817) + - "TZ=Europe/Brussels" db: image: postgres:9.5 # for debug purpose only: reach the database from outside @@ -101,6 +104,10 @@ $ cd docker-sogo $ docker build --build-arg version=x.x.x . ``` +## Timezone issue + +The timezone may be set in environement, using the `TZ` variable. See example in `docker-compose.yml`. + ## migrating from 2.3 to 3.1|3.2 using docker-compose The assets (css, js, ...) are contained in a volume. Those assets are completely different from version 2.3 to version 3.1 and 3.2. If you used `docker-compose` and migrated from 2.3 to 3.2, you have to either : diff --git a/docker-compose.yml b/docker-compose.yml index e8a9df3..47a3619 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -20,6 +20,8 @@ services: # replace by the path to your own sogo.conf file - ./../sogo.conf:/etc/sogo/sogo.conf + environment: + - "TZ=Europe/Amsterdam" db: image: postgres:9.5 ports: