Skip to content

Commit be98293

Browse files
committed
Merge develop into main
2 parents 728832a + 929da8c commit be98293

5 files changed

Lines changed: 179 additions & 22 deletions

File tree

‎.github/workflows/docker-api-publish.yml‎

Lines changed: 25 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,13 @@ on:
77
required: true
88
type: string
99

10+
env:
11+
IMAGE_NAME: registry.digitalocean.com/wise-registry/wisemapping/wisemapping-api
12+
1013
jobs:
14+
# The API image only unpacks Alpine packages and copies an
15+
# architecture-neutral JAR, so cross-building both platforms in a single job
16+
# under QEMU is cheap. No native arm64 runner is needed here.
1117
docker-api-publish:
1218
runs-on: ubuntu-latest
1319
steps:
@@ -19,18 +25,30 @@ jobs:
1925
name: jar-artifact
2026
path: wise-api/target/
2127

28+
- name: Set up QEMU
29+
uses: docker/setup-qemu-action@v3
30+
31+
- name: Set up Docker Buildx
32+
uses: docker/setup-buildx-action@v3
33+
2234
- name: Log in to DigitalOcean Container Registry
2335
uses: docker/login-action@v3
2436
with:
2537
registry: registry.digitalocean.com
2638
username: doctl
2739
password: ${{ secrets.DOCR_ACCESS_TOKEN }}
2840

29-
- name: Build the Docker image
30-
run: docker buildx build --platform linux/amd64 --build-arg ENABLE_NEWRELIC=true -t wisemapping/wisemapping-api:${{ inputs.tag }} -f distribution/api/Dockerfile .
31-
32-
- name: Tag Docker image
33-
run: docker tag wisemapping/wisemapping-api:${{ inputs.tag }} registry.digitalocean.com/wise-registry/wisemapping/wisemapping-api:${{ inputs.tag }}
41+
# A multi-platform build cannot be loaded into the local daemon, so it is
42+
# tagged with the registry name and pushed directly instead of being
43+
# built, re-tagged and pushed in three separate steps.
44+
- name: Build and push multi-arch image
45+
run: |
46+
docker buildx build \
47+
--platform linux/amd64,linux/arm64 \
48+
--build-arg ENABLE_NEWRELIC=true \
49+
-t ${IMAGE_NAME}:${{ inputs.tag }} \
50+
--push \
51+
-f distribution/api/Dockerfile .
3452
35-
- name: Push Image to Repo
36-
run: docker push registry.digitalocean.com/wise-registry/wisemapping/wisemapping-api:${{ inputs.tag }}
53+
- name: Verify published manifest
54+
run: docker buildx imagetools inspect ${IMAGE_NAME}:${{ inputs.tag }}

‎.github/workflows/docker-app-publish.yml‎

Lines changed: 74 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,24 @@ on:
1111
type: string
1212
default: "main"
1313

14+
env:
15+
IMAGE_NAME: wisemapping/wisemapping
16+
1417
jobs:
15-
docker-app-publish:
16-
runs-on: ubuntu-latest
18+
# The app image compiles the backend with Maven and the frontend with
19+
# webpack inside the build. Building arm64 under QEMU emulation is far too
20+
# slow for the webpack stage, so each architecture is built natively on its
21+
# own runner and the two are stitched into one manifest list by the merge job.
22+
build:
23+
strategy:
24+
fail-fast: false
25+
matrix:
26+
include:
27+
- platform: linux/amd64
28+
runner: ubuntu-latest
29+
- platform: linux/arm64
30+
runner: ubuntu-24.04-arm
31+
runs-on: ${{ matrix.runner }}
1732
steps:
1833
- uses: actions/checkout@v4
1934

@@ -23,20 +38,71 @@ jobs:
2338
name: jar-artifact
2439
path: wise-api/target/
2540

41+
- name: Compute platform slug
42+
env:
43+
PLATFORM: ${{ matrix.platform }}
44+
run: echo "PLATFORM_SLUG=${PLATFORM//\//-}" >> $GITHUB_ENV
45+
46+
- name: Set up Docker Buildx
47+
uses: docker/setup-buildx-action@v3
48+
2649
- name: Log in to Docker Hub
2750
uses: docker/login-action@v3
2851
with:
2952
username: ${{ secrets.DOCKERHUB_USERNAME }}
3053
password: ${{ secrets.DOCKERHUB_TOKEN }}
3154

