diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2018-02-26 15:46:46 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2018-02-26 15:52:07 +0000 |
commit | 938073e2b69a02cbae196f160719e57461dbaf9b (patch) | |
tree | a90b815d0c090586afd9bba78cc6ac9ef6add0e0 /xenial-arm64-tcwg-base | |
parent | aed1363afcfe698202f5cfd597fd8e84daaff5a4 (diff) |
tcwg-base*: Fix postfix password file path.
Change-Id: I2156b5bfd8bb9195b6b8aeeb995fbe2952436274
Diffstat (limited to 'xenial-arm64-tcwg-base')
-rw-r--r-- | xenial-arm64-tcwg-base/Dockerfile | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/xenial-arm64-tcwg-base/Dockerfile b/xenial-arm64-tcwg-base/Dockerfile index 0e078805..6d0bc791 100644 --- a/xenial-arm64-tcwg-base/Dockerfile +++ b/xenial-arm64-tcwg-base/Dockerfile @@ -1,9 +1,6 @@ # Auto generated from tcwg-base/Dockerfile.in. Do not edit. FROM linaro/base-arm64-ubuntu:xenial -COPY postfix-main.cf.in . -COPY postfix-sasl_passwd.in . - RUN (url="http://ports.ubuntu.com/ubuntu-ports/"; \ ubuntu=xenial; \ for i in $ubuntu $ubuntu-updates $ubuntu-backports $ubuntu-security; do \ @@ -94,10 +91,13 @@ RUN install -D -p -m0755 /usr/share/doc/git/contrib/workdir/git-new-workdir /usr -e "/.*MaxStartups.*/d" \ -e "/.*MaxSesssions.*/d" /etc/ssh/sshd_config \ && echo "MaxStartups 256" >> /etc/ssh/sshd_config \ - && echo "MaxSessions 256" >> /etc/ssh/sshd_config \ - && cp postfix-main.cf.in /etc/postfix/main.cf \ - && mkdir -p /etc/postfix/sasl_password \ - && cp postfix-sasl_passwd.in /etc/postfix/sasl_password/sasl_password + && echo "MaxSessions 256" >> /etc/ssh/sshd_config + +COPY postfix-main.cf.in /etc/postfix/main.cf +COPY postfix-sasl_password.in /etc/postfix/sasl_password + +RUN chown root:root /etc/postfix/sasl_password \ + && chmod 600 /etc/postfix/sasl_password # We use ssh multiplexing, which creates sockets in /tmp. Overlayfs, # which docker is using, can't host sockets, so we use a scratch mount @@ -108,4 +108,4 @@ VOLUME /tmp EXPOSE 22 CMD ["/usr/sbin/sshd", "-D"] -# checksum: dc6823c6cf2d916bb11cad3651245097 +# checksum: e39f014cabd5533a4233e7e93df29b58 |