Wednesday, September 27, 2017

Jasper Server in Docker

One of the functionality in our system is can able to generate a report using Jasper report.  We have a Jasper server setup in another ip address.  I was wondering how they set up the server but there is no chance to know how exactly they configure it.

So I pop up the browser trying to get some luck if there's an image from docker for Jasper and voila, there is!

https://github.com/retrievercommunications/docker-jasperserver

It's very simple setup

docker run -d --name jasperserver -e DB_TYPE=mysql -e DB_HOST=db -e DB_PORT=3306 -e DB_USER=root -e DB_PASSWORD=mysql --link jasperserver_mysql:db -p 8080:8080 retriever/jasperserver

but since we are using Postgres, I changed some parameters.

docker run -d --name jasperserver -e DB_TYPE=postgresql -e DB_HOST=db -e DB_PORT=5432 -e DB_USER=admin -e DB_PASSWORD=admin --link postgres9.3:db -p 8080:8080 retriever/jasperserver




Eureka!



No comments:

Post a Comment

free online comma separating tool

https://delim.co/#