Initial commit

This commit is contained in:
Jaysen 2017-08-26 17:04:06 -06:00
commit 00698d51a0
2 changed files with 28 additions and 0 deletions

19
.gitlab-ci.yml Normal file
View file

@ -0,0 +1,19 @@
image: docker:latest
variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME
stages:
- build
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
build-master:
stage: build
script:
- docker build --pull --no-cache -t $IMAGE_TAG .
- docker push $IMAGE_TAG
only:
- master

9
Dockerfile Normal file
View file

@ -0,0 +1,9 @@
FROM ruby:2.3
RUN gem install mailcatcher --no-rdoc --no-ri
# smtp (25) and ip (80) ports
EXPOSE 25 1080
CMD ["mailcatcher", "--smtp-ip=0.0.0.0", "--smtp-port=25", "--http-ip=0.0.0.0", "--http-port=1080", "-f"]