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-armhf-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-armhf-tcwg-base')
-rw-r--r-- | xenial-armhf-tcwg-base/Dockerfile | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/xenial-armhf-tcwg-base/Dockerfile b/xenial-armhf-tcwg-base/Dockerfile index 3e9f185d..bcc0fbe7 100644 --- a/xenial-armhf-tcwg-base/Dockerfile +++ b/xenial-armhf-tcwg-base/Dockerfile @@ -1,6 +1,9 @@ # Auto generated from tcwg-base/Dockerfile.in. Do not edit. FROM linaro/base-armhf-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 \ @@ -59,6 +62,7 @@ RUN (url="http://ports.ubuntu.com/ubuntu-ports/"; \ openjdk-8-jdk \ openssh-server \ python-dev \ + postfix \ pxz \ qemu-system-arm \ qemu-user \ @@ -90,7 +94,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 # We use ssh multiplexing, which creates sockets in /tmp. Overlayfs, # which docker is using, can't host sockets, so we use a scratch mount @@ -101,4 +108,4 @@ VOLUME /tmp EXPOSE 22 CMD ["linux32", "/usr/sbin/sshd", "-D"] -# checksum: b06ab45444800d7d479c7c468bcd23eb +# checksum: e6837bac26818fa466e7e2de2cda84b9 |