From f28a742852f825b18a8b34a9bb38d219c004355b Mon Sep 17 00:00:00 2001 From: Bryan CS Date: Tue, 19 Jan 2021 23:09:30 +0800 Subject: [PATCH 1/2] chore: add Dockerfile --- Dockerfile | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..dead5bc3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM alpine:3.9.6 +LABEL maintainer="Bryan CS <@iambryancs>" + +RUN apk add --update perl curl perl-net-ssleay + +RUN curl -O https://jetmore.org/john/code/swaks/files/swaks-20201014.0/swaks + +RUN chmod +x ./swaks + +ENTRYPOINT ["./swaks"] + +CMD ["--help"] From eb97ae0423649ed1cd7bcee7481c6244b0f5d8c9 Mon Sep 17 00:00:00 2001 From: Bryan CS Date: Fri, 22 Jan 2021 12:01:25 +0800 Subject: [PATCH 2/2] Add Docker usage section --- README.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/README.md b/README.md index fe511de9..7df21df6 100644 --- a/README.md +++ b/README.md @@ -17,6 +17,25 @@ See the [installation page][installation_page] for details on installing in mult There is also a [versions page][versions_page] which lists every released version of Swaks, complete with changelogs and download links. +## Docker + +Usage: +``` +docker run --rm -ti bryancs/swaks [OPTIONS] +``` + +Example: +``` +# test +docker run --rm -ti bryancs/swaks \ + -f foo@bar.com \ + -t foo@baz.com \ + -s localhost + +# help +docker run --rm bryancs/swaks --help +``` + ## Documentation The reference documentation from the latest release, which includes quick-start examples, is available as [plain text][plain_doc] and [rendered][rendered_doc]. The documentation from each release is available from the [versions page][versions_page]. There is also an [Occasionally Asked Questions][oaq] document.