Skip to content

Commit 5038f23

Browse files
VladoKurucbeikov
authored andcommitted
HHH-18267 Informix docker image configured
1 parent 595727c commit 5038f23

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

docker_db.sh

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -953,17 +953,19 @@ informix_14_10() {
953953
# Give the container some time to start
954954
OUTPUT=
955955
n=0
956-
until [ "$n" -ge 10 ]
956+
until [ "$n" -ge 5 ]
957957
do
958-
OUTPUT=$($CONTAINER_CLI logs informix 2>&1)
958+
OUTPUT=$($PRIVILEGED_CLI $CONTAINER_CLI logs informix 2>&1)
959959
if [[ $OUTPUT == *"Server Started"* ]]; then
960+
sleep 15
961+
$PRIVILEGED_CLI $CONTAINER_CLI exec informix bash -l -c "echo \"execute function task('create dbspace from storagepool', 'datadbs', '100 MB', '4');execute function task('create sbspace from storagepool', 'sbspace', '20 M', '0');create database dev in datadbs with log nlscase sensitive;\" > post_init.sql;dbaccess sysadmin post_init.sql"
960962
break;
961963
fi
962964
n=$((n+1))
963965
echo "Waiting for Informix to start..."
964966
sleep 30
965967
done
966-
if [ "$n" -ge 10 ]; then
968+
if [ "$n" -ge 5 ]; then
967969
echo "Informix failed to start and configure after 5 minutes"
968970
else
969971
echo "Informix successfully started"
@@ -977,17 +979,19 @@ informix_12_10() {
977979
# Give the container some time to start
978980
OUTPUT=
979981
n=0
980-
until [ "$n" -ge 10 ]
982+
until [ "$n" -ge 5 ]
981983
do
982-
OUTPUT=$($CONTAINER_CLI logs informix 2>&1)
984+
OUTPUT=$($PRIVILEGED_CLI $CONTAINER_CLI logs informix 2>&1)
983985
if [[ $OUTPUT == *"login Information"* ]]; then
986+
sleep 15
987+
$PRIVILEGED_CLI $CONTAINER_CLI exec informix bash -l -c "echo \"execute function task('create dbspace from storagepool', 'datadbs', '100 MB', '4');execute function task('create sbspace from storagepool', 'sbspace', '20 M', '0');create database dev in datadbs with log nlscase sensitive;\" > post_init.sql;dbaccess sysadmin post_init.sql"
984988
break;
985989
fi
986990
n=$((n+1))
987991
echo "Waiting for Informix to start..."
988992
sleep 30
989993
done
990-
if [ "$n" -ge 10 ]; then
994+
if [ "$n" -ge 5 ]; then
991995
echo "Informix failed to start and configure after 5 minutes"
992996
else
993997
echo "Informix successfully started"
@@ -1034,6 +1038,9 @@ if [ -z ${1} ]; then
10341038
echo -e "\tsybase"
10351039
echo -e "\ttidb"
10361040
echo -e "\ttidb_5_1"
1041+
echo -e "\informix"
1042+
echo -e "\informix_14_10"
1043+
echo -e "\informix_12_10"
10371044
else
10381045
${1}
10391046
fi

gradle/databases.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ ext {
295295
'jdbc.driver': 'com.informix.jdbc.IfxDriver',
296296
'jdbc.user' : 'informix',
297297
'jdbc.pass' : 'in4mix',
298-
'jdbc.url' : 'jdbc:informix-sqli://' + dbHost + ':9088/sysuser:INFORMIXSERVER=informix;user=informix;password=in4mix;DELIMIDENT=Y',
298+
'jdbc.url' : 'jdbc:informix-sqli://' + dbHost + ':9088/dev:INFORMIXSERVER=informix;user=informix;password=in4mix;DELIMIDENT=Y',
299299
'jdbc.datasource' : 'com.informix.jdbc.IfxDriver',
300300
// 'jdbc.datasource' : 'com.informix.jdbcx.IfxDataSource',
301301
'connection.init_sql' : ''

0 commit comments

Comments
 (0)