-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
58 additions
and
16 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 |
---|---|---|
@@ -0,0 +1,27 @@ | ||
kind: pipeline | ||
name: default | ||
|
||
steps: | ||
- name: docker | ||
image: plugins/docker | ||
settings: | ||
username: | ||
from_secret: DOCKER_USERNAME | ||
password: | ||
from_secret: DOCKER_PASSWORD | ||
repo: dockage/mailcatcher | ||
auto_tag: true | ||
|
||
--- | ||
kind: pipeline | ||
name: notify | ||
|
||
steps: | ||
- name: microbadger | ||
image: plugins/webhook | ||
settings: | ||
urls: | ||
- https://hooks.microbadger.com/images/dockage/mailcatcher/dmME0uDiXOdm6UrV7n5aXWJBgDM= | ||
|
||
depends_on: | ||
- default |
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,21 @@ | ||
FROM dockage/alpine:3.5 | ||
MAINTAINER Mohammad Abdoli Rad <m.abdolirad@gamil.com> | ||
FROM dockage/alpine:3.9 | ||
|
||
ENV MAILCATCHER_VERSION=0.6.5 | ||
ENV MAILCATCHER_VERSION=0.7.1 | ||
|
||
RUN apk update \ | ||
&& apk --no-cache add g++ make ruby2.2 ruby2.2-dev ruby2.2-json sqlite-dev \ | ||
&& gem2.2 install mailcatcher:${MAILCATCHER_VERSION} --no-ri --no-rdoc \ | ||
&& apk del g++ make \ | ||
&& rm -rf /var/cache/apk/* | ||
LABEL maintainer="m.abdolirad@gmail.com" \ | ||
org.label-schema.name="mailcatcher" \ | ||
org.label-schema.vendor="Dockage" \ | ||
org.label-schema.description="MailCatcher runs a super simple SMTP server which catches any message sent to it to display in a web interface." \ | ||
org.label-schema.version="${MAILCATCHER_VERSION}" \ | ||
org.label-schema.license="MIT" | ||
|
||
RUN apk --no-cache --update add g++ make ruby ruby-dev ruby-json ruby-etc sqlite-dev \ | ||
&& gem install mailcatcher:${MAILCATCHER_VERSION} --no-ri --no-rdoc \ | ||
&& apk del g++ make | ||
|
||
EXPOSE 1025 1080 | ||
|
||
ENTRYPOINT ["mailcatcher", "-f"] | ||
CMD ["--ip", "0.0.0.0"] | ||
COPY assets/root/ / | ||
|
||
ENTRYPOINT ["entrypoint"] | ||
CMD ["mailcatcher", "-f", "--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
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 |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# first arg is `-f` or `--some-option` | ||
if [ "${1#-}" != "$1" ]; then | ||
set -- mailcatcher -f --ip 0.0.0.0 "$@" | ||
fi | ||
|
||
exec "$@" |
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,9 +1,9 @@ | ||
version: '2' | ||
version: "3" | ||
|
||
services: | ||
mailcatcher: | ||
restart: always | ||
image: dockage/mailcatcher:0.6.5 | ||
restart: on-failure:10 | ||
image: dockage/mailcatcher:0.7.1 | ||
ports: | ||
- "1080:1080" | ||
- "1025:1025" |