diff options
author | Christophe Lyon <christophe.lyon@linaro.org> | 2018-02-21 14:57:33 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2018-02-21 16:09:59 +0000 |
commit | 807c4f8aea604789378413d1101e935e27340e1a (patch) | |
tree | 38e0ed05c45837dd02ad796cf5d9db58e4e41fe9 /xenial-amd64-tcwg-base | |
parent | 72f2005ca76f15df01f53a42639feda52ee01994 (diff) |
tcwg*base: Add postfix package, with sample configuration.
The configuration needs to be patched at runtime with the right
user/password, provided by Jenkins master.
Change-Id: I3b1d312f65be5c1b30bc9b5d9c42e051a6c19d36
Diffstat (limited to 'xenial-amd64-tcwg-base')
-rw-r--r-- | xenial-amd64-tcwg-base/Dockerfile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/xenial-amd64-tcwg-base/Dockerfile b/xenial-amd64-tcwg-base/Dockerfile index 1e142461..e6b67520 100644 --- a/xenial-amd64-tcwg-base/Dockerfile +++ b/xenial-amd64-tcwg-base/Dockerfile @@ -1,6 +1,9 @@ # Auto generated from tcwg-base/Dockerfile.in. Do not edit. FROM ubuntu:xenial +COPY postfix-main.cf.in . +COPY postfix-sasl_passwd.in . + RUN (url="http://archive.ubuntu.com/ubuntu/"; \ ubuntu=xenial; \ for i in $ubuntu $ubuntu-updates $ubuntu-backports $ubuntu-security; do \ @@ -66,6 +69,7 @@ RUN (url="http://archive.ubuntu.com/ubuntu/"; \ openssh-server \ pkg-config \ python-dev \ + postfix \ pxz \ qemu-system-arm \ qemu-user \ @@ -98,7 +102,10 @@ 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 + && 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 RUN mkdir /tmp/docker-install-qemu.$$ \ && cd /tmp/docker-install-qemu.$$ \ @@ -118,4 +125,4 @@ VOLUME /tmp EXPOSE 22 CMD ["/usr/sbin/sshd", "-D"] -# checksum: b048f4cdebd3a12b888fee872c3ec4cd +# checksum: ef2291e71ee3040f87bfaa9e6074a93c |