retrievercommunications / docker-jasperserver

Docker image for the community edition of JasperReports® Server.
https://hub.docker.com/r/retriever/jasperserver/
MIT License
45 stars 48 forks source link

Mail support #5

Open cemo opened 7 years ago

cemo commented 7 years ago

Is there an easy way to add support for email by environments variables? (By the way I am using in Kubernetes cluster your image. It is working pretty much nice.)

grange74 commented 7 years ago

I assume that you mean configuring the mail server and from address?

From what i can see this could be done by creating 6 new env vars and using them to set the following 6 properties in the default_master.properties via the current "entrypoint.sh" similarly to how the database settings are set.

quartz.mail.sender.host=mail.example.com
quartz.mail.sender.port=25
quartz.mail.sender.protocol=smtp
quartz.mail.sender.username=admin
quartz.mail.sender.password=password
quartz.mail.sender.from=admin@example.com
cemo commented 7 years ago

Yes, this is what I need. bitname docker image has a feature like this as well.

grange74 commented 7 years ago

Ok, good. I will look at implementing that when i have some free time.

Btw that's an interesting image you reference. It seems newer and a bit more sophisticated than our one. Just wondering how come you aren't using that one instead?

Also I noticed that they have a data volume for the jasperserver container itself and i was trying to look at what it stores but i couldn't see as they seem to use some custom code that is probably in another repo to do the setup.

cemo commented 7 years ago

Actually I had to use an image which was ready to connect our database instances. I found pretty much is to configure your image at that time.