Skip to content
Snippets Groups Projects
Dockerfile.postgres 1.16 KiB
Newer Older
##############################################################################
# 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>" \
egon w. stemle's avatar
egon w. stemle committed
      maintainer="Egon W. Stemle <egon.stemle@eurac.edu>" \
      org.label-schema.vcs-url=$LABEL_VCS_URL
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
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