Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ RUN apt-get update && \
libconfig-properties-perl \
vim \
python3-lxml && \
mkfifo /var/spool/postfix/public/pickup && \
ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

COPY dspace/src/main/docker/cron/postfix.sh /usr/local/bin/postfix.sh
# End UMD Customization
# On startup, run DSpace Runnable JAR
ENTRYPOINT ["java", "-jar", "webapps/server-boot.jar", "--dspace.dir=$DSPACE_INSTALL"]
17 changes: 17 additions & 0 deletions dspace/src/main/docker/cron/postfix.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
#!/bin/bash
#
# The contents of this file are subject to the license and copyright
# detailed in the LICENSE and NOTICE files at the root of the source
# tree and available online at
#
# http://www.dspace.org/license/
#

# Prepare Postfix directories and start Postfix
mkdir -p /var/spool/postfix/etc
cp /etc/resolv.conf /var/spool/postfix/etc/
cp /etc/nsswitch.conf /var/spool/postfix/etc/
cp /etc/hosts /var/spool/postfix/etc/
chown -R postfix:postfix /var/lib/postfix/
chmod 755 /var/spool/postfix/ /var/lib/postfix/
postfix start