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>
|
MAINTAINER Julien Fastré <julienfastre@cvfe.be>
|
||||||
|
|
||||||
ARG version=3.2.7
|
ARG version=3.2.9
|
||||||
|
|
||||||
WORKDIR /tmp/build
|
WORKDIR /tmp/build
|
||||||
|
|
||||||
|
@ -31,6 +31,7 @@ RUN echo "untar SOPE sources" \
|
||||||
postgresql-server-dev-9.5 \
|
postgresql-server-dev-9.5 \
|
||||||
libmemcached-dev \
|
libmemcached-dev \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
|
tzdata \
|
||||||
&& echo "compiling sope & sogo" \
|
&& echo "compiling sope & sogo" \
|
||||||
&& cd /tmp/SOPE \
|
&& cd /tmp/SOPE \
|
||||||
&& ./configure --with-gnustep --enable-debug --disable-strip \
|
&& ./configure --with-gnustep --enable-debug --disable-strip \
|
||||||
|
|
|
@ -61,6 +61,9 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
# replace by your own file
|
# replace by your own file
|
||||||
- /path/to/your/file/sogo.conf:/etc/sogo/sogo.conf
|
- /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:
|
db:
|
||||||
image: postgres:9.5
|
image: postgres:9.5
|
||||||
# for debug purpose only: reach the database from outside
|
# for debug purpose only: reach the database from outside
|
||||||
|
@ -101,6 +104,10 @@ $ cd docker-sogo
|
||||||
$ docker build --build-arg version=x.x.x .
|
$ 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
|
## 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 :
|
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
|
# replace by the path to your own sogo.conf file
|
||||||
|
|
||||||
- ./../sogo.conf:/etc/sogo/sogo.conf
|
- ./../sogo.conf:/etc/sogo/sogo.conf
|
||||||
|
environment:
|
||||||
|
- "TZ=Europe/Amsterdam"
|
||||||
db:
|
db:
|
||||||
image: postgres:9.5
|
image: postgres:9.5
|
||||||
ports:
|
ports:
|
||||||
|
|
Loading…
Reference in a new issue