-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
43 lines (34 loc) · 1.59 KB
/
Dockerfile
File metadata and controls
43 lines (34 loc) · 1.59 KB
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
FROM ubuntu:16.04
ENV TEMPDIR=/tmp/install_mapguide
ENV FDOVER_MAJOR_MINOR_REV=4.2.0
ENV MGVER_MAJOR_MINOR_REV=4.0.0
ENV MG_PATH=/usr/local/mapguideopensource-${MGVER_MAJOR_MINOR_REV}
ENV MGLOG_PATH=${MG_PATH}/server/Logs
ENV MGAPACHE_LOG=${MG_PATH}/webserverextensions/apache2/logs
ENV MGTOMCAT_LOG=${MG_PATH}/webserverextensions/tomcat/logs
ENV ADMIN_USER=Administrator
ENV ADMIN_PASSWORD=admin
ENV URL_MAPGUIDE_RUN=http://download.osgeo.org/mapguide/releases/4.0.0/Preview2/mapguideopensource-4.0.0.9740-ubuntu16-install.run
WORKDIR ${TEMPDIR}
COPY utilities/ .
RUN apt-get update && apt-get -y install wget \
&& wget ${URL_MAPGUIDE_RUN}
RUN chmod +x mapguideopensource-4.0.0.9740-ubuntu16-install.run && apt-get update \
&& ./mapguideopensource-4.0.0.9740-ubuntu16-install.run --noexec --nox11 --target . && apt-get update \
&& ./install-with-rdbms.sh --headless --with-rdbms --no-service-install --no-mgserver-start \
--no-tomcat-start --no-httpd-start --with-sdf --with-shp --with-sqlite --with-gdal \
--with-ogr --with-wfs \
&& apt-get install unzip -y \
&& mkdir /usr/share/fonts/truetype/msttcorefonts && unzip msttcorefonts.zip -d /usr/share/fonts/truetype/msttcorefonts \
&& apt-get remove unzip -y \
&& apt-get install openjdk-8-jdk -y
WORKDIR ${MG_PATH}
# SETTING UP PERMISSION
RUN chmod 777 webserverextensions/www/TempDir
RUN chmod a+rw ${MG_PATH}/webserverextensions/www/fusion/lib/tcpdf/cache/
#REMOVE TEMP FILES
RUN rm -rf ${TEMPDIR}
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
EXPOSE 8008 2810 2811 2812 8080 8000
ENTRYPOINT ["/entrypoint.sh"]