6.4.0-r1 release

Initialize Tomcat at launch to fix application persistence
This commit is contained in:
Bitnami Bot
2017-07-11 10:39:26 +00:00
parent c15f6a329c
commit d81dbe2086
4 changed files with 31 additions and 26 deletions

View File

@@ -1,19 +1,17 @@
FROM bitnami/minideb-extras:jessie-r19
LABEL maintainer "Bitnami <containers@bitnami.com>"
# Install required system packages and dependencies
RUN install_packages libc6 libexpat1 libffi6 libfontconfig1 libfreetype6 libgcc1 libglib2.0-0 liblzma5 libncurses5 libpcre3 libpng12-0 libselinux1 libssl1.0.0 libstdc++6 libtinfo5 libx11-6 libxau6 libxcb1 libxdmcp6 libxext6 libxml2 zlib1g
RUN bitnami-pkg install java-1.8.0_121-0 --checksum 2743f753fd1ea88bf90352d95694f89ab0a0fb855cf0d1c7b2a6d92835f9ad27
RUN bitnami-pkg install tomcat-8.0.44-0 --checksum eb24b14dd7061bad4ab9a311838c911419b4b61c8c5c13aedf06a7a29305b426
RUN bitnami-pkg install mysql-client-10.1.24-0 --checksum 3ac33998eefe09a8013036d555f2a8265fc446a707e8d61c63f8621f4a3e5dae
RUN install_packages libc6 libffi6 libgcc1 libglib2.0-0 liblzma5 libncurses5 libpcre3 libselinux1 libssl1.0.0 libstdc++6 libtinfo5 libx11-6 libxau6 libxcb1 libxdmcp6 libxext6 libxml2 zlib1g
RUN bitnami-pkg install java-1.8.131-0 --checksum 5b122a36c8ba44e2f9eb8cbb9b62dd87963742c46f85a04019115d2d43c69e33
RUN bitnami-pkg unpack tomcat-8.0.45-0 --checksum 60daf4854d9db0cb2bbe65510b25a6f861f59374eeaef27d8e7b8ce3faa76b01
RUN bitnami-pkg install mysql-client-10.1.25-0 --checksum 513ef36ab1efa5570332547c2027ae29886fe4bb56472de11ca083423a3fe366
RUN bitnami-pkg unpack jasperreports-6.4.0-0 --checksum f95828097c78efaf18166eeb0999ace6204beeb33168a0da1f604dbc87063b7c
COPY rootfs /
ENV BITNAMI_APP_NAME="jasperreports" \
BITNAMI_IMAGE_VERSION="6.4.0-r0" \
BITNAMI_IMAGE_VERSION="6.4.0-r1" \
JASPERREPORTS_EMAIL="user@example.com" \
JASPERREPORTS_PASSWORD="bitnami" \
JASPERREPORTS_USERNAME="user" \
@@ -27,10 +25,12 @@ ENV BITNAMI_APP_NAME="jasperreports" \
SMTP_PASSWORD="" \
SMTP_PORT="" \
SMTP_PROTOCOL="" \
SMTP_USER=""
SMTP_USER="" \
TOMCAT_AJP_PORT_NUMBER="8009" \
TOMCAT_ALLOW_REMOTE_MANAGEMENT="0" \
TOMCAT_HTTP_PORT_NUMBER="8080" \
TOMCAT_SHUTDOWN_PORT_NUMBER="8005" \
TOMCAT_USERNAME="user"
EXPOSE 8080 8443

View File

@@ -7,7 +7,7 @@ print_welcome_page
check_for_updates &
if [[ "$1" == "nami" && "$2" == "start" ]] || [[ "$1" == "/init.sh" ]]; then
nami_initialize jasperreports
nami_initialize tomcat jasperreports
info "Starting jasperreports... "
fi

View File

@@ -0,0 +1,7 @@
{
"ajpPort": "{{$global.env.TOMCAT_AJP_PORT_NUMBER}}",
"allowRemoteManagement": "{{$global.env.TOMCAT_ALLOW_REMOTE_MANAGEMENT}}",
"httpPort": "{{$global.env.TOMCAT_HTTP_PORT_NUMBER}}",
"shutdownPort": "{{$global.env.TOMCAT_SHUTDOWN_PORT_NUMBER}}",
"username": "{{$global.env.TOMCAT_USERNAME}}"
}

View File

