File tree Expand file tree Collapse file tree 8 files changed +47
-2
lines changed
hibernate-reactive-core/src/test/java/org/hibernate/reactive/containers Expand file tree Collapse file tree 8 files changed +47
-2
lines changed Original file line number Diff line number Diff line change @@ -122,8 +122,9 @@ private String address() {
122
122
// Calling start() will start the container (if not already started)
123
123
// It is required to call start() before obtaining the JDBC URL because it will contain a randomized port
124
124
postgresql .start ();
125
- // Copied from PostgresSQLContainer#getJdbcUrl
126
- return "jdbc:postgresql://" + postgresql .getHost () + ":" + postgresql .getMappedPort ( PostgreSQLContainer .POSTGRESQL_PORT ) + "/" + postgresql .getDatabaseName ();
125
+ // Latest Postgres JDBC driver has dropped support for loggerLevel
126
+ // and the Vert.x driver throws an exception because it does not recognize it
127
+ return postgresql .getJdbcUrl ().replace ( "?loggerLevel=OFF" , "" );
127
128
}
128
129
129
130
return getRegularJdbcUrl ();
Original file line number Diff line number Diff line change 1
1
# CockroachDB
2
2
# See https://hub.docker.com/r/cockroachdb/cockroach
3
3
FROM docker.io/cockroachdb/cockroach:v24.3.13
4
+
5
+ # Environment variables for test database setup
6
+ # CockroachDB uses command line arguments rather than environment variables
7
+ # These are set for documentation purposes and used by testcontainers
8
+ ENV COCKROACH_DATABASE=hreact
9
+ ENV COCKROACH_USER=hreact
10
+ ENV COCKROACH_PASSWORD=hreact
Original file line number Diff line number Diff line change 1
1
# IBM DB2
2
2
# See https://hub.docker.com/r/ibmcom/db2
3
3
FROM icr.io/db2_community/db2:12.1.0.0
4
+
5
+ # Environment variables for test database setup
6
+ ENV LICENSE=accept
7
+ ENV DB2INSTANCE=hreact
8
+ ENV DB2INST1_PASSWORD=hreact
9
+ ENV DBNAME=hreact
Original file line number Diff line number Diff line change 1
1
# MariaDB
2
2
# See https://hub.docker.com/_/mariadb
3
3
FROM docker.io/mariadb:11.7.2
4
+
5
+ # Environment variables for test database setup
6
+ ENV MARIADB_DATABASE=hreact
7
+ ENV MARIADB_USER=hreact
8
+ ENV MARIADB_PASSWORD=hreact
9
+ ENV MARIADB_ROOT_PASSWORD=hreact
Original file line number Diff line number Diff line change 1
1
# MySQL
2
2
# See https://hub.docker.com/_/mysql
3
3
FROM docker.io/mysql:9.2.0
4
+
5
+ # Environment variables for test database setup
6
+ ENV MYSQL_DATABASE=hreact
7
+ ENV MYSQL_USER=hreact
8
+ ENV MYSQL_PASSWORD=hreact
9
+ ENV MYSQL_ROOT_PASSWORD=hreact
Original file line number Diff line number Diff line change 1
1
# Oracle Database Free
2
2
# See https://hub.docker.com/r/gvenzl/oracle-free
3
3
FROM docker.io/gvenzl/oracle-free:23-slim-faststart
4
+
5
+ # Environment variables for test database setup
6
+ ENV ORACLE_DATABASE=hreact
7
+ ENV ORACLE_USER=hreact
8
+ ENV ORACLE_PASSWORD=hreact
9
+ ENV APP_USER=hreact
10
+ ENV APP_USER_PASSWORD=hreact
Original file line number Diff line number Diff line change 1
1
# PostgreSQL
2
2
# See https://hub.docker.com/_/postgres
3
3
FROM docker.io/postgres:17.5
4
+
5
+ # Environment variables for test database setup
6
+ ENV POSTGRES_DB=hreact
7
+ ENV POSTGRES_USER=hreact
8
+ ENV POSTGRES_PASSWORD=hreact
Original file line number Diff line number Diff line change 1
1
# Microsoft SQL Server
2
2
# See https://hub.docker.com/_/microsoft-mssql-server
3
3
FROM mcr.microsoft.com/mssql/server:2022-latest
4
+
5
+ # Environment variables for test database setup
6
+ ENV ACCEPT_EULA=Y
7
+ ENV SA_PASSWORD=hreact123!
8
+ ENV MSSQL_DB=hreact
9
+ ENV MSSQL_USER=hreact
10
+ ENV MSSQL_PASSWORD=hreact123!
You can’t perform that action at this time.
0 commit comments