[PATCH v3 compass-ci 4/6] fetch-mail: Dockerfile

Signed-off-by: Luan Shengde <shdluan@163.com> --- container/fetch-mail/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 container/fetch-mail/Dockerfile diff --git a/container/fetch-mail/Dockerfile b/container/fetch-mail/Dockerfile new file mode 100644 index 0000000..7be6b21 --- /dev/null +++ b/container/fetch-mail/Dockerfile @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. + +FROM centos +MAINTAINER Luan Shengde <shdluan@163.com> +ENV DEBIAN_FRONTEND noninteractive + +RUN useradd -u 2002 mailer +RUN yum update -y +RUN yum install -y procmail fetchmail + +COPY fetchmailrc.template /home/mailer/.fetchmailrc +COPY procmailrc.template /home/mailer/.procmailrc +COPY run.sh /home/mailer/ + +RUN chmod 600 /home/mailer/.fetchmailrc +RUN chmod 600 /home/mailer/.procmailrc +RUN chown -R mailer:mailer /home/mailer -- 2.23.0

On Wed, Dec 16, 2020 at 10:29:45AM +0800, Luan Shengde wrote:
Signed-off-by: Luan Shengde <shdluan@163.com> --- container/fetch-mail/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 container/fetch-mail/Dockerfile
diff --git a/container/fetch-mail/Dockerfile b/container/fetch-mail/Dockerfile new file mode 100644 index 0000000..7be6b21 --- /dev/null +++ b/container/fetch-mail/Dockerfile @@ -0,0 +1,18 @@ +# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. + +FROM centos
which version centos all ok?choose a version that you have test more better.
+MAINTAINER Luan Shengde <shdluan@163.com> +ENV DEBIAN_FRONTEND noninteractive
DEBIAN_FRONTEND is necessary in centos?
+RUN yum update -y +RUN yum install -y procmail fetchmail
can write like this RUN yum update -y && \ yum install -y procmail fetchmail
+COPY fetchmailrc.template /home/mailer/.fetchmailrc +COPY procmailrc.template /home/mailer/.procmailrc +COPY run.sh /home/mailer/
ditto
+ +RUN chmod 600 /home/mailer/.fetchmailrc +RUN chmod 600 /home/mailer/.procmailrc +RUN chown -R mailer:mailer /home/mailer
ditto Thanks, Yinsi
2.23.0

+# SPDX-License-Identifier: MulanPSL-2.0+ +# Copyright (c) 2020 Huawei Technologies Co., Ltd. All rights reserved. + +FROM centos
which version centos all ok?choose a version that you have test more better.
OK, I will add the version Thanks, Luan Shengde
+MAINTAINER Luan Shengde <shdluan@163.com> +ENV DEBIAN_FRONTEND noninteractive
DEBIAN_FRONTEND is necessary in centos?
+RUN yum update -y +RUN yum install -y procmail fetchmail
can write like this
RUN yum update -y && \ yum install -y procmail fetchmail
+COPY fetchmailrc.template /home/mailer/.fetchmailrc +COPY procmailrc.template /home/mailer/.procmailrc +COPY run.sh /home/mailer/
ditto
+ +RUN chmod 600 /home/mailer/.fetchmailrc +RUN chmod 600 /home/mailer/.procmailrc +RUN chown -R mailer:mailer /home/mailer
ditto
Thanks, Yinsi
2.23.0
participants (2)
-
Liu Yinsi
-
Luan Shengde