Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
cefcbbe
feat(docker): add a persistent local OpenJRS Compose environment
rftd Oct 23, 2026
abee922
fix(docker): preserve Buildomatic sources in the build context
rftd Oct 23, 2026
6962873
fix(docker): support sandboxed Chromium in the local runtime
rftd Oct 23, 2026
9116006
fix(docker): configure Chromium through the server Spring properties
rftd Oct 23, 2026
47ed95f
docs(docker): explain Podman seccomp transport failure and recovery
rftd Oct 23, 2026
e40d798
feat(privacy)!: remove Jaspersoft vendor heartbeat collection and tra…
rftd Oct 23, 2026
bf6126f
fix(reports): restore table sample and migrate basic maps to OpenStre…
rftd Oct 23, 2026
2c431f2
fix(viewer): serve bundled map assets through the resource endpoint
rftd Oct 23, 2026
b4a3d28
fix(viewer): preserve query parameters when loading visualization assets
rftd Oct 23, 2026
eaf49eb
fix(viewer): forward sample map coordinates to REST report execution
rftd Oct 23, 2026
300f7dd
fix(containers): qualify external image names for Podman
rftd Oct 23, 2026
67907fc
fix(samples)!: migrate employee reports to native JR7 with ordinary PDF
rftd Oct 23, 2026
6fa5d22
fix(ci): connect SugarCRM sample datasource to its database
rftd Oct 23, 2026
bc3dc19
fix(ci): retain Docker runtime exceptions without ripgrep
rftd Oct 23, 2026
9fd760a
fix(chrome): accept additional browser version metadata
rftd Oct 23, 2026
2ea0973
feat(reports)!: require native JasperReports 7 sources
rftd Oct 23, 2026
a77ae39
fix(samples): migrate remaining CE import fixtures and style templates
rftd Oct 23, 2026
ac916ee
Merge pull request #6: native JR7 Community reports and sample fixes
rftd Oct 23, 2026
aa29d84
Merge pull request #5: remove vendor heartbeat and integrate native J…
rftd Oct 23, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
.git
**/.git
**/node_modules
**/__pycache__
**/target
jasperserver-ui/ce/*/build
**/.legacy-private-deps
**/.env.local
.env
**/.jrsks
**/.jrsksp
**/keystore.init.properties
jasperserver/buildomatic/default_master.properties
jasperserver/buildomatic/build_conf
**/*.log
tomcat
ide
.idea
.cloud-setup
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Dockerfile text eol=lf
compose.yaml text eol=lf
docker/local/* text eol=lf
*.sh text eol=lf
jasperserver/buildomatic/js-ant text eol=lf
32 changes: 25 additions & 7 deletions .github/workflows/legacy-full-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ on:
- 'scripts/test-openjrs-branding.py'
- 'scripts/prepare-legacy-frontend.py'
- 'scripts/verify-legacy-war-deps.py'
- 'scripts/verify-no-vendor-heartbeat.py'
- 'scripts/verify-native-reports.py'
- 'scripts/smoke-jasperserver.sh'
- 'scripts/test-legacy-rest-reports.sh'
- 'scripts/test-legacy-viewer.py'
- 'scripts/test-sample-map-table.py'
- 'scripts/sync-jr7-samples.py'
- 'scripts/update-native-samples.py'
- 'scripts/test-native-samples.py'
push:
branches:
- feature/jasperreports-7-migration
Expand Down Expand Up @@ -145,6 +151,10 @@ jobs:
java -version
mvn -version
ant -version
- name: Check native JR7 sample catalogs
run: |
python3 scripts/sync-jr7-samples.py
python3 scripts/verify-native-reports.py
- name: Download frontend overlay
uses: actions/download-artifact@v4
with:
Expand Down Expand Up @@ -194,13 +204,13 @@ jobs:
test -s "$ksp/.jrsksp"
test -s keystore.init.properties
echo "CI keystore generated in runner temporary storage."
- name: Test JR7 component registration, legacy XML and exports
- name: Test native JR7 reports, component registration and exports
run: |
mvn -B -ntp -f jasperserver/pom.xml \
-DbuildArtifactVersionName=ci \
-Dji-repo-releases=https://jaspersoft.jfrog.io/jaspersoft/third-party-ce-artifacts \
-Dji-repo-snapshots=https://jaspersoft.jfrog.io/jaspersoft/jr-ce-snapshots \
-pl jasperserver-custom-visualization,jasperserver-legacy-jrxml -am test
-pl jasperserver-custom-visualization -am test
- name: Build original Community WAR
working-directory: jasperserver/buildomatic
env:
Expand Down Expand Up @@ -228,11 +238,13 @@ jobs:
run: |
test -s jasperserver/jasperserver-war/target/jasperserver.war
unzip -t jasperserver/jasperserver-war/target/jasperserver.war >/dev/null
python3 scripts/verify-no-vendor-heartbeat.py jasperserver/jasperserver-war/target/jasperserver.war
python3 scripts/verify-native-reports.py --war jasperserver/jasperserver-war/target/jasperserver.war
- name: Test legacy viewer action and resource registration
run: |
mvn -B -ntp -f jasperserver/jasperserver-war-jar/pom.xml \
-s jasperserver/buildomatic/build_conf/default/maven_settings_community.xml \
-DskipTests=false -Dtest=ViewerActionMappingsTest,InteractiveTableActionsTest test
-DskipTests=false -Dtest=JSCommonControllerTest,ViewerActionMappingsTest,InteractiveTableActionsTest test
- name: Upload compiled WAR
uses: actions/upload-artifact@v4
with:
Expand All @@ -249,7 +261,7 @@ jobs:
set -o pipefail
./js-ant build-init-js-db-ce 2>&1 | tee "$RUNNER_TEMP/database-init.log"
./js-ant run-production-data-ce 2>&1 | tee -a "$RUNNER_TEMP/database-init.log"
- name: Load SugarCRM sample data and sample reports
- name: Load SugarCRM, Foodmart and native sample reports
working-directory: jasperserver/buildomatic
env:
BUILDOMATIC_ENV: ci
Expand All @@ -264,6 +276,7 @@ jobs:
test -s "$ks/.jrsks"
test -s "$ksp/.jrsksp"
./js-ant create-sugarcrm-db load-sugarcrm-db 2>&1 | tee "$RUNNER_TEMP/sample-data.log"
./js-ant create-foodmart-db load-foodmart-db 2>&1 | tee -a "$RUNNER_TEMP/sample-data.log"
./js-ant import-sample-data-ce 2>&1 | tee -a "$RUNNER_TEMP/sample-data.log"
- name: Prepare runtime WAR with Buildomatic files
run: |
Expand Down Expand Up @@ -293,11 +306,11 @@ jobs:
username="postgres" password="postgres" maxTotal="20"/>
<Resource name="jdbc/sugarcrm" auth="Container" type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory"
driverClassName="org.postgresql.Driver" url="jdbc:postgresql://127.0.0.1:5432/jasperserver"
driverClassName="org.postgresql.Driver" url="jdbc:postgresql://127.0.0.1:5432/sugarcrm"
username="postgres" password="postgres" maxTotal="10"/>
<Resource name="jdbc/foodmart" auth="Container" type="javax.sql.DataSource"
factory="org.apache.tomcat.dbcp.dbcp2.BasicDataSourceFactory"
driverClassName="org.postgresql.Driver" url="jdbc:postgresql://127.0.0.1:5432/jasperserver"
driverClassName="org.postgresql.Driver" url="jdbc:postgresql://127.0.0.1:5432/foodmart"
username="postgres" password="postgres" maxTotal="10"/>
</Context>
EOF
Expand Down Expand Up @@ -329,7 +342,10 @@ jobs:
env:
JRS_SMOKE_USER: jasperadmin
JRS_SMOKE_PASSWORD: jasperadmin
run: python3 scripts/test-legacy-viewer.py
run: |
python3 scripts/test-legacy-viewer.py
python3 scripts/test-sample-map-table.py
python3 scripts/test-native-samples.py
- name: Render Community visualization SVG and PDF in Chrome
run: |
chrome_path=$(command -v google-chrome)
Expand Down Expand Up @@ -366,6 +382,8 @@ jobs:
${{ runner.temp }}/jrs-login-smoke.html
${{ runner.temp }}/jrs-login-headers.txt
${{ runner.temp }}/viewer-smoke/**
${{ runner.temp }}/map-table-tests/**
${{ runner.temp }}/native-sample-tests/**
jasperserver/jasperserver-custom-visualization/target/cv-browser/**
if-no-files-found: ignore
retention-days: 7
Expand Down
123 changes: 123 additions & 0 deletions .github/workflows/local-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
name: Local Docker environment

on:
workflow_dispatch:
pull_request:
paths:
- 'Dockerfile'
- '.dockerignore'
- '.gitattributes'
- 'compose.yaml'
- 'jasperserver/**'
- 'jasperserver-ui/**'
- 'scripts/test-openjrs-branding.py'
- 'scripts/test-legacy-viewer.py'
- 'scripts/test-sample-map-table.py'
- 'scripts/sync-jr7-samples.py'
- 'scripts/update-native-samples.py'
- 'scripts/test-native-samples.py'
- 'scripts/verify-no-vendor-heartbeat.py'
- 'scripts/verify-native-reports.py'
- 'docker/local/**'
- '.github/workflows/local-docker.yml'

permissions:
contents: read

concurrency:
group: local-docker-${{ github.ref }}
cancel-in-progress: true

jobs:
compose:
runs-on: ubuntu-22.04
timeout-minutes: 90
env:
COMPOSE_PROJECT_NAME: openjrs-docker-ci-${{ github.run_id }}
OPENJRS_PORT: '18080'
JRS_BASE_URL: http://127.0.0.1:18080/jasperserver
JRS_SMOKE_USER: jasperadmin
JRS_SMOKE_PASSWORD: jasperadmin
OPENJRS_JAVA_OPTS: -Xms256m -Xmx2048m -Djava.awt.headless=true -Dopenjrs.map.tile.url=http://127.0.0.1:8080/jasperserver/scripts/openjrs-map-test-tile.png
steps:
- uses: actions/checkout@v4
- name: Validate Compose and shell scripts
run: |
docker compose config --quiet
bash -n docker/local/*.sh
python3 -m py_compile docker/local/configure.py
python3 scripts/sync-jr7-samples.py
python3 scripts/verify-native-reports.py
- name: Build frontend, backend, initializer and runtime images
run: |
set -o pipefail
docker compose --progress plain build 2>&1 | tee "$RUNNER_TEMP/docker-build.log"
- name: Initialize database and start OpenJRS
run: docker compose up -d --wait --wait-timeout 900
- name: Check persistence and protection against lost encryption keys
run: bash docker/local/test-persistence.sh
- name: Wait for restarted server
run: |
for attempt in $(seq 1 90); do
if curl --fail --silent "$JRS_BASE_URL/login.html" >/dev/null; then exit 0; fi
sleep 2
done
exit 1
- name: Check REST authentication and PDF/XLSX exports
run: bash scripts/test-legacy-rest-reports.sh
- name: Install pinned browser test dependencies
run: python3 -m pip install playwright==1.62.0 greenlet==3.5.5 pyee==13.0.1
- name: Check branding, viewer controls and Community components
run: |
python3 scripts/test-openjrs-branding.py
python3 scripts/test-legacy-viewer.py
- name: Check native JR7 samples, MDX and drilldown
run: python3 scripts/test-native-samples.py
- name: Check shipped table, OpenStreetMap, drilldown and image exports
env:
JRS_MAP_EXPORT: '1'
run: |
docker compose cp jasperserver/jasperserver-custom-visualization/src/test/resources/map-test-tile.png openjrs:/usr/local/tomcat/webapps/jasperserver/scripts/openjrs-map-test-tile.png
python3 scripts/test-sample-map-table.py
- name: Check sandboxed Chromium in the runtime image
run: docker compose exec -T openjrs chromium --headless --disable-gpu --dump-dom about:blank
- name: Export a Community visualization using Chromium inside Tomcat
run: |
docker compose cp jasperserver/jasperserver-custom-visualization/src/test/resources/cv-browser-smoke.js openjrs:/usr/local/tomcat/webapps/jasperserver/scripts/openjrs-cv-export.js
python3 docker/local/test-visualization.py
- name: Capture diagnostics
if: always()
run: |
docker compose logs --no-color > "$RUNNER_TEMP/docker-runtime.log" 2>&1 || true
docker compose ps -a > "$RUNNER_TEMP/docker-status.txt" 2>&1 || true
docker compose cp openjrs:/usr/local/tomcat/webapps/jasperserver/WEB-INF/logs "$RUNNER_TEMP/application-logs" || true
python3 - <<'PY'
import os
from pathlib import Path
log = Path(os.environ['RUNNER_TEMP']) / 'application-logs/jasperserver.log'
if log.exists():
lines = log.read_text(errors='replace').splitlines()
selected = set()
for index, line in enumerate(lines):
if 'ERROR' in line or 'Caused by:' in line:
selected.update(range(index, min(index + 21, len(lines))))
for index in sorted(selected)[-150:]:
print(str(index + 1) + ': ' + lines[index])
PY
- uses: actions/upload-artifact@v4
if: always()
with:
name: local-docker-diagnostics
path: |
${{ runner.temp }}/docker-*.log
${{ runner.temp }}/docker-status.txt
${{ runner.temp }}/application-logs/**
${{ runner.temp }}/openjrs-branding/**
${{ runner.temp }}/viewer-smoke/**
${{ runner.temp }}/docker-cv.pdf
${{ runner.temp }}/map-table-tests/**
${{ runner.temp }}/native-sample-tests/**
retention-days: 7
- name: Remove disposable CI environment
if: always()
run: docker compose down --volumes
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@
*.iml
**/.DS_Store
tomcat/
ide/
ide/
/.env
/docker/local/__pycache__/
/openjrs-sample-backups/
72 changes: 72 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
# syntax=docker.io/docker/dockerfile:1
# Local development image. Dependency audit exceptions remain diagnostic only.
FROM docker.io/library/node:14.21.3-bullseye AS frontend
RUN apt-get update && apt-get install -y --no-install-recommends python3 make g++ zip \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /src
COPY scripts/prepare-legacy-frontend.py scripts/prepare-legacy-frontend.py
COPY jasperserver-ui jasperserver-ui
RUN python3 scripts/prepare-legacy-frontend.py --prepare
WORKDIR /src/jasperserver-ui/ce
ENV NODE_OPTIONS=--max-old-space-size=4096 npm_config_python=python3 BUILD_ARTIFACT_VERSION_NAME=ci
RUN yarn install --non-interactive
RUN yarn run clean && yarn run build \
&& cd jrs-ui && yarn run overlay \
&& cd build/overlay && zip -qr /tmp/jrs-ui-overlay.zip .

