Skip to content

Commit

Permalink
Second commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Tripp Donnelly committed Apr 27, 2017
1 parent c9742d2 commit 3119341
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM centos:7

RUN yum -y update && \
yum -y install epel-release && \
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-7 && \
yum -y install python34-devel postfix telnet net-tools && \
yum clean all

RUN curl https://bootstrap.pypa.io/get-pip.py | python3.4 && \
pip3 install chaperone

RUN mkdir -p /etc/chaperone.d && touch /etc/postfix/transport
COPY chaperone.conf /etc/chaperone.d/chaperone.conf

EXPOSE 25

ENTRYPOINT ["/usr/bin/chaperone"]
19 changes: 19 additions & 0 deletions chaperone.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@

setup.service: {
service_groups: INIT,
command: "/usr/sbin/postmap /etc/postfix/transport"

}

postfix.service: {
command: "/usr/sbin/postfix start",
type: "forking",
pidfile: "/var/spool/postfix/pid/master.pid",
exit_kills: true,
kill_signal: SIGINT
}

console.logging: {
selector: "*.info",
stdout: true
}

0 comments on commit 3119341

Please sign in to comment.