Skip to content

Commit

Permalink
More resillient builds
Browse files Browse the repository at this point in the history
It turns out that builds cannot be predictable - different accounts
were assigned by different build systems. Consequentially we install
each tool separately.
  • Loading branch information
bokysan committed Feb 19, 2019
1 parent 38d7627 commit a1cffc6
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,12 @@ ENV MESSAGE_SIZE_LIMIT=
ENV INBOUND_DEBUGGING=

# Install supervisor, postfix
# Install postfix first to get the first account (101)
# Install opendkim second to get the second account (102)
RUN true && \
apk add --no-cache --update postfix ca-certificates tzdata supervisor rsyslog opendkim && \
apk add --no-cache postfix && \
apk add --no-cache opendkim && \
apk add --no-cache ca-certificates tzdata supervisor rsyslog && \
apk add --no-cache --upgrade musl musl-utils && \
(rm "/tmp/"* 2>/dev/null || true) && (rm -rf /var/cache/apk/* 2>/dev/null || true)

Expand Down
4 changes: 2 additions & 2 deletions supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ command = /opendkim.sh
user = opendkim
autostart = true
autorestart = true
startsecs = 2
stopwaitsecs = 2
startsecs = 5
stopwaitsecs = 5
stdout_logfile = /dev/stdout
stderr_logfile = /dev/stderr
stdout_logfile_maxbytes = 0
Expand Down

0 comments on commit a1cffc6

Please sign in to comment.