Narimm / docker-jasperserver

Docker image for the community edition of JasperReports® Server.

Home Page:https://hub.docker.com/r/retriever/jasperserver/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JasperReports Server CE Edition Docker Container

The Docker Image aims to quickly get up-and-running a JasperReports Server for a development environment.

(Fork from https://github.com/retrievercommunications/docker-jasperserver.git to use version 8.0.2)

Start the Container

Using Command Line

To start the JasperServer container you'll need to pass in 5 environment variables and link it to either a MySQL or Postgres container.

E.g. 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

If you haven't got an existing MySQL or Postgres container then you can easily create one: docker run -d --name jasperserver_mysql -e MYSQL_ROOT_PASSWORD=mysql mysql:5.7

Using Docker-compose

To start up the JasperServer and a MySQL container:

  • Run docker-compose up to run in foreground or
  • Run docker-compose up -d to run as in daemon mode.

To stop the containers run docker-compose stop and docker-compose start to restart them.

Note: To install Docker-compose see the releases page.

Login to JasperReports Web

  1. Go to URL http://${dockerHost}:8080/
  2. Login using credentials: jasperadmin/jasperadmin

Image Features

This image includes:

How to build this image

Use docker build -t tobe81cwb/jasperserver .

See comments in Dockerfile to speed up testing by not having to download the jasperserver release each time.

Troubleshooting

If you are having problems starting the containers because of a MySQL error like "[ERROR] [FATAL] Innodb: Table flags are 0...", then you will need to delete the data_dir which contains the MySQL database and then recreate the containers. Please note that you will lose any data previously stored in the database.

About

Docker image for the community edition of JasperReports® Server.

https://hub.docker.com/r/retriever/jasperserver/

License:MIT License


Languages

Language:Shell 72.8%Language:Dockerfile 27.2%