This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit 1c1720278da57af1e05c9ad4158c95f594da366f Author: Rene Cordier <[email protected]> AuthorDate: Wed Aug 21 18:04:43 2019 +0700 JAMES-2867 Simple dockerization of mock smtp server app --- server/mailet/mock-smtp-server/Dockerfile | 11 +++++++++++ server/mailet/mock-smtp-server/README.adoc | 25 +++++++++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/server/mailet/mock-smtp-server/Dockerfile b/server/mailet/mock-smtp-server/Dockerfile new file mode 100644 index 0000000..c32d51b --- /dev/null +++ b/server/mailet/mock-smtp-server/Dockerfile @@ -0,0 +1,11 @@ +FROM openjdk:8u222-jre + +# Ports that are used: +# +# 25 SMTP without authentication +# 8000 Web Admin interface +EXPOSE 25 8000 + +COPY target/mock-smtp-server.jar /root/mock-smtp-server.jar + +ENTRYPOINT [ "sh", "-c", "java -jar /root/mock-smtp-server.jar" ] diff --git a/server/mailet/mock-smtp-server/README.adoc b/server/mailet/mock-smtp-server/README.adoc new file mode 100644 index 0000000..b38ad98 --- /dev/null +++ b/server/mailet/mock-smtp-server/README.adoc @@ -0,0 +1,25 @@ +James Mock SMTP server +==================== + +This is our custom made Mock SMTP server that we use for some of our tests in James. + +== Dockerized Mock SMTP server + +Start by compiling the module: + + $ mvn clean install + +*Note* : You can add the option '-DskipTests' if you want to skip tests + +Then build the docker image: + + $ docker build -t james/mock-smtp-server . + +And run it: + + $ docker run --rm -p 25:25 -p 8000:8000 james/mock-smtp-server + +Where ports: + +* 25 : SMTP +* 8000 : HTTP interface for setting mock SMTP server behavior \ No newline at end of file --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
