switching to 3.2.9 and add tzdata to container
This commit is contained in:
parent
f30f49d668
commit
4becc16731
|
@ -2,7 +2,7 @@ FROM ubuntu:16.04
|
|||
|
||||
MAINTAINER Julien Fastré <julienfastre@cvfe.be>
|
||||
|
||||
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 \
|
||||
|
|
|
@ -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 :
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue