https://github.com/cycloidio/docker-image-mailslurper
Dockerized MailsSlurper
https://github.com/cycloidio/docker-image-mailslurper
docker email mailslurper smtp
Last synced: over 1 year ago
JSON representation
Dockerized MailsSlurper
- Host: GitHub
- URL: https://github.com/cycloidio/docker-image-mailslurper
- Owner: cycloidio
- License: mit
- Created: 2018-09-27T11:41:27.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-18T07:40:30.000Z (about 7 years ago)
- Last Synced: 2025-01-11T06:13:21.721Z (over 1 year ago)
- Topics: docker, email, mailslurper, smtp
- Language: Dockerfile
- Size: 8.79 KB
- Stars: 1
- Watchers: 8
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Docker Image MailSlurper
This repository contains a _Dockerfile_ to create a docker image of the [MailSlurper, a small SMTP mail server useful for testing, and other purposes](https://github.com/mailslurper/mailslurper).
The repository also contains a _Makefile_ to just wrap the most used commands into _makefile targets_, like build the docker image, etc.
## How to use it
The docker image executes the mailslurper by default, if you would like to execute the [createcredentials command](https://github.com/mailslurper/mailslurper/tree/master/cmd/createcredentials) then rewrite the CMD instruction with `docker run`.
_Mailslurper_ is configured through a configuration file, however it doesn't currently have any flag to specify where the configuration file is, hence it must be where the binary is executed. For achieving this with Docker you have to map a volume with the _config.json_ file to the container directory `/mailsruper` which is from where the commands are executed, for example:
`docker run -v /home/user/config.json:/mailslurper cycloid/mailslurper:{TAG}`
Where `{TAG}` is the docker tag which specifies the MailSlurper version.
## Important considerations
Currently, we decided not to push any docker image with previous versions than the last one when this repo was created nor to push any image without a docker tag (as you probably know it defaults to latest), because we believe that we should always know which version is going to be executed rather than executing one that is different depending on the time.
## License
The MIT License (MIT)
Copyright (c) 2018 [cycloid.io](https://cycloid.io)
Read the LICENSE file for more information.