Skip to content

Commit 55585f2

Browse files
committed
Test against real MySQL in CI
The mysql configuration actually ran MariaDB, which does not reserve LIBRARY, so it could not catch the MySQL 9.2 failure fixed in the previous commit. Rename it to alpine-temurin21-mariadb and make alpine-temurin21-mysql use the mysql image (9.7). Issue: #607 Assisted-by: Claude:claude-sonnet-5-5 Signed-off-by: Tony Germano <tony@germano.name>
1 parent f775773 commit 55585f2

2 files changed

Lines changed: 56 additions & 6 deletions

File tree

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
services:
2+
db:
3+
image: mariadb:11.8
4+
environment:
5+
MARIADB_ROOT_PASSWORD: root_password
6+
MARIADB_DATABASE: mirthdb
7+
MARIADB_USER: mirthdb
8+
MARIADB_PASSWORD: mirthdb
9+
healthcheck:
10+
test:
11+
- CMD-SHELL
12+
- mariadb-admin ping -h 127.0.0.1 -umirthdb -pmirthdb
13+
interval: 3s
14+
timeout: 5s
15+
retries: 20
16+
start_period: 20s
17+
18+
oie:
19+
image: ${OIE_IMAGE}
20+
depends_on:
21+
db:
22+
condition: service_healthy
23+
environment:
24+
DATABASE: mysql
25+
DATABASE_URL: jdbc:mysql://db:3306/mirthdb
26+
DATABASE_USERNAME: mirthdb
27+
DATABASE_PASSWORD: mirthdb
28+
DATABASE_MAX_CONNECTIONS: 20
29+
DATABASE_MAX_RETRY: 10
30+
DATABASE_RETRY_WAIT: 5000
31+
ports:
32+
- "8443:8443"
33+
healthcheck:
34+
test:
35+
- CMD-SHELL
36+
- bash -lc 'exec 3<>/dev/tcp/127.0.0.1/8443'
37+
interval: 3s
38+
timeout: 5s
39+
retries: 30
40+
start_period: 40s
41+
42+
# Lets the Database Connector metadata test reach this configuration's database. The URL is
43+
# resolved by the oie service, not the harness, so it is the same one the engine uses.
44+
harness:
45+
environment:
46+
OIE_DB_DRIVER: com.mysql.cj.jdbc.Driver
47+
OIE_DB_URL: jdbc:mysql://db:3306/mirthdb
48+
OIE_DB_USERNAME: mirthdb
49+
OIE_DB_PASSWORD: mirthdb

‎ci/configurations/alpine-temurin21-mysql.compose.yml‎

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
services:
22
db:
3-
image: mariadb:11.8
3+
# Real MySQL (not MariaDB) so this catches newer reserved words, e.g. LIBRARY in 9.2.
4+
image: mysql:9.7
45
environment:
5-
MARIADB_ROOT_PASSWORD: root_password
6-
MARIADB_DATABASE: mirthdb
7-
MARIADB_USER: mirthdb
8-
MARIADB_PASSWORD: mirthdb
6+
MYSQL_ROOT_PASSWORD: root_password
7+
MYSQL_DATABASE: mirthdb
8+
MYSQL_USER: mirthdb
9+
MYSQL_PASSWORD: mirthdb
910
healthcheck:
1011
test:
1112
- CMD-SHELL
12-
- mariadb-admin ping -h 127.0.0.1 -umirthdb -pmirthdb
13+
- mysqladmin ping -h 127.0.0.1 -umirthdb -pmirthdb
1314
interval: 3s
1415
timeout: 5s
1516
retries: 20

0 commit comments

Comments
 (0)