Skip to content

cycloidio/docker-image-mailslurper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

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 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

Read the LICENSE file for more information.