FROM docker.io/library/eclipse-temurin:8-jdk-jammy AS java8
FROM docker.io/library/maven:3.9.9-eclipse-temurin-8 AS maven-bin
FROM docker.io/library/tomcat:9.0-jdk8-temurin AS tomcat-bin

FROM docker.io/library/debian:bookworm-slim AS build-tools
RUN apt-get update && apt-get install -y --no-install-recommends \
ant ant-contrib ca-certificates curl fontconfig fonts-dejavu-core \
postgresql-client python3 unzip util-linux \
&& rm -rf /var/lib/apt/lists/*
COPY --from=java8 /opt/java/openjdk /opt/java/openjdk
COPY --from=maven-bin /usr/share/maven /usr/share/maven
ENV JAVA_HOME=/opt/java/openjdk MAVEN_HOME=/usr/share/maven
ENV PATH=/opt/java/openjdk/bin:/usr/share/maven/bin:$PATH
ENV BUILDOMATIC_ENV=ci MAVEN_OPTS=-Xmx2048m

FROM build-tools AS builder
WORKDIR /src
COPY jasperserver jasperserver
COPY scripts/verify-legacy-war-deps.py scripts/verify-legacy-war-deps.py
COPY scripts/verify-no-vendor-heartbeat.py scripts/verify-no-vendor-heartbeat.py
COPY scripts/verify-native-reports.py scripts/verify-native-reports.py
COPY docker/local /opt/openjrs-docker
COPY --from=frontend /tmp/jrs-ui-overlay.zip /tmp/jrs-ui-overlay.zip
RUN --mount=type=cache,id=openjrs-maven,target=/root/.m2,sharing=locked \
bash /opt/openjrs-docker/build.sh \
&& cp -a /root/.m2/repository /opt/maven-repository

FROM builder AS initializer
RUN mkdir -p /root/.m2 && ln -s /opt/maven-repository /root/.m2/repository
WORKDIR /src/jasperserver/buildomatic
ENTRYPOINT ["bash", "/opt/openjrs-docker/initialize.sh"]

FROM docker.io/library/debian:bookworm-slim AS runtime
RUN apt-get update && apt-get install -y --no-install-recommends \
ca-certificates chromium chromium-sandbox curl fontconfig fonts-dejavu-core tini \
&& rm -rf /var/lib/apt/lists/* \
&& groupadd --gid 10001 openjrs \
&& useradd --uid 10001 --gid openjrs --create-home openjrs
COPY --from=java8 /opt/java/openjdk /opt/java/openjdk
COPY --from=tomcat-bin /usr/local/tomcat /usr/local/tomcat
ENV JAVA_HOME=/opt/java/openjdk CATALINA_HOME=/usr/local/tomcat
ENV PATH=/opt/java/openjdk/bin:/usr/local/tomcat/bin:$PATH
ENV CATALINA_OPTS="-Xms256m -Xmx2048m -Djava.awt.headless=true"
ENV ks=/var/openjrs/keys ksp=/var/openjrs/keys
RUN rm -rf /usr/local/tomcat/webapps/* /usr/local/tomcat/webapps.dist \
&& mkdir -p /usr/local/tomcat/conf/Catalina/localhost
COPY --from=builder /opt/openjrs-webapp /usr/local/tomcat/webapps/jasperserver
COPY --from=builder /src/jasperserver/buildomatic/conf_source/db/postgresql/jdbc/postgresql-42.5.4.jar /usr/local/tomcat/lib/
COPY docker/local/start.sh /usr/local/bin/openjrs-start
RUN chown -R openjrs:openjrs /usr/local/tomcat
USER openjrs
WORKDIR /usr/local/tomcat
EXPOSE 8080
HEALTHCHECK --interval=15s --timeout=5s --start-period=180s --retries=20 \
CMD curl --fail --silent http://127.0.0.1:8080/jasperserver/login.html > /dev/null || exit 1
ENTRYPOINT ["/usr/bin/tini", "--", "bash", "/usr/local/bin/openjrs-start"]
Loading
Loading