Switch to new Oracle image and try to improve podman experience
This commit is contained in:
parent
6815c2aa7c
commit
43d2274573
|
@ -1,4 +1,4 @@
|
||||||
# The main CI of Hibernate ORM is https://ci.hibernate.org/job/hibernate-orm-6.0-h2-main/.
|
# The main CI of Hibernate ORM is https://ci.hibernate.org/job/hibernate-orm-pipeline/.
|
||||||
# However, Hibernate ORM builds run on GitHub actions regularly
|
# However, Hibernate ORM builds run on GitHub actions regularly
|
||||||
# to check that it still works and can be used in GitHub forks.
|
# to check that it still works and can be used in GitHub forks.
|
||||||
# See https://docs.github.com/en/free-pro-team@latest/actions
|
# See https://docs.github.com/en/free-pro-team@latest/actions
|
||||||
|
@ -30,34 +30,20 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
# When GitHub Actions supports it: https://github.com/actions/toolkit/issues/399
|
|
||||||
# We will use the experimental flag as indicator whether a failure should cause a workflow failure
|
|
||||||
include:
|
include:
|
||||||
- rdbms: h2
|
- rdbms: h2
|
||||||
experimental: false
|
|
||||||
- rdbms: hsqldb
|
- rdbms: hsqldb
|
||||||
experimental: false
|
|
||||||
- rdbms: derby
|
- rdbms: derby
|
||||||
experimental: false
|
|
||||||
- rdbms: mysql8
|
- rdbms: mysql8
|
||||||
experimental: false
|
|
||||||
- rdbms: mariadb
|
- rdbms: mariadb
|
||||||
experimental: false
|
|
||||||
- rdbms: postgresql_9_5
|
- rdbms: postgresql_9_5
|
||||||
experimental: false
|
|
||||||
- rdbms: postgresql_13
|
- rdbms: postgresql_13
|
||||||
experimental: false
|
|
||||||
- rdbms: oracle
|
- rdbms: oracle
|
||||||
experimental: false
|
|
||||||
- rdbms: db2
|
- rdbms: db2
|
||||||
experimental: false
|
|
||||||
- rdbms: mssql
|
- rdbms: mssql
|
||||||
experimental: false
|
|
||||||
- rdbms: sybase
|
- rdbms: sybase
|
||||||
experimental: false
|
|
||||||
# Running with HANA requires at least 8GB memory just for the database, which we don't have on GH Actions runners
|
# Running with HANA requires at least 8GB memory just for the database, which we don't have on GH Actions runners
|
||||||
# - rdbms: hana
|
# - rdbms: hana
|
||||||
# experimental: true
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
|
|
|
@ -19,33 +19,36 @@ import org.hibernate.jenkins.pipeline.helpers.job.JobHelper
|
||||||
this.helper = new JobHelper(this)
|
this.helper = new JobHelper(this)
|
||||||
|
|
||||||
helper.runWithNotification {
|
helper.runWithNotification {
|
||||||
|
def defaultJdk = '11'
|
||||||
stage('Configure') {
|
stage('Configure') {
|
||||||
this.environments = [
|
this.environments = [
|
||||||
// buildEnv('11', 'h2'),
|
// buildEnv(defaultJdk, 'h2'),
|
||||||
// buildEnv('11', 'hsqldb'),
|
// buildEnv(defaultJdk, 'hsqldb'),
|
||||||
// buildEnv('11', 'derby'),
|
// buildEnv(defaultJdk, 'derby'),
|
||||||
// buildEnv('11', 'mysql8'),
|
// buildEnv(defaultJdk, 'mysql8'),
|
||||||
// buildEnv('11', 'mariadb'),
|
// buildEnv(defaultJdk, 'mariadb'),
|
||||||
// buildEnv('11', 'postgresql_9_5'),
|
// buildEnv(defaultJdk, 'postgresql_9_5'),
|
||||||
// buildEnv('11', 'postgresql_13'),
|
// buildEnv(defaultJdk, 'postgresql_13'),
|
||||||
// buildEnv('11', 'oracle'),
|
// buildEnv(defaultJdk, 'oracle'),
|
||||||
buildEnv('11', 'oracle_ee'),
|
buildEnv(defaultJdk, 'oracle_ee'),
|
||||||
// buildEnv('11', 'db2'),
|
// buildEnv(defaultJdk, 'db2'),
|
||||||
// buildEnv('11', 'mssql'),
|
// buildEnv(defaultJdk, 'mssql'),
|
||||||
// buildEnv('11', 'sybase'),
|
// buildEnv(defaultJdk, 'sybase'),
|
||||||
buildEnv('11', 'hana', 'HANA'),
|
buildEnv(defaultJdk, 'hana', 'HANA'),
|
||||||
buildEnv('11', 's390x', 's390x'),
|
buildEnv(defaultJdk, 's390x', 's390x'),
|
||||||
buildEnv('11', 'tidb', 'tidb', 'tidb_hibernate@pingcap.com'),
|
buildEnv(defaultJdk, 'tidb', 'tidb', 'tidb_hibernate@pingcap.com'),
|
||||||
// Disable EDB for now as the image is not available anymore
|
// Disable EDB for now as the image is not available anymore
|
||||||
// buildEnv('11', 'edb')
|
// buildEnv(defaultJdk, 'edb')
|
||||||
|
buildEnv('17', 'h2'),
|
||||||
|
buildEnv('18', 'h2'),
|
||||||
|
buildEnv('19', 'h2'),
|
||||||
];
|
];
|
||||||
|
|
||||||
helper.configure {
|
helper.configure {
|
||||||
file 'job-configuration.yaml'
|
file 'job-configuration.yaml'
|
||||||
// We don't require the following, but the build helper plugin apparently does
|
// We don't require the following, but the build helper plugin apparently does
|
||||||
jdk {
|
jdk {
|
||||||
defaultTool 'OpenJDK 11 Latest'
|
defaultTool "OpenJDK ${defaultJdk} Latest"
|
||||||
}
|
}
|
||||||
maven {
|
maven {
|
||||||
defaultTool 'Apache Maven 3.8'
|
defaultTool 'Apache Maven 3.8'
|
||||||
|
@ -72,6 +75,10 @@ if (currentBuild.getBuildCauses().toString().contains('BranchIndexingCause')) {
|
||||||
stage('Build') {
|
stage('Build') {
|
||||||
Map<String, Closure> executions = [:]
|
Map<String, Closure> executions = [:]
|
||||||
environments.each { BuildEnvironment buildEnv ->
|
environments.each { BuildEnvironment buildEnv ->
|
||||||
|
// Don't build environments for newer JDKs when this is a PR
|
||||||
|
if ( buildEnv.getVersion() != defaultJdk && helper.scmSource.pullRequest ) {
|
||||||
|
return
|
||||||
|
}
|
||||||
executions.put(buildEnv.tag, {
|
executions.put(buildEnv.tag, {
|
||||||
runBuildOnNode(buildEnv.node) {
|
runBuildOnNode(buildEnv.node) {
|
||||||
// Use withEnv instead of setting env directly, as that is global!
|
// Use withEnv instead of setting env directly, as that is global!
|
||||||
|
@ -118,7 +125,7 @@ stage('Build') {
|
||||||
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
|
docker.withRegistry('https://index.docker.io/v1/', 'hibernateci.hub.docker.com') {
|
||||||
docker.image('quillbuilduser/oracle-18-xe').pull()
|
docker.image('quillbuilduser/oracle-18-xe').pull()
|
||||||
}
|
}
|
||||||
sh "./docker_db.sh oracle"
|
sh "./docker_db.sh oracle_18"
|
||||||
containerName = "oracle"
|
containerName = "oracle"
|
||||||
break;
|
break;
|
||||||
case "db2":
|
case "db2":
|
||||||
|
@ -279,22 +286,14 @@ public class BuildEnvironment {
|
||||||
this.notificationRecipients = notificationRecipients;
|
this.notificationRecipients = notificationRecipients;
|
||||||
String buildJdkTool;
|
String buildJdkTool;
|
||||||
String testJdkTool;
|
String testJdkTool;
|
||||||
switch ( version ) {
|
buildJdkTool = testJdkTool = "OpenJDK ${version} Latest";
|
||||||
case "8":
|
|
||||||
buildJdkTool = testJdkTool = "OpenJDK 8 Latest";
|
|
||||||
break;
|
|
||||||
case "11":
|
|
||||||
buildJdkTool = testJdkTool = "OpenJDK 11 Latest";
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
throw new IllegalArgumentException( "Unsupported version: ${version}" );
|
|
||||||
}
|
|
||||||
this.buildJdkTool = buildJdkTool;
|
this.buildJdkTool = buildJdkTool;
|
||||||
this.testJdkTool = testJdkTool;
|
this.testJdkTool = testJdkTool;
|
||||||
}
|
}
|
||||||
String toString() { getTag() }
|
String toString() { getTag() }
|
||||||
String getTag() { "jdk-$version-$dbName" }
|
String getTag() { "jdk-$version-$dbName" }
|
||||||
String getNode() { node }
|
String getNode() { node }
|
||||||
|
String getVersion() { version }
|
||||||
String getNotificationRecipients() { notificationRecipients }
|
String getNotificationRecipients() { notificationRecipients }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
12
README.adoc
12
README.adoc
|
@ -188,6 +188,18 @@ The following table illustrates a list of commands for various databases that ca
|
||||||
|`./docker_db.sh oracle`
|
|`./docker_db.sh oracle`
|
||||||
|`./gradlew test -Pdb=oracle_ci`
|
|`./gradlew test -Pdb=oracle_ci`
|
||||||
|
|
||||||
|
|Oracle 11g
|
||||||
|
|`./docker_db.sh oracle_11`
|
||||||
|
|`./gradlew test -Pdb=oracle_ci`
|
||||||
|
|
||||||
|
|Oracle XE 18
|
||||||
|
|`./docker_db.sh oracle_18`
|
||||||
|
|`./gradlew test -Pdb=oracle_ci`
|
||||||
|
|
||||||
|
|Oracle XE 21
|
||||||
|
|`./docker_db.sh oracle_21`
|
||||||
|
|`./gradlew test -Pdb=oracle_ci`
|
||||||
|
|
||||||
|Oracle EE
|
|Oracle EE
|
||||||
|`./docker_db.sh oracle_ee`
|
|`./docker_db.sh oracle_ee`
|
||||||
|`./gradlew test -Pdb=oracle_docker`
|
|`./gradlew test -Pdb=oracle_docker`
|
||||||
|
|
|
@ -0,0 +1,21 @@
|
||||||
|
-----BEGIN PGP PUBLIC KEY BLOCK-----
|
||||||
|
Version: GnuPG v1.4.5 (GNU/Linux)
|
||||||
|
|
||||||
|
mQENBFtkV0cBCADStSTCG5qgYtzmWfymHZqxxhfwfS6fdHJcbGUeXsI5dxjeCWhs
|
||||||
|
XarZm6rWZOd5WfSmpXhbKOyM6Ll+6bpSl5ICHLa6fcpizYWEPa8fpg9EGl0cF12G
|
||||||
|
GgVLnnOZ6NIbsoW0LHt2YN0jn8xKVwyPp7KLHB2paZh+KuURERG406GXY/DgCxUx
|
||||||
|
Ffgdelym/gfmt3DSq6GAQRRGHyucMvPYm53r+jVcKsf2Bp6E1XAfqBrD5r0maaCU
|
||||||
|
Wvd7bi0B2Q0hIX0rfDCBpl4rFqvyaMPgn+Bkl6IW37zCkWIXqf1E5eDm/XzP881s
|
||||||
|
+yAvi+JfDwt7AE+Hd2dSf273o3WUdYJGRwyZABEBAAG0OGRldmVsOmt1YmljIE9C
|
||||||
|
UyBQcm9qZWN0IDxkZXZlbDprdWJpY0BidWlsZC5vcGVuc3VzZS5vcmc+iQE+BBMB
|
||||||
|
CAAoBQJfcJJOAhsDBQkIKusHBgsJCAcDAgYVCAIJCgsEFgIDAQIeAQIXgAAKCRBN
|
||||||
|
ZDkDdQYKpB0xCACmtCT6ruPiQa4l0DEptZ+u3NNbZfSVGH4fE4hyTjLbzrCxqcoh
|
||||||
|
xJvDKxspuJ85wWFWMtl57+lFFE1KP0AX2XTT+/v2vN1PIfwgOSw3yp2sgWuIXFAi
|
||||||
|
89YSjSh8G0SGAH90A9YFMnTbllzGoGURjSX03iasW3A408ljbDehA6rpS3t3FD7P
|
||||||
|
PnUF6204orYu00Qvc54an/xVJzxupb69MKW5EeK7x8MJnIToT8hIdOdGVD6axsis
|
||||||
|
x+1U71oMK1gBke7p4QPUdhJFpSUd6kT8bcO+7rYouoljFNYkUfwnqtUn7525fkfg
|
||||||
|
uDqqXvOJMpJ/sK1ajHOeehp5T4Q45L/qUCb3iEYEExECAAYFAltkV0cACgkQOzAR
|
||||||
|
t2udZSOoswCdF44NTN09DwhPFbNYhEMb9juP5ykAn0bcELvuKmgDwEwZMrPQkG8t
|
||||||
|
Pu9n
|
||||||
|
=42uC
|
||||||
|
-----END PGP PUBLIC KEY BLOCK-----
|
|
@ -15,7 +15,7 @@ elif [ "$RDBMS" == 'postgresql_13' ]; then
|
||||||
elif [ "$RDBMS" == 'db2' ]; then
|
elif [ "$RDBMS" == 'db2' ]; then
|
||||||
bash $DIR/../docker_db.sh db2
|
bash $DIR/../docker_db.sh db2
|
||||||
elif [ "$RDBMS" == 'oracle' ]; then
|
elif [ "$RDBMS" == 'oracle' ]; then
|
||||||
bash $DIR/../docker_db.sh oracle
|
bash $DIR/../docker_db.sh oracle_18
|
||||||
elif [ "$RDBMS" == 'mssql' ]; then
|
elif [ "$RDBMS" == 'mssql' ]; then
|
||||||
bash $DIR/../docker_db.sh mssql
|
bash $DIR/../docker_db.sh mssql
|
||||||
elif [ "$RDBMS" == 'hana' ]; then
|
elif [ "$RDBMS" == 'hana' ]; then
|
||||||
|
|
187
docker_db.sh
187
docker_db.sh
|
@ -1,15 +1,30 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
|
|
||||||
|
if command -v podman > /dev/null; then
|
||||||
|
CONTAINER_CLI=$(command -v podman)
|
||||||
|
HEALTCHECK_PATH="{{.State.Healthcheck.Status}}"
|
||||||
|
# Only use sudo for podman
|
||||||
|
if command -v sudo > /dev/null; then
|
||||||
|
PRIVILEGED_CLI="sudo"
|
||||||
|
else
|
||||||
|
PRIVILEGED_CLI=""
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
CONTAINER_CLI=$(command -v docker)
|
||||||
|
HEALTCHECK_PATH="{{.State.Health.Status}}"
|
||||||
|
PRIVILEGED_CLI=""
|
||||||
|
fi
|
||||||
|
|
||||||
mysql_5_7() {
|
mysql_5_7() {
|
||||||
docker rm -f mysql || true
|
$CONTAINER_CLI rm -f mysql || true
|
||||||
docker run --name mysql -e MYSQL_USER=hibernate_orm_test -e MYSQL_PASSWORD=hibernate_orm_test -e MYSQL_DATABASE=hibernate_orm_test -e MYSQL_ROOT_PASSWORD=hibernate_orm_test -p3306:3306 -d mysql:5.7 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --skip-character-set-client-handshake --log-bin-trust-function-creators=1
|
$CONTAINER_CLI run --name mysql -e MYSQL_USER=hibernate_orm_test -e MYSQL_PASSWORD=hibernate_orm_test -e MYSQL_DATABASE=hibernate_orm_test -e MYSQL_ROOT_PASSWORD=hibernate_orm_test -p3306:3306 -d docker.io/mysql:5.7 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --skip-character-set-client-handshake --log-bin-trust-function-creators=1
|
||||||
# Give the container some time to start
|
# Give the container some time to start
|
||||||
OUTPUT=
|
OUTPUT=
|
||||||
n=0
|
n=0
|
||||||
until [ "$n" -ge 5 ]
|
until [ "$n" -ge 5 ]
|
||||||
do
|
do
|
||||||
# Need to access STDERR. Thanks for the snippet https://stackoverflow.com/a/56577569/412446
|
# Need to access STDERR. Thanks for the snippet https://stackoverflow.com/a/56577569/412446
|
||||||
{ OUTPUT="$( { docker logs mysql; } 2>&1 1>&3 3>&- )"; } 3>&1;
|
{ OUTPUT="$( { $CONTAINER_CLI logs mysql; } 2>&1 1>&3 3>&- )"; } 3>&1;
|
||||||
if [[ $OUTPUT == *"ready for connections"* ]]; then
|
if [[ $OUTPUT == *"ready for connections"* ]]; then
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
|
@ -25,15 +40,15 @@ mysql_5_7() {
|
||||||
}
|
}
|
||||||
|
|
||||||
mysql_8_0() {
|
mysql_8_0() {
|
||||||
docker rm -f mysql || true
|
$CONTAINER_CLI rm -f mysql || true
|
||||||
docker run --name mysql -e MYSQL_USER=hibernate_orm_test -e MYSQL_PASSWORD=hibernate_orm_test -e MYSQL_ROOT_PASSWORD=hibernate_orm_test -e MYSQL_DATABASE=hibernate_orm_test -e MYSQL_ROOT_PASSWORD=hibernate_orm_test -p3306:3306 -d mysql:8.0.21 --character-set-server=utf8mb4 --collation-server=utf8mb4_0900_as_cs --skip-character-set-client-handshake --log-bin-trust-function-creators=1
|
$CONTAINER_CLI run --name mysql -e MYSQL_USER=hibernate_orm_test -e MYSQL_PASSWORD=hibernate_orm_test -e MYSQL_ROOT_PASSWORD=hibernate_orm_test -e MYSQL_DATABASE=hibernate_orm_test -e MYSQL_ROOT_PASSWORD=hibernate_orm_test -p3306:3306 -d docker.io/mysql:8.0.21 --character-set-server=utf8mb4 --collation-server=utf8mb4_0900_as_cs --skip-character-set-client-handshake --log-bin-trust-function-creators=1
|
||||||
# Give the container some time to start
|
# Give the container some time to start
|
||||||
OUTPUT=
|
OUTPUT=
|
||||||
n=0
|
n=0
|
||||||
until [ "$n" -ge 5 ]
|
until [ "$n" -ge 5 ]
|
||||||
do
|
do
|
||||||
# Need to access STDERR. Thanks for the snippet https://stackoverflow.com/a/56577569/412446
|
# Need to access STDERR. Thanks for the snippet https://stackoverflow.com/a/56577569/412446
|
||||||
{ OUTPUT="$( { docker logs mysql; } 2>&1 1>&3 3>&- )"; } 3>&1;
|
{ OUTPUT="$( { $CONTAINER_CLI logs mysql; } 2>&1 1>&3 3>&- )"; } 3>&1;
|
||||||
if [[ $OUTPUT == *"ready for connections"* ]]; then
|
if [[ $OUTPUT == *"ready for connections"* ]]; then
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
|
@ -49,14 +64,14 @@ mysql_8_0() {
|
||||||
}
|
}
|
||||||
|
|
||||||
mariadb() {
|
mariadb() {
|
||||||
docker rm -f mariadb || true
|
$CONTAINER_CLI rm -f mariadb || true
|
||||||
docker run --name mariadb -e MYSQL_USER=hibernate_orm_test -e MYSQL_PASSWORD=hibernate_orm_test -e MYSQL_DATABASE=hibernate_orm_test -e MYSQL_ROOT_PASSWORD=hibernate_orm_test -p3306:3306 -d mariadb:10.5.8 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --skip-character-set-client-handshake
|
$CONTAINER_CLI run --name mariadb -e MYSQL_USER=hibernate_orm_test -e MYSQL_PASSWORD=hibernate_orm_test -e MYSQL_DATABASE=hibernate_orm_test -e MYSQL_ROOT_PASSWORD=hibernate_orm_test -p3306:3306 -d docker.io/mariadb:10.5.8 --character-set-server=utf8mb4 --collation-server=utf8mb4_bin --skip-character-set-client-handshake
|
||||||
OUTPUT=
|
OUTPUT=
|
||||||
n=0
|
n=0
|
||||||
until [ "$n" -ge 5 ]
|
until [ "$n" -ge 5 ]
|
||||||
do
|
do
|
||||||
# Need to access STDERR. Thanks for the snippet https://stackoverflow.com/a/56577569/412446
|
# Need to access STDERR. Thanks for the snippet https://stackoverflow.com/a/56577569/412446
|
||||||
{ OUTPUT="$( { docker logs mariadb; } 2>&1 1>&3 3>&- )"; } 3>&1;
|
{ OUTPUT="$( { $CONTAINER_CLI logs mariadb; } 2>&1 1>&3 3>&- )"; } 3>&1;
|
||||||
if [[ $OUTPUT == *"ready for connections"* ]]; then
|
if [[ $OUTPUT == *"ready for connections"* ]]; then
|
||||||
break;
|
break;
|
||||||
fi
|
fi
|
||||||
|
@ -72,36 +87,37 @@ mariadb() {
|
||||||
}
|
}
|
||||||
|
|
||||||
postgresql_9_5() {
|
postgresql_9_5() {
|
||||||
docker rm -f postgres || true
|
$CONTAINER_CLI rm -f postgres || true
|
||||||
docker run --name postgres -e POSTGRES_USER=hibernate_orm_test -e POSTGRES_PASSWORD=hibernate_orm_test -e POSTGRES_DB=hibernate_orm_test -p5432:5432 -d postgis/postgis:9.5-2.5
|
$CONTAINER_CLI run --name postgres -e POSTGRES_USER=hibernate_orm_test -e POSTGRES_PASSWORD=hibernate_orm_test -e POSTGRES_DB=hibernate_orm_test -p5432:5432 -d docker.io/postgis/postgis:9.5-2.5
|
||||||
}
|
}
|
||||||
|
|
||||||
postgresql_13() {
|
postgresql_13() {
|
||||||
docker rm -f postgres || true
|
$CONTAINER_CLI rm -f postgres || true
|
||||||
docker run --name postgres -e POSTGRES_USER=hibernate_orm_test -e POSTGRES_PASSWORD=hibernate_orm_test -e POSTGRES_DB=hibernate_orm_test -p5432:5432 -d postgis/postgis:13-3.1
|
$CONTAINER_CLI run --name postgres -e POSTGRES_USER=hibernate_orm_test -e POSTGRES_PASSWORD=hibernate_orm_test -e POSTGRES_DB=hibernate_orm_test -p5432:5432 -d docker.io/postgis/postgis:13-3.1
|
||||||
}
|
}
|
||||||
|
|
||||||
edb() {
|
edb() {
|
||||||
#docker login containers.enterprisedb.com
|
#$CONTAINER_CLI login containers.enterprisedb.com
|
||||||
docker rm -f edb || true
|
$CONTAINER_CLI rm -f edb || true
|
||||||
docker run --name edb -e ACCEPT_EULA=Yes -e DATABASE_USER=hibernate_orm_test -e DATABASE_USER_PASSWORD=hibernate_orm_test -e ENTERPRISEDB_PASSWORD=hibernate_orm_test -e DATABASE_NAME=hibernate_orm_test -e PGPORT=5433 -p 5433:5433 --mount type=tmpfs,destination=/edbvolume -d containers.enterprisedb.com/edb/edb-as-lite:v11
|
$CONTAINER_CLI run --name edb -e ACCEPT_EULA=Yes -e DATABASE_USER=hibernate_orm_test -e DATABASE_USER_PASSWORD=hibernate_orm_test -e ENTERPRISEDB_PASSWORD=hibernate_orm_test -e DATABASE_NAME=hibernate_orm_test -e PGPORT=5433 -p 5433:5433 --mount type=tmpfs,destination=/edbvolume -d containers.enterprisedb.com/edb/edb-as-lite:v11
|
||||||
}
|
}
|
||||||
|
|
||||||
db2() {
|
db2() {
|
||||||
docker rm -f db2 || true
|
echo $CONTAINER_CLI
|
||||||
docker run --name db2 --privileged -e DB2INSTANCE=orm_test -e DB2INST1_PASSWORD=orm_test -e DBNAME=orm_test -e LICENSE=accept -e AUTOCONFIG=false -e ARCHIVE_LOGS=false -e TO_CREATE_SAMPLEDB=false -e REPODB=false -p 50000:50000 -d ibmcom/db2:11.5.7.0
|
$PRIVILEGED_CLI $CONTAINER_CLI rm -f db2 || true
|
||||||
|
$PRIVILEGED_CLI $CONTAINER_CLI run --name db2 --privileged -e DB2INSTANCE=orm_test -e DB2INST1_PASSWORD=orm_test -e DBNAME=orm_test -e LICENSE=accept -e AUTOCONFIG=false -e ARCHIVE_LOGS=false -e TO_CREATE_SAMPLEDB=false -e REPODB=false -p 50000:50000 -d docker.io/ibmcom/db2:11.5.7.0
|
||||||
# Give the container some time to start
|
# Give the container some time to start
|
||||||
OUTPUT=
|
OUTPUT=
|
||||||
while [[ $OUTPUT != *"INSTANCE"* ]]; do
|
while [[ $OUTPUT != *"INSTANCE"* ]]; do
|
||||||
echo "Waiting for DB2 to start..."
|
echo "Waiting for DB2 to start..."
|
||||||
sleep 10
|
sleep 10
|
||||||
OUTPUT=$(docker logs db2)
|
OUTPUT=$($PRIVILEGED_CLI $CONTAINER_CLI logs db2)
|
||||||
done
|
done
|
||||||
docker exec -t db2 su - orm_test bash -c ". /database/config/orm_test/sqllib/db2profile && /database/config/orm_test/sqllib/bin/db2 'connect to orm_test' && /database/config/orm_test/sqllib/bin/db2 'CREATE USER TEMPORARY TABLESPACE usr_tbsp MANAGED BY AUTOMATIC STORAGE'"
|
$PRIVILEGED_CLI $CONTAINER_CLI exec -t db2 su - orm_test bash -c ". /database/config/orm_test/sqllib/db2profile && /database/config/orm_test/sqllib/bin/db2 'connect to orm_test' && /database/config/orm_test/sqllib/bin/db2 'CREATE USER TEMPORARY TABLESPACE usr_tbsp MANAGED BY AUTOMATIC STORAGE'"
|
||||||
}
|
}
|
||||||
|
|
||||||
db2_spatial() {
|
db2_spatial() {
|
||||||
docker rm -f db2spatial || true
|
$PRIVILEGED_CLI $CONTAINER_CLI rm -f db2spatial || true
|
||||||
temp_dir=$(mktemp -d)
|
temp_dir=$(mktemp -d)
|
||||||
cat <<EOF >${temp_dir}/ewkt.sql
|
cat <<EOF >${temp_dir}/ewkt.sql
|
||||||
create or replace function db2gse.asewkt(geometry db2gse.st_geometry)
|
create or replace function db2gse.asewkt(geometry db2gse.st_geometry)
|
||||||
|
@ -140,35 +156,35 @@ CREATE TRANSFORM FOR db2gse.ST_Geometry DB2_PROGRAM (
|
||||||
TO SQL WITH FUNCTION db2gse.geomfromewkt(varchar(32000)) )
|
TO SQL WITH FUNCTION db2gse.geomfromewkt(varchar(32000)) )
|
||||||
;
|
;
|
||||||
EOF
|
EOF
|
||||||
docker run --name db2spatial --privileged -e DB2INSTANCE=orm_test -e DB2INST1_PASSWORD=orm_test -e DBNAME=orm_test -e LICENSE=accept -e AUTOCONFIG=false -e ARCHIVE_LOGS=false -e TO_CREATE_SAMPLEDB=false -e REPODB=false \
|
$PRIVILEGED_CLI $CONTAINER_CLI run --name db2spatial --privileged -e DB2INSTANCE=orm_test -e DB2INST1_PASSWORD=orm_test -e DBNAME=orm_test -e LICENSE=accept -e AUTOCONFIG=false -e ARCHIVE_LOGS=false -e TO_CREATE_SAMPLEDB=false -e REPODB=false \
|
||||||
-v ${temp_dir}:/conf \
|
-v ${temp_dir}:/conf \
|
||||||
-p 50000:50000 -d ibmcom/db2:11.5.5.0
|
-p 50000:50000 -d docker.io/ibmcom/db2:11.5.5.0
|
||||||
|
|
||||||
# Give the container some time to start
|
# Give the container some time to start
|
||||||
OUTPUT=
|
OUTPUT=
|
||||||
while [[ $OUTPUT != *"Setup has completed."* ]]; do
|
while [[ $OUTPUT != *"Setup has completed."* ]]; do
|
||||||
echo "Waiting for DB2 to start..."
|
echo "Waiting for DB2 to start..."
|
||||||
sleep 10
|
sleep 10
|
||||||
OUTPUT=$(docker logs db2spatial)
|
OUTPUT=$($PRIVILEGED_CLI $CONTAINER_CLI logs db2spatial)
|
||||||
done
|
done
|
||||||
sleep 10
|
sleep 10
|
||||||
echo "Enabling spatial extender"
|
echo "Enabling spatial extender"
|
||||||
docker exec -t db2spatial su - orm_test bash -c "/database/config/orm_test/sqllib/db2profile && /database/config/orm_test/sqllib/bin/db2se enable_db orm_test"
|
$PRIVILEGED_CLI $CONTAINER_CLI exec -t db2spatial su - orm_test bash -c "/database/config/orm_test/sqllib/db2profile && /database/config/orm_test/sqllib/bin/db2se enable_db orm_test"
|
||||||
echo "Installing required transform group"
|
echo "Installing required transform group"
|
||||||
docker exec -t db2spatial su - orm_test bash -c "/database/config/orm_test/sqllib/db2profile && /database/config/orm_test/sqllib/bin/db2 'connect to orm_test' && /database/config/orm_test/sqllib/bin/db2 -tvf /conf/ewkt.sql"
|
$PRIVILEGED_CLI $CONTAINER_CLI exec -t db2spatial su - orm_test bash -c "/database/config/orm_test/sqllib/db2profile && /database/config/orm_test/sqllib/bin/db2 'connect to orm_test' && /database/config/orm_test/sqllib/bin/db2 -tvf /conf/ewkt.sql"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
mssql() {
|
mssql() {
|
||||||
docker rm -f mssql || true
|
$CONTAINER_CLI rm -f mssql || true
|
||||||
docker run --name mssql -d -p 1433:1433 -e "SA_PASSWORD=Hibernate_orm_test" -e ACCEPT_EULA=Y mcr.microsoft.com/mssql/server:2017-CU13
|
$CONTAINER_CLI run --name mssql -d -p 1433:1433 -e "SA_PASSWORD=Hibernate_orm_test" -e ACCEPT_EULA=Y mcr.microsoft.com/mssql/server:2017-CU13
|
||||||
sleep 5
|
sleep 5
|
||||||
n=0
|
n=0
|
||||||
until [ "$n" -ge 5 ]
|
until [ "$n" -ge 5 ]
|
||||||
do
|
do
|
||||||
# We need a database that uses a non-lock based MVCC approach
|
# We need a database that uses a non-lock based MVCC approach
|
||||||
# https://github.com/microsoft/homebrew-mssql-release/issues/2#issuecomment-682285561
|
# https://github.com/microsoft/homebrew-mssql-release/issues/2#issuecomment-682285561
|
||||||
docker exec mssql bash -c 'echo "create database hibernate_orm_test collate SQL_Latin1_General_CP1_CS_AS; alter database hibernate_orm_test set READ_COMMITTED_SNAPSHOT ON" | /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Hibernate_orm_test -i /dev/stdin' && break
|
$CONTAINER_CLI exec mssql bash -c 'echo "create database hibernate_orm_test collate SQL_Latin1_General_CP1_CS_AS; alter database hibernate_orm_test set READ_COMMITTED_SNAPSHOT ON" | /opt/mssql-tools/bin/sqlcmd -S localhost -U sa -P Hibernate_orm_test -i /dev/stdin' && break
|
||||||
echo "Waiting for SQL Server to start..."
|
echo "Waiting for SQL Server to start..."
|
||||||
n=$((n+1))
|
n=$((n+1))
|
||||||
sleep 5
|
sleep 5
|
||||||
|
@ -181,9 +197,9 @@ mssql() {
|
||||||
}
|
}
|
||||||
|
|
||||||
sybase() {
|
sybase() {
|
||||||
docker rm -f sybase || true
|
$CONTAINER_CLI rm -f sybase || true
|
||||||
# Yup, that sucks, but on ubuntu we need to use -T11889 as per: https://github.com/DataGrip/docker-env/issues/12
|
# Yup, that sucks, but on ubuntu we need to use -T11889 as per: https://github.com/DataGrip/docker-env/issues/12
|
||||||
docker run -d -p 5000:5000 -p 5001:5001 --name sybase --entrypoint /bin/bash nguoianphu/docker-sybase -c "source /opt/sybase/SYBASE.sh
|
$CONTAINER_CLI run -d -p 5000:5000 -p 5001:5001 --name sybase --entrypoint /bin/bash docker.io/nguoianphu/docker-sybase -c "source /opt/sybase/SYBASE.sh
|
||||||
/opt/sybase/ASE-16_0/bin/dataserver \
|
/opt/sybase/ASE-16_0/bin/dataserver \
|
||||||
-d/opt/sybase/data/master.dat \
|
-d/opt/sybase/data/master.dat \
|
||||||
-e/opt/sybase/ASE-16_0/install/MYSYBASE.log \
|
-e/opt/sybase/ASE-16_0/install/MYSYBASE.log \
|
||||||
|
@ -198,7 +214,7 @@ exit 0
|
||||||
"
|
"
|
||||||
|
|
||||||
sybase_check() {
|
sybase_check() {
|
||||||
docker exec sybase bash -c "source /opt/sybase/SYBASE.sh;
|
$CONTAINER_CLI exec sybase bash -c "source /opt/sybase/SYBASE.sh;
|
||||||
/opt/sybase/OCS-16_0/bin/isql -Usa -P myPassword -S MYSYBASE <<EOF
|
/opt/sybase/OCS-16_0/bin/isql -Usa -P myPassword -S MYSYBASE <<EOF
|
||||||
Select name from sysdatabases where status2 & 48 > 0
|
Select name from sysdatabases where status2 & 48 > 0
|
||||||
go
|
go
|
||||||
|
@ -219,8 +235,8 @@ EOF
|
||||||
done
|
done
|
||||||
if (( $j == 30 )); then
|
if (( $j == 30 )); then
|
||||||
echo "Failed starting Sybase"
|
echo "Failed starting Sybase"
|
||||||
docker ps -a
|
$CONTAINER_CLI ps -a
|
||||||
docker logs sybase
|
$CONTAINER_CLI logs sybase
|
||||||
sybase_check
|
sybase_check
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
@ -228,7 +244,7 @@ EOF
|
||||||
export SYBASE_DB=hibernate_orm_test
|
export SYBASE_DB=hibernate_orm_test
|
||||||
export SYBASE_USER=hibernate_orm_test
|
export SYBASE_USER=hibernate_orm_test
|
||||||
export SYBASE_PASSWORD=hibernate_orm_test
|
export SYBASE_PASSWORD=hibernate_orm_test
|
||||||
docker exec sybase bash -c "source /opt/sybase/SYBASE.sh;
|
$CONTAINER_CLI exec sybase bash -c "source /opt/sybase/SYBASE.sh;
|
||||||
cat <<-EOSQL > init1.sql
|
cat <<-EOSQL > init1.sql
|
||||||
use master
|
use master
|
||||||
go
|
go
|
||||||
|
@ -302,19 +318,24 @@ EOSQL
|
||||||
echo "Sybase successfully started"
|
echo "Sybase successfully started"
|
||||||
}
|
}
|
||||||
|
|
||||||
oracle() {
|
oracle_setup() {
|
||||||
docker rm -f oracle || true
|
HEALTHSTATUS=
|
||||||
# We need to use the defaults
|
until [ "$HEALTHSTATUS" == "healthy" ];
|
||||||
# SYSTEM/Oracle18
|
|
||||||
docker run --shm-size=1536m --name oracle -d -p 1521:1521 --ulimit nofile=1048576:1048576 quillbuilduser/oracle-18-xe
|
|
||||||
until [ "`docker inspect -f {{.State.Health.Status}} oracle`" == "healthy" ];
|
|
||||||
do
|
do
|
||||||
echo "Waiting for Oracle to start..."
|
echo "Waiting for Oracle to start..."
|
||||||
sleep 10;
|
sleep 5;
|
||||||
|
# On WSL, health-checks intervals don't work for Podman, so run them manually
|
||||||
|
if command -v podman > /dev/null; then
|
||||||
|
$CONTAINER_CLI healthcheck run oracle > /dev/null
|
||||||
|
fi
|
||||||
|
HEALTHSTATUS="`$CONTAINER_CLI inspect -f $HEALTCHECK_PATH oracle`"
|
||||||
|
HEALTHSTATUS=${HEALTHSTATUS##+( )} #Remove longest matching series of spaces from the front
|
||||||
|
HEALTHSTATUS=${HEALTHSTATUS%%+( )} #Remove longest matching series of spaces from the back
|
||||||
done
|
done
|
||||||
|
sleep 2;
|
||||||
echo "Oracle successfully started"
|
echo "Oracle successfully started"
|
||||||
# We increase file sizes to avoid online resizes as that requires lots of CPU which is restricted in XE
|
# We increase file sizes to avoid online resizes as that requires lots of CPU which is restricted in XE
|
||||||
docker exec oracle bash -c "source /home/oracle/.bashrc; bash -c \"
|
$CONTAINER_CLI exec oracle bash -c "source /home/oracle/.bashrc; bash -c \"
|
||||||
cat <<EOF | \$ORACLE_HOME/bin/sqlplus sys/Oracle18@localhost/XE as sysdba
|
cat <<EOF | \$ORACLE_HOME/bin/sqlplus sys/Oracle18@localhost/XE as sysdba
|
||||||
alter database tempfile '/opt/oracle/oradata/XE/temp01.dbf' resize 400M;
|
alter database tempfile '/opt/oracle/oradata/XE/temp01.dbf' resize 400M;
|
||||||
alter database datafile '/opt/oracle/oradata/XE/system01.dbf' resize 1000M;
|
alter database datafile '/opt/oracle/oradata/XE/system01.dbf' resize 1000M;
|
||||||
|
@ -336,22 +357,73 @@ alter system set open_cursors=1000 sid='*' scope=both;
|
||||||
EOF\""
|
EOF\""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
oracle_legacy() {
|
||||||
|
$CONTAINER_CLI rm -f oracle || true
|
||||||
|
# We need to use the defaults
|
||||||
|
# SYSTEM/Oracle18
|
||||||
|
$CONTAINER_CLI run --shm-size=1536m --name oracle -d -p 1521:1521 --ulimit nofile=1048576:1048576 docker.io/quillbuilduser/oracle-18-xe
|
||||||
|
oracle_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
oracle() {
|
||||||
|
oracle_18
|
||||||
|
}
|
||||||
|
|
||||||
|
oracle_11() {
|
||||||
|
$CONTAINER_CLI rm -f oracle || true
|
||||||
|
# We need to use the defaults
|
||||||
|
# SYSTEM/Oracle18
|
||||||
|
$CONTAINER_CLI run --name oracle -d -p 1521:1521 -e ORACLE_PASSWORD=Oracle18 \
|
||||||
|
--health-cmd healthcheck.sh \
|
||||||
|
--health-interval 5s \
|
||||||
|
--health-timeout 5s \
|
||||||
|
--health-retries 10 \
|
||||||
|
docker.io/gvenzl/oracle-xe:11.2.0.2-full
|
||||||
|
oracle_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
oracle_18() {
|
||||||
|
$CONTAINER_CLI rm -f oracle || true
|
||||||
|
# We need to use the defaults
|
||||||
|
# SYSTEM/Oracle18
|
||||||
|
$CONTAINER_CLI run --name oracle -d -p 1521:1521 -e ORACLE_PASSWORD=Oracle18 \
|
||||||
|
--health-cmd healthcheck.sh \
|
||||||
|
--health-interval 5s \
|
||||||
|
--health-timeout 5s \
|
||||||
|
--health-retries 10 \
|
||||||
|
docker.io/gvenzl/oracle-xe:18.4.0-full
|
||||||
|
oracle_setup
|
||||||
|
}
|
||||||
|
|
||||||
|
oracle_21() {
|
||||||
|
$CONTAINER_CLI rm -f oracle || true
|
||||||
|
# We need to use the defaults
|
||||||
|
# SYSTEM/Oracle18
|
||||||
|
$CONTAINER_CLI run --name oracle -d -p 1521:1521 -e ORACLE_PASSWORD=Oracle18 \
|
||||||
|
--health-cmd healthcheck.sh \
|
||||||
|
--health-interval 5s \
|
||||||
|
--health-timeout 5s \
|
||||||
|
--health-retries 10 \
|
||||||
|
docker.io/gvenzl/oracle-xe:21.3.0-full
|
||||||
|
oracle_setup
|
||||||
|
}
|
||||||
|
|
||||||
oracle_ee() {
|
oracle_ee() {
|
||||||
#docker login
|
#$CONTAINER_CLI login
|
||||||
docker rm -f oracle || true
|
$CONTAINER_CLI rm -f oracle || true
|
||||||
# We need to use the defaults
|
# We need to use the defaults
|
||||||
# sys as sysdba/Oradoc_db1
|
# sys as sysdba/Oradoc_db1
|
||||||
docker run --name oracle -d -p 1521:1521 store/oracle/database-enterprise:12.2.0.1-slim
|
$CONTAINER_CLI run --name oracle -d -p 1521:1521 docker.io/store/oracle/database-enterprise:12.2.0.1-slim
|
||||||
# Give the container some time to start
|
# Give the container some time to start
|
||||||
OUTPUT=
|
OUTPUT=
|
||||||
while [[ $OUTPUT != *"NLS_CALENDAR"* ]]; do
|
while [[ $OUTPUT != *"NLS_CALENDAR"* ]]; do
|
||||||
echo "Waiting for Oracle to start..."
|
echo "Waiting for Oracle to start..."
|
||||||
sleep 10
|
sleep 10
|
||||||
OUTPUT=$(docker logs oracle)
|
OUTPUT=$($CONTAINER_CLI logs oracle)
|
||||||
done
|
done
|
||||||
echo "Oracle successfully started"
|
echo "Oracle successfully started"
|
||||||
# We increase file sizes to avoid online resizes as that requires lots of CPU which is restricted in XE
|
# We increase file sizes to avoid online resizes as that requires lots of CPU which is restricted in XE
|
||||||
docker exec oracle bash -c "source /home/oracle/.bashrc; \$ORACLE_HOME/bin/sqlplus sys/Oradoc_db1@ORCLCDB as sysdba <<EOF
|
$CONTAINER_CLI exec oracle bash -c "source /home/oracle/.bashrc; \$ORACLE_HOME/bin/sqlplus sys/Oradoc_db1@ORCLCDB as sysdba <<EOF
|
||||||
create user c##hibernate_orm_test identified by hibernate_orm_test container=all;
|
create user c##hibernate_orm_test identified by hibernate_orm_test container=all;
|
||||||
grant connect, resource, dba to c##hibernate_orm_test container=all;
|
grant connect, resource, dba to c##hibernate_orm_test container=all;
|
||||||
alter database tempfile '/u02/app/oracle/oradata/ORCL/temp01.dbf' resize 400M;
|
alter database tempfile '/u02/app/oracle/oradata/ORCL/temp01.dbf' resize 400M;
|
||||||
|
@ -380,8 +452,8 @@ hana() {
|
||||||
temp_dir=$(mktemp -d)
|
temp_dir=$(mktemp -d)
|
||||||
echo '{"master_password" : "H1bernate_test"}' >$temp_dir/password.json
|
echo '{"master_password" : "H1bernate_test"}' >$temp_dir/password.json
|
||||||
chmod 777 -R $temp_dir
|
chmod 777 -R $temp_dir
|
||||||
docker rm -f hana || true
|
$CONTAINER_CLI rm -f hana || true
|
||||||
docker run -d --name hana -p 39013:39013 -p 39017:39017 -p 39041-39045:39041-39045 -p 1128-1129:1128-1129 -p 59013-59014:59013-59014 \
|
$CONTAINER_CLI run -d --name hana -p 39013:39013 -p 39017:39017 -p 39041-39045:39041-39045 -p 1128-1129:1128-1129 -p 59013-59014:59013-59014 \
|
||||||
--memory=8g \
|
--memory=8g \
|
||||||
--ulimit nofile=1048576:1048576 \
|
--ulimit nofile=1048576:1048576 \
|
||||||
--sysctl kernel.shmmax=1073741824 \
|
--sysctl kernel.shmmax=1073741824 \
|
||||||
|
@ -389,7 +461,7 @@ hana() {
|
||||||
--sysctl kernel.shmmni=4096 \
|
--sysctl kernel.shmmni=4096 \
|
||||||
--sysctl kernel.shmall=8388608 \
|
--sysctl kernel.shmall=8388608 \
|
||||||
-v $temp_dir:/config \
|
-v $temp_dir:/config \
|
||||||
store/saplabs/hanaexpress:2.00.045.00.20200121.1 \
|
docker.io/store/saplabs/hanaexpress:2.00.045.00.20200121.1 \
|
||||||
--passwords-url file:///config/password.json \
|
--passwords-url file:///config/password.json \
|
||||||
--agree-to-sap-license
|
--agree-to-sap-license
|
||||||
# Give the container some time to start
|
# Give the container some time to start
|
||||||
|
@ -397,22 +469,22 @@ hana() {
|
||||||
while [[ $OUTPUT != *"Startup finished"* ]]; do
|
while [[ $OUTPUT != *"Startup finished"* ]]; do
|
||||||
echo "Waiting for HANA to start..."
|
echo "Waiting for HANA to start..."
|
||||||
sleep 10
|
sleep 10
|
||||||
OUTPUT=$(docker logs hana)
|
OUTPUT=$($CONTAINER_CLI logs hana)
|
||||||
done
|
done
|
||||||
echo "HANA successfully started"
|
echo "HANA successfully started"
|
||||||
}
|
}
|
||||||
|
|
||||||
cockroachdb() {
|
cockroachdb() {
|
||||||
docker rm -f cockroach || true
|
$CONTAINER_CLI rm -f cockroach || true
|
||||||
docker run -d --name=cockroach -p 26257:26257 -p 8080:8080 cockroachdb/cockroach:v20.2.4 start-single-node --insecure
|
$CONTAINER_CLI run -d --name=cockroach -p 26257:26257 -p 8080:8080 docker.io/cockroachdb/cockroach:v20.2.4 start-single-node --insecure
|
||||||
OUTPUT=
|
OUTPUT=
|
||||||
while [[ $OUTPUT != *"CockroachDB node starting"* ]]; do
|
while [[ $OUTPUT != *"CockroachDB node starting"* ]]; do
|
||||||
echo "Waiting for CockroachDB to start..."
|
echo "Waiting for CockroachDB to start..."
|
||||||
sleep 10
|
sleep 10
|
||||||
OUTPUT=$(docker logs cockroach)
|
OUTPUT=$($CONTAINER_CLI logs cockroach)
|
||||||
done
|
done
|
||||||
echo "Enabling experimental box2d operators"
|
echo "Enabling experimental box2d operators"
|
||||||
docker exec -it cockroach bash -c "cat <<EOF | ./cockroach sql --insecure
|
$CONTAINER_CLI exec -it cockroach bash -c "cat <<EOF | ./cockroach sql --insecure
|
||||||
SET CLUSTER SETTING sql.spatial.experimental_box2d_comparison_operators.enabled = on;
|
SET CLUSTER SETTING sql.spatial.experimental_box2d_comparison_operators.enabled = on;
|
||||||
quit
|
quit
|
||||||
EOF
|
EOF
|
||||||
|
@ -434,6 +506,9 @@ if [ -z ${1} ]; then
|
||||||
echo -e "\tmysql_5_7"
|
echo -e "\tmysql_5_7"
|
||||||
echo -e "\tmysql_8_0"
|
echo -e "\tmysql_8_0"
|
||||||
echo -e "\toracle"
|
echo -e "\toracle"
|
||||||
|
echo -e "\toracle_11"
|
||||||
|
echo -e "\toracle_18"
|
||||||
|
echo -e "\toracle_21"
|
||||||
echo -e "\toracle_ee"
|
echo -e "\toracle_ee"
|
||||||
echo -e "\tpostgis"
|
echo -e "\tpostgis"
|
||||||
echo -e "\tpostgresql_13"
|
echo -e "\tpostgresql_13"
|
||||||
|
|
|
@ -83,8 +83,6 @@ dependencies {
|
||||||
testRuntimeOnly libraries.derby
|
testRuntimeOnly libraries.derby
|
||||||
testRuntimeOnly libraries.hsqldb
|
testRuntimeOnly libraries.hsqldb
|
||||||
testRuntimeOnly libraries.postgresql
|
testRuntimeOnly libraries.postgresql
|
||||||
testRuntimeOnly libraries.mysql
|
|
||||||
testRuntimeOnly libraries.mariadb
|
|
||||||
testRuntimeOnly libraries.mssql
|
testRuntimeOnly libraries.mssql
|
||||||
testRuntimeOnly libraries.informix
|
testRuntimeOnly libraries.informix
|
||||||
testRuntimeOnly libraries.cockroachdb
|
testRuntimeOnly libraries.cockroachdb
|
||||||
|
@ -100,6 +98,12 @@ dependencies {
|
||||||
else if ( db.startsWith( 'hana' ) ) {
|
else if ( db.startsWith( 'hana' ) ) {
|
||||||
testRuntimeOnly libraries.hana
|
testRuntimeOnly libraries.hana
|
||||||
}
|
}
|
||||||
|
else if ( db.startsWith( 'mysql' ) || db.startsWith( 'tidb' ) ) {
|
||||||
|
testRuntimeOnly libraries.mysql
|
||||||
|
}
|
||||||
|
else if ( db.startsWith( 'mariadb' ) ) {
|
||||||
|
testRuntimeOnly libraries.mariadb
|
||||||
|
}
|
||||||
|
|
||||||
annotationProcessor libraries.logging_processor
|
annotationProcessor libraries.logging_processor
|
||||||
annotationProcessor libraries.logging
|
annotationProcessor libraries.logging
|
||||||
|
|
Loading…
Reference in New Issue