You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: jaspersoft-containers/Docker/jrs/README.md
+65-33
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@
7
7
-[Repository Structure](#repository-structure)
8
8
-[Installer Setup](#installer-setup)
9
9
-[Docker Build and Run Time Environment Variables](#docker-build-and-run-time-environment-variables)
10
-
-[Building the Images ](#building-the-images)
10
+
-[Building the Images ](#building-the-images)
11
11
-[Using Docker Compose](#using-docker-compose)
12
12
-[Using Docker Build](#using-docker-build)
13
13
-[Keystore Generation](#keystore-generation)
@@ -17,6 +17,7 @@
17
17
-[Using Docker Compose](#using-docker-compose-1)
18
18
-[Using Docker Run](#using-docker-run-1)
19
19
-[Deploying the TIBCO JasperReports® Server Application](#deploying-the-tibco-jasperreports-server-application)
20
+
-[Install JasperReports® Server license](#install-jasperreports-server-license)
20
21
-[Using Docker Compose](#using-docker-compose-2)
21
22
-[Using Docker Run](#using-docker-run-2)
22
23
-[Deploying the Application in Cluster Mode](#deploying-the-application-in-cluster-mode)
@@ -35,6 +36,8 @@ This distribution includes Dockerfile and supporting files for building, configu
35
36
1. Git
36
37
1. TIBCO JasperReports® Server
37
38
39
+
# Step-by-step Guide to deploy TIBCO JasperReports® Server on Docker
40
+
To deploy TIBCO JasperReports® Server Cluster from scratch using **docker compose**, you can follow instructions at [Deploying JasperReports Server and Scalable Query Engine](#deploying-jasperreports-server-and-scalable-query-engine)
38
41
39
42
# Repository Structure
40
43
@@ -53,10 +56,9 @@ This distribution includes Dockerfile and supporting files for building, configu
53
56
# Installer Setup
54
57
55
58
1. Run `cd <YOUR_SYSTEM_DIR>`.
56
-
1. Clone the js-docker repository to the current directory.
@@ -69,13 +71,13 @@ These variables are passed to the command line with `--build-arg` for docker bui
69
71
|INSTALL_CHROMIUM| Whether Chromium installed. **Note: TIBCO Software Inc. is not liable for license violation of chromium.**| false|
70
72
|JASPERREPORTS_SERVER_APP_IMAGE_NAME| Name of the TIBCO JasperReports® Server image | jasperserver-webapp|
71
73
|JASPERREPORTS_SERVER_BUILDOMATIC_IMAGE_NAME| Name of the TIBCO JasperReports® Server buildomatic image | jasperserver-buildomatic|
72
-
|JASPERREPORTS_SERVER_VERSION|Version number of TIBCO JasperReports® Server|8.0.2|
73
-
|JASPERREPORTS_SERVER_APP_IMAGE_TAG|Image tag of the TIBCO JasperReports® Server web app |8.0.2|
74
-
|JASPERREPORTS_SERVER_BUILDOMATIC_IMAGE_TAG|Image tag of the TIBCO JasperReports® Server buildomatic |8.0.2|
74
+
|JASPERREPORTS_SERVER_VERSION|Version number of TIBCO JasperReports® Server|8.1.0|
75
+
|JASPERREPORTS_SERVER_APP_IMAGE_TAG|Image tag of the TIBCO JasperReports® Server web app |8.1.0|
76
+
|JASPERREPORTS_SERVER_BUILDOMATIC_IMAGE_TAG|Image tag of the TIBCO JasperReports® Server buildomatic |8.1.0|
75
77
|TOMCAT_BASE_IMAGE|Tomcat Docker image certified for the version of TIBCO JasperReports® Server being deployed based on Debian and Amazon Linux 2. It is of two types "tomcat:9.0.54-jdk11-openjdk" for Debian and "tomcat:9.0.54-jdk11-corretto" for Amazon Linux 2 |tomcat:9.0.54-jdk11-openjdk|
76
78
|JDK_BASE_IMAGE|Java Docker image certified for the version of TIBCO JasperReports® Server being deployed based on Debian and Amazon Linux 2. It is of two types openjdk:11-jdk and amazoncorretto:11|openjdk:11-jdk|
77
79
RELEASE_DATE|Release date of TIBCO JasperReports® Server | May 13, 2022 |
78
-
|JS_INSTALL_TARGETS| Used for repository setup, import, and export. Provides all the lists of ANT targets to perform any buildomatic action in TIBCO JasperReports® Server. See the TIBCO JasperReports® Server documentation for more information. |gen-config pre-install-test-pro prepare-all-pro-dbs-normal|
80
+
|JS_INSTALL_TARGETS| Used for repository setup, import, and export. Provides all the lists of ANT targets to perform any buildomatic action in TIBCO JasperReports® Server. For more information, see the TIBCO JasperReports® Server documentation . |gen-config pre-install-test-pro prepare-all-pro-dbs-normal|
79
81
80
82
# Building the Images
81
83
`cd <CONTAINER_PATH>/jaspersoft-containers/Docker/jrs` and update the `.env` file and `./resources/default-properties/default_master.properties`
@@ -87,6 +89,7 @@ In case if an external repository database already exists and loaded, then updat
87
89
88
90
If you plan to use repository database in the container, then **dbHost** can be set to:
89
91
- host.docker.internal - in case of using docker desktop
92
+
- repository - in case of using docker compose (host should be the same as service name in docker-compose.yml)
90
93
- repository-postgresql.default.svc.cluster.local - when PostgreSQL is installed in k8s cluster
91
94
92
95
### Chromium Configuration
@@ -113,11 +116,18 @@ If you see the Chromium issue in TIBCO JasperReports® Server using Docker deplo
### JasperReports® Server and Buildomatic customization
120
+
If you plan to work with **default** JasperReports® Server and buildomatic setup, you can skip this step. In case if you want to apply certain configurations or customizations, for example, changing some settings in `jasperserver-pro/WEB-INF/classes/jasperreports.properties` or some `jasperserver-pro/WEB-INF/applicationContext-*` files, refer to:
@@ -133,12 +143,12 @@ If you see the Chromium issue in TIBCO JasperReports® Server using Docker deplo
133
143
1. Go to `cd <CONTAINER_PATH>/jasperreports-server-pro-<JRS_VERSION>-bin/buildomatic`.
134
144
1. Copy the `sample_conf/postgresql_master.properties` to `default_master.properties`.
135
145
1. Add `appServerType=skipAppServerCheck` to `default_master.properties` and comment out `appServerType = tomcat`.
136
-
1. Run `./js-ant gen-config`and keystorewill generate in USER_HOME dir with **.jrsks and .jrsksp** name.
146
+
1. Run `./js-ant gen-config`, as the result keystore and keystore-properties files will be generated in `USER_HOME` dir with **.jrsks and .jrsksp** name.
137
147
1. Copy the keystore to `<CONTAINER_PATH>/jaspersoft-containers/Docker/jrs/resources/keystore`.
138
-
1.To change the permissions to 644, run `chmod -R 644 .jrs*`.
148
+
1.Change the permissions to 644 for keystore files, run `chmod -R 644 .jrs*`.
139
149
140
150
## Using Docker Run
141
-
- Buildomatic image must be created before going on to the next steps.
151
+
- Buildomatic image must be created before going to the next steps.
142
152
143
153
**Note:** This will run with root user.
144
154
@@ -150,13 +160,14 @@ If you see the Chromium issue in TIBCO JasperReports® Server using Docker deplo
150
160
151
161
- To change the keystore permission to 644, run `chmod -R 644 .jrs*`.
152
162
153
-
See the TIBCO JasperReports® Server Security Guide at [Jasperserver Official Docs](https://community.jaspersoft.com/documentation) for more information.
163
+
For more information, see the TIBCO JasperReports® Server Security Guide at [Jasperserver Official Docs](https://community.jaspersoft.com/documentation).
docker-compose run jasperserver-buildomatic (you can use the same command for the external DB Host and Docker container as DB host)
162
173
@@ -188,11 +199,15 @@ If you see the Chromium issue in TIBCO JasperReports® Server using Docker deplo
188
199
189
200
# Deploying the TIBCO JasperReports® Server Application
190
201
191
-
**It is recommended to use Docker Compose.**
202
+
## Install JasperReports® Server license
203
+
1. To install JasperReports® Server license, copy obtained license file into `<CONTAINER_PATH>/jaspersoft-containers/Docker/jrs/resources/license`.
204
+
2. Set the permissions to 644 for license file `chmod 644 <CONTAINER_PATH>/jaspersoft-containers/Docker/jrs/resources/license/jasperserver.license`.
205
+
192
206
193
207
## Using Docker Compose
208
+
**It is recommended to use Docker Compose.**
194
209
195
-
`docker-compose up -d jasperserver-webapp`(Same command for the external DB Host and Docker container as DB host )
210
+
`docker-compose up -d jasperserver-webapp` (Same command for the external DB Host and Docker container as DB host )
196
211
197
212
- Access the application by using host-name:8080/jasperserver-pro
198
213
@@ -221,24 +236,41 @@ If you see the Chromium issue in TIBCO JasperReports® Server using Docker deplo
221
236
222
237
- Wait for the application to start and access the application by using `host-name/jasperserver-pro` (port is not needed, haproxy is running on port 80).
223
238
224
-
**Note:** Although an external repository DB is used, a PostgreSQL container is created, and it does not impact TIBCO JasperReports® Server. If you don't want to create a PostgreSQL container, then remove repository dependency from jasperserver-webapp-1 and jasperserver-webapp-2 services in cluster-docker-compose.yaml
239
+
**Note:** Although an external repository DB is used, a PostgreSQL container is created, and it does not impact TIBCO JasperReports® Server. If you don't want to create a PostgreSQL container, then remove repository dependency from jasperserver-webapp-1 and jasperserver-webapp-2 services in cluster-docker-compose.yaml.
225
240
226
241
227
242
# Deploying JasperReports Server and Scalable Query Engine
228
243
229
-
1. Set `scalableQueryEngine.enabled to true` in [default_master.properties](./resources/default-properties/default_master.properties)
230
-
1. Update the **SCALABLE_QUERY_ENGINE_URL** with the Hostname or Fqdn in the `.env` file.
231
-
1. Update the **jrs.server.host** with the Host Name or Fqdn in the following directory. `<CONTAINER_PATH>/Docker/scalableQueryEngine/resources/properties/application.properties `
232
-
1. Build the docker images for JasperReports Server and Scalable Query Engine.
233
-
1. Start the JasperReports Server application (see the instructions in [Deploying the TIBCO JasperReports® Server Application](#deploying-the-tibco-jasperreports-server-application) section).
234
-
1. Start the Scalable Query Engine by running the below commands:
235
-
236
-
237
-
`cd ../scalableQueryEngine`
238
-
`docker-compose up -d scalable-query-engine`
239
-
240
-
1. Check the Scalable Query Engine status by using `HOST_NAME:8081/actuator/health`.
241
-
1. Access the JasperReports Server application by using `HOST_NAME:8080/jasperserver-pro`.
242
-
1. Run any dashboard in JasperReports Server which uses Ad Hoc view (for example, Performance Summary Dashboard) and see the logs in Scalable Query Engine container.
243
-
1. To see the logs, run `docker logs <container_name/id>`.
244
-
1. To enable the worker logging, add `com.jaspersoft.ji.war.AdhocWorkerForwardingFilter` to the log.
244
+
1. Setup Docker and JasperReports® Server, see the instructions at the [Installer Setup](#installer-setup) section.
245
+
2. Configure `default_master.properties`, see the instructions at the [Building the Images ](#building-the-images) section.
246
+
3. Set `scalableQueryEngine.enabled to true` in [default_master.properties](./resources/default-properties/default_master.properties).
247
+
4. Edit `<CONTAINER_PATH>/Docker/jrs/.env` by setting the **SCALABLE_QUERY_ENGINE_URL** to use the Hostname or Fqdn:
248
+
- for docker desktop on Windows, use the hostname `host.docker.internal`
249
+
- for docker on Linux, use machine Hostname or Fqdn
250
+
5. Update the **jrs.server.host** with the Hostname or Fqdn in the following directory: `<CONTAINER_PATH>/Docker/scalableQueryEngine/resources/properties/application.properties `
251
+
6. Build the docker images for JasperReports® Server by using following commands:
252
+
1.`cd <CONTAINER_PATH>/Docker/jrs`
253
+
2. Run `docker-compose build`
254
+
7. Build the docker image for Scalable Query Engine by using following commands:
8. If keystore files (jrsks, jrsksp) do not exist, generate them. You can find information about generating keystore files at the [Using TIBCO JasperReports® Server Installer](#using-tibco-jasperreports-server-installer) section.
258
+
9. Copy jrsks, jrsksp into jrs and scalableQueryEngine folders, then keystore files location can be mapped as volume:
259
+
1. copy .jrsks, .jrsksp into `<CONTAINER_PATH>/Docker/jrs/resources/keystore`
260
+
2. copy .jrsks, .jrsksp into `<CONTAINER_PATH>/Docker/scalableQueryEngine/resources/keystore`
261
+
3. Set the permissions for each keystore file under `<CONTAINER_PATH>/Docker/jrs/resources/keystore` and `<CONTAINER_PATH>/Docker/scalableQueryEngine/resources/keystore`: `chmod -R 644 .jrs*`.
262
+
10. Copy JasperReports® Server license to `<CONTAINER_PATH>/jaspersoft-containers/Docker/jrs/resources/license`, for more information, see the [Install JasperReports® Server license](#install-jasperreports-server-license) section.
263
+
11. Set up and load repository database by using following commands:
264
+
1.`cd <CONTAINER_PATH>/Docker/jrs`
265
+
2. Run `docker-compose run jasperserver-buildomatic`
266
+
12. Start the JasperReports® Server application, for more information, see [Deploying the TIBCO JasperReports® Server Application](#deploying-the-tibco-jasperreports-server-application) section.
267
+
1.`cd <CONTAINER_PATH>/Docker/jrs`
268
+
2. Run `docker-compose up -d jasperserver-webapp`
269
+
13. Start the Scalable Query Engine by using following commands:
2. Run `docker-compose up -d scalable-query-engine`
272
+
14. Access the JasperReports® Server application by using `HOST_NAME:8080/jasperserver-pro`.
273
+
15. Check the Scalable Query Engine status by using `HOST_NAME:8081/actuator/health`.
274
+
16. Run any dashboard in JasperReports® Server which uses an Ad Hoc view (for example, Performance Summary Dashboard) and see the logs in Scalable Query Engine container.
275
+
17. To see the logs, run `docker logs <container_name/id>`.
276
+
18. To enable the worker logging, login to JasperReports® Server, go to Log Settings and add `com.jaspersoft.ji.war.AdhocWorkerForwardingFilter` to the `DEBUG`.
0 commit comments