Giter VIP home page Giter VIP logo

mlr-notification-service's Introduction

MLR-Notification-Service

Build Status Coverage Status

MLR Service to Email Processing Result Notifications to Users

Running the Application

Copy the application-test.yml file from the project root directory to an "application.yml" file also at the project root directory and change the values as needed. Open a terminal and cd to the project root directory. Within this directory run

mvn spring-boot:run

and then the application will launch and be available at http://localhost:8080/swagger-ui.html

Using Docker

This docker image is designed to be used with Docker Swarm and as such it uses Docker Secrets for passing in configuration.

Building the Image

The docker image is built using a jar version that has been uploaded to the CIDA artifactory. The artifact version needs to be provided as follows:

% docker build --mlr-version=0.1-SNAPSHOT .

Creating the Docker Service

On the docker manager of your swarm you can create the service to run this application by running a command such as (where mlr_notification is the name of the built image):

docker service create --name mlrnotification --publish 8080:8080 --secret source=mlr_email_config,target=application.yml --env MLR_NOTIFICATION_EMAIL_FROM="[email protected]" --env MLR_NOTIFICATION_EMAIL_TEXT="Hello" --env MLR_NOTIFICATION_EMAIL_HOST=localhost --env MLR_NOTIFICATION_EMAIL_PORT=25 --env MLR_NOTIFICATION_SERVICE_PWD="test"

Environment Variables

  • MLR_NOTIFICATION_EMAIL_FROM - The email address to send emails from this service as. I.E: The from address for emails generated by this service.

  • MLR_NOTIFICATION_EMAIL_HOST - The host address of the smtp server to connect to

  • MLR_NOTIFICATION_EMAIL_PORT - The port of the smtp server to connect to

  • MLR_NOTIFICATION_SERVICE_PWD - The default user account password

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.