############################################################################## # Dockerfile to build postgres for LINDAT Dspace container # Based on Postgres ############################################################################## FROM postgres:9.6 ARG LABEL_VERSION ARG LABEL_BUILD_DATE ARG LABEL_VCS_URL="https://gitlab.inf.unibz.it/commul/docker/clarin-dspace" LABEL maintainer="Alexander König <Alexander.Koenig@eurac.edu>" \ maintainer="Egon W. Stemle <egon.stemle@eurac.edu>" \ org.label-schema.vcs-url=$LABEL_VCS_URL # install git RUN apt-get update && apt-get -y install git # copy int db script RUN mkdir -p /docker-entrypoint-initdb.d COPY commul-customization/init-dspace-dbs.sh /docker-entrypoint-initdb.d/ RUN chmod +x /docker-entrypoint-initdb.d/* # copy over modified config file #COPY commul-customization/postgresql.conf /tmp/ #COPY commul-customization/updateConfig.sh /docker-entrypoint-initdb.d/_updateConfig.sh # copy script generating utilities db RUN mkdir /tmp/sql/ COPY adapt_utilities_sql.sh /tmp/sql/ RUN /tmp/sql/adapt_utilities_sql.sh LABEL org.label-schema.version=$LABEL_VERSION \ org.label-schema.build-date=$LABEL_BUILD_DATE