From 864b7f22fc8b42fd25bcdcd01bd627394475588c Mon Sep 17 00:00:00 2001 From: Gavin King Date: Fri, 30 Jun 2023 20:54:06 +0200 Subject: [PATCH] put sybase on port 9000 port 5000 does not work on my Mac laptops and I'm getting sick of having to do this manually all the time --- docker_db.sh | 2 +- gradle/databases.gradle | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docker_db.sh b/docker_db.sh index 1a655a9c95..ce62270ce3 100755 --- a/docker_db.sh +++ b/docker_db.sh @@ -320,7 +320,7 @@ mssql_2022() { sybase() { $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 - $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 + $CONTAINER_CLI run -d -p 9000:5000 -p 9001:5001 --name sybase --entrypoint /bin/bash docker.io/nguoianphu/docker-sybase -c "source /opt/sybase/SYBASE.sh /opt/sybase/ASE-16_0/bin/dataserver \ -d/opt/sybase/data/master.dat \ -e/opt/sybase/ASE-16_0/install/MYSYBASE.log \ diff --git a/gradle/databases.gradle b/gradle/databases.gradle index 236493078f..d7bac4bce1 100644 --- a/gradle/databases.gradle +++ b/gradle/databases.gradle @@ -79,7 +79,7 @@ ext { 'jdbc.user' : 'hibernate_orm_test', 'jdbc.pass' : 'hibernate_orm_test', // Disable prepared statement caching to avoid issues with changing schemas - 'jdbc.url' : 'jdbc:jtds:sybase://' + dbHost + ':5000/hibernate_orm_test;maxStatements=0;cacheMetaData=false', + 'jdbc.url' : 'jdbc:jtds:sybase://' + dbHost + ':9000/hibernate_orm_test;maxStatements=0;cacheMetaData=false', 'connection.init_sql' : 'set ansinull on' ], sybase_jconn_ci : [