@@ -2,9 +2,9 @@
[![Slack](https://img.shields.io/badge/slack-join%20chat%20%E2%86%92-e01563.svg)](http://slack.oss.bitnami.com)
[![Kubectl](https://img.shields.io/badge/kubectl-Available-green.svg)](https://raw.githubusercontent.com/bitnami/bitnami-docker-jasperreports/master/kubernetes.yml)
# What is JasperReports?
# What is JasperReports Server?
> The JasperReports server can be used as a stand-alone or embedded reporting and BI server that offers web-based reporting, analytic tools and visualization, and a dashboard feature for compiling multiple custom views. JasperReports supports multiple data sources including Hadoop Hive, JSON data sources, Excel, XML/A, Hibernate and more. You can create reports with their WYSIWYG tool and build beautiful visualizations, charts and graphs.
> The JasperReports Server can be used as a stand-alone or embedded reporting and BI server that offers web-based reporting, analytic tools and visualization, and a dashboard feature for compiling multiple custom views. JasperReports Server supports multiple data sources including Hadoop Hive, JSON data sources, Excel, XML/A, Hibernate and more. You can create reports with their WYSIWYG tool and build beautiful visualizations, charts and graphs.
http://community.jaspersoft.com/project/jasperreports-server
@@ -43,7 +43,7 @@ To run this application you need Docker Engine 1.10.0. Docker Compose is recomen
## Run the application using Docker Compose
This is the recommended way to run JasperReports. You can use the following docker compose template:
This is the recommended way to run JasperReports Server. You can use the following docker compose template:
```yaml
version: '2'
@@ -84,7 +84,7 @@ If you want to run the application manually instead of using docker-compose, the
$ docker network create jasperreports-tier
```
2. Run the JasperReports container:
2. Run the JasperReports Server container:
```bash
$ docker run -d -p 80:8080 --name jasperreports --net=jasperreports-tier bitnami/jasperreports
@@ -105,7 +105,7 @@ If you remove the container all your data and configurations will be lost, and t
For persistence you should mount a volume at the `/bitnami` path. Additionally you should mount a volume for [persistence of the MariaDB data](https://github.com/bitnami/bitnami-docker-mariadb#persisting-your-database).
The above examples define docker volumes namely `mariadb_data` and `jasperreports_data`. The JasperReports application state will persist as long as these volumes are not removed.
The above examples define docker volumes namely `mariadb_data` and `jasperreports_data`. The JasperReports Server state will persist as long as these volumes are not removed.
To avoid inadvertent removal of these volumes you can [mount host directories as data volumes](https://docs.docker.com/engine/tutorials/dockervolumes/). Alternatively you can make use of volume plugins to host the volume data.
@@ -147,7 +147,7 @@ In this case you need to specify the directories to mount on the run command. Th
bitnami/mariadb:latest
```
3. Create the JasperReports container with host volume:
3. Create the JasperReports Server container with host volume:
```bash
$ docker run -d --name jasperreports -p 80:8080 \
@@ -158,7 +158,7 @@ In this case you need to specify the directories to mount on the run command. Th
# Upgrade this application
Bitnami provides up-to-date versions of JasperReports, including security patches, soon after they are made upstream. We recommend that you follow these steps to upgrade your container. We will cover here the upgrade of the JasperReports container.
Bitnami provides up-to-date versions of JasperReports Server, including security patches, soon after they are made upstream. We recommend that you follow these steps to upgrade your container. We will cover here the upgrade of the JasperReports Server container.
1. Get the updated images:
@@ -216,16 +216,14 @@ When you start the jasperreports image, you can adjust the configuration of the
Available variables:
- `JASPERREPORTS_USERNAME`: JasperReports admin username. Default: **user**
- `JASPERREPORTS_PASSWORD`: JasperReports admin password. Default: **bitnami**
- `JASPERREPORTS_EMAIL`: JasperReports admin email. Default: **user@example.com**
- `JAVA_HOME`: Java home directory.
- `JAVA_OPTS`: Java settings.
- `CATALINA_OPTS`: Java settings applied to catalina `start` and `run` only.
- `JASPERREPORTS_USERNAME`: JasperReports Server admin username. Default: **user**
- `JASPERREPORTS_PASSWORD`: JasperReports Server admin password. Default: **bitnami**
- `JASPERREPORTS_EMAIL`: JasperReports Server admin email. Default: **user@example.com**
### SMTP Configuration
To configure JasperReports to send email using SMTP you can set the following environment variables:
To configure JasperReports Server to send email using SMTP you can set the following environment variables:
- `SMTP_HOST`: SMTP host.
- `SMTP_PORT`: SMTP port.
- `SMTP_EMAIL`: SMTP email.