-
Notifications
You must be signed in to change notification settings - Fork 22
/
Dockerfile
52 lines (38 loc) · 1.17 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
FROM tomcat:8-jre8
EXPOSE 8080
RUN apt-get update && \
apt-get install -y postgresql-client netcat unzip gettext-base fontconfig
WORKDIR /tmp
ENV OPENMAINT_ZIP_URL=http://downloads.sourceforge.net/project/openmaint/1.1/openmaint-1.1-2.4.2.zip \
PGSQL_JDBC_DRIVER_URL=https://jdbc.postgresql.org/download/postgresql-9.4.1208.jar
RUN set -x \
&& curl -fSL "$OPENMAINT_ZIP_URL" -o openmaint.zip \
&& unzip openmaint.zip \
&& rm openmaint.zip \
&& mv openmaint* openmaint
COPY configuration /tmp/openmaint/configuration
RUN set -x \
&& curl -fSL "$PGSQL_JDBC_DRIVER_URL" -O \
&& mv postgresql* $CATALINA_HOME/lib/
COPY docker-entrypoint.sh /
WORKDIR $CATALINA_HOME
## OPENMAINT CONFIGURATION {
ENV OPENMAINT_DEFAULT_LANG=en
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 ["openmaint"]