-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
54 lines (43 loc) · 1.36 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
FROM tomcat:8-jre8
RUN apt-get update && \
apt-get install -y postgresql-client netcat unzip gettext-base fontconfig
WORKDIR /tmp
ENV CMDBUILD_ZIP_URL=http://downloads.sourceforge.net/project/cmdbuild/2.4.0/cmdbuild-2.4.0.zip \
SHARK_ZIP_URL=http://downloads.sourceforge.net/project/cmdbuild/2.4.0/shark-cmdbuild-2.4.0.zip \
PGSQL_JDBC_DRIVER_URL=https://jdbc.postgresql.org/download/postgresql-9.4.1208.jar
RUN set -x \
&& curl -fSL "$CMDBUILD_ZIP_URL" -o cmdbuild.zip \
&& unzip cmdbuild.zip \
&& rm cmdbuild.zip \
&& mv cmdbuild* cmdbuild
RUN set -x \
&& curl -fSL "$SHARK_ZIP_URL" -o shark.zip \
&& unzip shark.zip \
&& rm shark.zip \
&& mv shark* shark
COPY configuration /tmp/cmdbuild/configuration
RUN set -x \
&& curl -fSL "$PGSQL_JDBC_DRIVER_URL" -O \
&& mv postgresql* $CATALINA_HOME/lib/
COPY docker-entrypoint.sh /
WORKDIR $CATALINA_HOME
## CMDBUILD CONFIGURATION {
ENV CMDBUILD_DEFAULT_LANG=pt_PT
ENV DB_USER=postgres \
DB_PASS=test \
DB_HOST=postgres \
DB_PORT=5432 \
DB_NAME=cmdbuild
ENV BIM_ACTIVE=false \
BIM_URL=http://bimserver:8080/bimserver \
BIM_PASSWORD=bimserver
ENV GIS_ENABLED=false \
GEOSERVER_ON_OFF=off \
GEOSERVER_URL=http://geoserver:8080/geoserver \
GEOSERVER_USER=admin \
GEOSERVER_PASSWORD=geoserver \
GEOSERVER_WORKSPACE=cmdbuild
## }
ENTRYPOINT ["/docker-entrypoint.sh"]
CMD ["cmdbuild"]