tom@9734: # Docker file for D4E River MapServer tom@9734: # with support for PostgreSQL and Oracle databases tom@9734: tom@9734: FROM centos:7 tom@9734: MAINTAINER tom@intevation.de tom@9734: tom@9734: # Necessary to run further yum-installs inside Docker container, tom@9734: # if not already part of the base image: tom@9734: RUN yum -q -y install yum-plugin-ovl && rpm --rebuilddb tom@9734: tom@9734: # Install prerequisites tom@9734: RUN yum -q -y install curl ca-certificates epel-release \ tom@9734: gnu-free-sans-fonts httpd tom@9734: RUN yum -q -y install gcc-c++ postgresql-devel gd-devel giflib-devel proj-devel \ tom@9734: proj-epsg prelink make tom@9734: tom@9734: # Install Oracle client tom@9734: RUN curl -s https://yum.oracle.com/RPM-GPG-KEY-oracle-ol7 \ tom@9734: -o /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle tom@9734: ADD ol7-temp.repo /etc/yum.repos.d/ tom@9734: RUN yum -q -y install oraclelinux-release-el7 tom@9734: RUN mv /etc/yum.repos.d/ol7-temp.repo /etc/yum.repos.d/ol7-temp.repo.disabled tom@9734: RUN yum -q -y install oracle-release-el7 tom@9734: RUN yum -q -y install oracle-instantclient19.9-basic \ tom@9734: oracle-instantclient19.9-devel tom@9734: RUN yum-config-manager --disable oracle*,ol7* tom@9734: tom@9734: # Install MapServer tom@9734: WORKDIR /opt/mapserver tom@9734: RUN curl -s https://download.osgeo.org/mapserver/mapserver-6.0.6.tar.gz | tar xz tom@9734: WORKDIR mapserver-6.0.6 tom@9734: RUN sed -i "s@oracle/10\*/client@oracle/19.9/client64@g" configure tom@9734: RUN ./configure -q --with-proj --with-postgis --with-oraclespatial=/usr \ tom@9734: CFLAGS=-w CXXFLAGS=-w tom@9734: RUN make -s tom@9734: WORKDIR /opt/mapserver tom@9734: RUN ln -s mapserver-6.0.6/mapserv tom@9734: tom@9734: # Volume to share mapfiles with artifact server. tom@9734: # Has to be the same path as in artifact server container because mapfiles tom@9734: # contain absolute paths. tom@9734: VOLUME /opt/d4e/bin tom@9734: tom@9734: # CGI scripts tom@9749: ADD mapserver/cgi-bin /var/www/cgi-bin tom@9734: tom@9734: # httpd config tom@9734: ADD httpd-mapserver.conf /etc/httpd/conf.d/ tom@9734: tom@9734: CMD ["/usr/sbin/httpd", "-DFOREGROUND"]