-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from Jean-Beru/feature/bump-0.8.0
feat(docker): Bump version 0.8.0
- Loading branch information
Showing
2 changed files
with
14 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,12 @@ | ||
FROM alpine:latest | ||
|
||
ENV VERSION 0.7.1 | ||
ENV HTTP_PORT 1080 | ||
ENV SMTP_PORT 1025 | ||
ARG VERSION=0.8.0 | ||
|
||
RUN apk add --update ruby ruby-dev ruby-etc ruby-bigdecimal sqlite sqlite-dev build-base libstdc++ ca-certificates && \ | ||
gem install json --no-ri --no-rdoc && \ | ||
gem install mailcatcher -v $VERSION --no-ri --no-rdoc && \ | ||
gem install json --no-document && \ | ||
gem install mailcatcher -v $VERSION --no-document && \ | ||
apk del --purge ruby-dev build-base && \ | ||
rm -rf /var/cache/apk/* | ||
|
||
EXPOSE $SMTP_PORT $HTTP_PORT | ||
|
||
CMD mailcatcher -f --ip=0.0.0.0 --smtp-port=$SMTP_PORT --http-port=$HTTP_PORT | ||
ENTRYPOINT ["mailcatcher", "--foreground"] | ||
CMD ["--ip", "0.0.0.0"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,17 @@ | ||
Mailcatcher | ||
=========== | ||
# Mailcatcher | ||
|
||
[Mailcatcher](http://mailcatcher.me) catches mail and serves it through a dream. | ||
|
||
Run with : `docker run -d -p 1025:1025 -p 1080:1080 --name mailcatcher jeanberu/mailcatcher` | ||
|
||
Deliver mails to smtp://127.0.0.1:1025 et check out [http://127.0.0.1:1080]() to see them. | ||
Deliver mails to `smtp://127.0.0.1:1025` and check out [http://127.0.0.1:1080]() to see them. | ||
|
||
Environment variables | ||
--------------------- | ||
**SMTP_PORT** Change default SMTP port (default: 1025) | ||
## Change default arguments | ||
|
||
**HTTP_PORT** Change default HTTP port (default: 1080) | ||
To change options, replace Docker image default command. You can see option list | ||
[here](https://github.com/sj26/mailcatcher#command-line-options). | ||
|
||
Example: `docker run -d --expose 80 -p 80:80 -p 1025:1025 --name mailcatcher jeanberu/mailcatcher --ip=0.0.0.0 | ||
--http-port=80` | ||
|
||
Docker image's default options are: `--ip=0.0.0.0`. |