32-
- name: Build the Full Stack Docker image
55+
# Pushed by digest only: the tag is applied once, by the merge job, so
56+
# that it never points at a single-architecture image.
57+
- name: Build and push image by digest
3358
run: |
3459
docker buildx build \
35-
--platform linux/amd64 \
60+
--platform ${{ matrix.platform }} \
3661
--build-arg FRONTEND_BRANCH=${{ inputs.frontend_branch }} \
37-
--build-arg CACHEBUST=$(date +%s) \
38-
-t wisemapping/wisemapping:${{ inputs.tag }} \
62+
--build-arg CACHEBUST=${{ github.run_id }} \
63+
--metadata-file /tmp/metadata.json \
64+
--output "type=image,name=${IMAGE_NAME},push-by-digest=true,name-canonical=true,push=true" \
3965
-f distribution/app/Dockerfile .
4066
41-
- name: Push Image to Docker Hub
42-
run: docker push wisemapping/wisemapping:${{ inputs.tag }}
67+
- name: Export digest
68+
run: |
69+
digest=$(jq -r '."containerimage.digest"' /tmp/metadata.json)
70+
mkdir -p /tmp/digests
71+
touch "/tmp/digests/${digest#sha256:}"
72+
73+
- name: Upload digest
74+
uses: actions/upload-artifact@v4
75+
with:
76+
name: digest-app-${{ env.PLATFORM_SLUG }}
77+
path: /tmp/digests/*
78+
if-no-files-found: error
79+
retention-days: 1
80+
81+
merge:
82+
needs: build
83+
runs-on: ubuntu-latest
84+
steps:
85+
- name: Download digests
86+
uses: actions/download-artifact@v4
87+
with:
88+
path: /tmp/digests
89+
pattern: digest-app-*
90+
merge-multiple: true
91+
92+
- name: Set up Docker Buildx
93+
uses: docker/setup-buildx-action@v3
94+
95+
- name: Log in to Docker Hub
96+
uses: docker/login-action@v3
97+
with:
98+
username: ${{ secrets.DOCKERHUB_USERNAME }}
99+
password: ${{ secrets.DOCKERHUB_TOKEN }}
100+
101+
- name: Create and push multi-arch manifest
102+
working-directory: /tmp/digests
103+
run: |
104+
docker buildx imagetools create -t ${IMAGE_NAME}:${{ inputs.tag }} \
105+
$(printf "${IMAGE_NAME}@sha256:%s " *)
106+
107+
- name: Verify published manifest
108+
run: docker buildx imagetools inspect ${IMAGE_NAME}:${{ inputs.tag }}

‎CHANGELOG.md‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,15 @@ All notable changes to the Wisemapping Frontend project are documented in this f
1818
#### Features
1919
- **Robust Reset Password**: Replaced the previous reset-password flow with a secure link-based mechanism — a time-limited signed token is emailed to the user; clicking the link opens a dedicated reset form, eliminating the possibility of replay or enumeration attacks
2020
- **Arabic Language Support**: Added Arabic (`ar`) to the supported server-side message bundles, enabling fully localized error messages and email templates for Arabic-speaking users
21+
- **MariaDB Native Support**: Added first-class MariaDB support with the native JDBC driver and dialect, dedicated `schema-mariadb.sql` / `data-mariadb.sql` seed files, and a ready-to-run `distribution/app-mariadb/` Docker Compose overlay
22+
23+
#### Bug Fixes
24+
- **[#69](https://github.com/wisemapping/wisemapping-open-source/issues/69)**: Normalized database identifiers and data types across MySQL, MariaDB, PostgreSQL and HSQLDB; all JPA entity table names and the schema files are now lowercase so deployments on case-sensitive Linux filesystems behave identically to macOS/Windows
25+
- **[#70](https://github.com/wisemapping/wisemapping-open-source/issues/70)**: Fixed the 6.0.8 Docker image failing at startup with `ModuleNotFoundError: No module named 'xmlrpclib'`; the container now uses `tini` as PID 1 with a small shell launcher instead of the broken Alpine supervisor + Python combination, removing Python from the runtime image entirely
2126

2227
#### Maintenance
23-
- **Dependency Bump**: Updated backend dependencies to latest stable versions
28+
- **ARM64 Docker Images**: Restored multi-architecture publishing — both `wisemapping/wisemapping` and the API image are now built for `linux/amd64` and `linux/arm64`, so 6.x runs natively on Apple Silicon, AWS Graviton and Raspberry Pi again. ARM64 had been dropped when the release pipeline moved to GitHub Actions, leaving 5.x as the last multi-arch release. The full-stack image builds each architecture on a native runner and merges them into a single manifest list; the API image cross-builds both under QEMU
29+
- **Dependency Bump**: Updated backend dependencies to latest stable versions (PostgreSQL JDBC, HSQLDB, Jackson, EHCache, OpenTelemetry exporter, commons-io)
2430
- **Dead Code Removal**: Cleaned up unused code paths and legacy tracking utilities
2531

2632
### 🎨 Frontend (wisemapping-frontend)
@@ -32,6 +38,8 @@ All notable changes to the Wisemapping Frontend project are documented in this f
3238
- **Two-Finger Zoom**: Improved touch-based zoom-in / zoom-out gestures on the editor canvas for a smoother trackpad and touchscreen experience
3339
- **Login Flow Optimization**: Streamlined the post-login transition with reduced perceived latency and a more reliable handoff to the editor
3440
- **Footer Refresh**: Updated the footer layout for better readability and consistent placement across pages
41+
- **Registration Layout**: Refreshed the registration page layout for a cleaner first-time signup experience
42+
- **SEO & Social Sharing Metadata**: Added `robots`, Open Graph and Twitter Card meta tags so shared WiseMapping links render rich previews on social platforms
3543

3644
#### Bug Fixes
3745
- **SVG Icon Rendering**: Fixed an issue where SVG icons in the icon gallery were not rendering all paths correctly

‎distribution/README.md‎

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,11 +158,25 @@ spring:
158158

159159
## CI/CD Integration
160160

161-
The GitHub Actions workflow (`.github/workflows/docker-publish.yml`) uses the **API Only** configuration:
161+
Both published images are **multi-architecture** (`linux/amd64` + `linux/arm64`),
162+
so they run natively on Apple Silicon, AWS Graviton, Raspberry Pi and other
163+
ARM64 hosts without emulation.
164+
165+
`.github/workflows/docker-api-publish.yml` builds the **API Only** configuration:
162166
- Builds the JAR with Maven
163167
- Packages it using `distribution/api/Dockerfile`
168+
- Cross-builds both architectures in one job under QEMU (the image only copies
169+
an architecture-neutral JAR, so emulation is cheap)
164170
- Publishes to DigitalOcean Container Registry
165171

172+
`.github/workflows/docker-app-publish.yml` builds the **Full Stack** image:
173+
- Builds each architecture natively on its own runner (`ubuntu-latest` for
174+
amd64, `ubuntu-24.04-arm` for arm64), because the image compiles the backend
175+
with Maven and the frontend with webpack — far too slow under emulation
176+
- Pushes each build by digest, then merges them into a single tagged manifest
177+
list with `docker buildx imagetools create`
178+
- Publishes to Docker Hub as `wisemapping/wisemapping`
179+
166180
## Building for Production
167181

168182
### With New Relic Monitoring
@@ -175,11 +189,22 @@ docker build -f distribution/api/Dockerfile \
175189

176190
### Multi-Architecture Builds
177191

192+
A multi-platform build cannot be loaded into the local Docker daemon, so it must
193+
be pushed straight to a registry (`--push`) or exported to a local
194+
OCI layout (`--output type=oci,dest=...`):
195+
178196
```bash
179197
docker buildx build \
180198
--platform linux/amd64,linux/arm64 \
181199
-f distribution/api/Dockerfile \
182-
-t wisemapping-api:latest .
200+
-t <registry>/wisemapping-api:latest \
201+
--push .
202+
```
203+
204+
To check which architectures a published tag provides:
205+
206+
```bash
207+
docker buildx imagetools inspect wisemapping/wisemapping:latest
183208
```
184209

185210
## License

‎wise-api/pom.xml‎

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@
55
<parent>
66
<groupId>org.springframework.boot</groupId>
77
<artifactId>spring-boot-starter-parent</artifactId>
8-
<version>4.0.6</version>
8+
<version>4.0.8</version>
99
</parent>
1010

1111
<groupId>org.wisemapping</groupId>
1212
<artifactId>wise-api</artifactId>
13-
<version>6.0.7-SNAPSHOT</version>
13+
<version>6.0.9-SNAPSHOT</version>
1414

1515
<name>WiseMapping API</name>
1616
<url>https://www.wisemapping.org</url>
1717

1818
<properties>
19-
<com.wisemapping.version>6.0.7-SNAPSHOT</com.wisemapping.version>
19+
<com.wisemapping.version>6.0.9-SNAPSHOT</com.wisemapping.version>
2020
<maven.compiler.source>24</maven.compiler.source>
2121
<maven.compiler.target>24</maven.compiler.target>
2222
<maven.build.timestamp.format>yyyy-MM-dd HH:mm:ss</maven.build.timestamp.format>
@@ -98,6 +98,7 @@
9898
<dependency>
9999
<groupId>org.ehcache</groupId>
100100
<artifactId>ehcache</artifactId>
101+
<version>3.12.0</version>
101102
<classifier>jakarta</classifier>
102103
</dependency>
103104
<dependency>
@@ -117,6 +118,7 @@
117118
<dependency>
118119
<groupId>org.postgresql</groupId>
119120
<artifactId>postgresql</artifactId>
121+
<version>42.7.13</version>
120122
</dependency>
121123
<dependency>
122124
<groupId>jakarta.xml.bind</groupId>
@@ -162,19 +164,21 @@
162164
<dependency>
163165
<groupId>org.hsqldb</groupId>
164166
<artifactId>hsqldb</artifactId>
167+
<version>2.7.4</version>
165168
<scope>runtime</scope>
166169
</dependency>
167170

168171
<dependency>
169172
<groupId>com.fasterxml.jackson.core</groupId>
170173
<artifactId>jackson-databind</artifactId>
174+
<version>2.21.6</version>
171175
</dependency>
172176

173177

174178
<dependency>
175179
<groupId>commons-io</groupId>
176180
<artifactId>commons-io</artifactId>
177-
<version>2.21.0</version>
181+
<version>2.22.0</version>
178182
</dependency>
179183

180184
<dependency>
@@ -234,6 +238,7 @@
234238
<dependency>
235239
<groupId>io.opentelemetry</groupId>
236240
<artifactId>opentelemetry-exporter-otlp</artifactId>
241+
<version>1.62.0</version>
237242
</dependency>
238243

239244
</dependencies>
@@ -248,6 +253,41 @@
248253
<forkedProcessExitTimeoutInSeconds>120</forkedProcessExitTimeoutInSeconds>
249254
</configuration>
250255
</plugin>
256+
<!-- License Plugin: bundle a THIRD-PARTY notice into the jar and
257+
fail the build if a strong-copyleft/network-copyleft dependency
258+
(AGPL / SSPL / GPLv3-family) sneaks into the tree. -->
259+
<plugin>
260+
<groupId>org.codehaus.mojo</groupId>
261+
<artifactId>license-maven-plugin</artifactId>
262+
<version>2.6.0</version>
263+
<configuration>
264+
<!-- The goal always copies the notice onto the compiled
265+
classpath (target/classes/THIRD-PARTY.txt), so it is
266+
packaged at BOOT-INF/classes/THIRD-PARTY.txt in the jar
267+
and readable at runtime as classpath:/THIRD-PARTY.txt. -->
268+
<thirdPartyFilename>THIRD-PARTY.txt</thirdPartyFilename>
269+
<!-- Fail the build when a dependency ships under a network-
270+
copyleft / strong-copyleft license. Matching is by exact
271+
license NAME, pipe-separated, so we enumerate the common
272+
SPDX + long-form spellings of AGPL / SSPL / GPLv3.
273+
NOTE: GPLv2-with-FOSS-exception (mysql-connector-j) and
274+
LGPL-2.1 (mariadb-java-client) are intentionally allowed
275+
and must NOT appear here. If a new AGPL/SSPL dependency
276+
declares a name not listed below, add its exact name. -->
277+
<failOnBlacklist>true</failOnBlacklist>
278+
<failOnMissing>false</failOnMissing>
279+
<excludedLicenses>GNU Affero General Public License v3.0|GNU Affero General Public License v3.0 only|GNU Affero General Public License v3.0 or later|GNU Affero General Public License, Version 3|GNU AFFERO GENERAL PUBLIC LICENSE Version 3|AGPL-3.0|AGPL-3.0-only|AGPL-3.0-or-later|AGPLv3|Server Side Public License, v1|Server Side Public License|SSPL-1.0|GNU General Public License v3.0|GNU General Public License v3.0 only|GNU General Public License v3.0 or later|GNU General Public License, version 3|GPL-3.0|GPL-3.0-only|GPL-3.0-or-later|GPLv3</excludedLicenses>
280+
</configuration>
281+
<executions>
282+
<execution>
283+
<id>bundle-third-party-notice</id>
284+
<phase>generate-resources</phase>
285+
<goals>
286+
<goal>add-third-party</goal>
287+
</goals>
288+
</execution>
289+
</executions>
290+
</plugin>
251291
<!-- Git Commit ID Plugin to add git information to build -->
252292
<plugin>
253293
<groupId>io.github.git-commit-id</groupId>

0 commit comments

Comments
 (0)