From bcf7f2fb456018d02c229d10eca4cd934f065dc9 Mon Sep 17 00:00:00 2001 From: rberezen Date: Sat, 7 Dec 2024 10:24:19 -0700 Subject: [PATCH] Used INIT_FILE: "informix-init.sql" --- src/test/resources/docker/docker-compose.yml | 7 +++---- src/test/resources/docker/informix-init.sh | 14 -------------- 2 files changed, 3 insertions(+), 18 deletions(-) delete mode 100644 src/test/resources/docker/informix-init.sh diff --git a/src/test/resources/docker/docker-compose.yml b/src/test/resources/docker/docker-compose.yml index cca2c89ea..38272ffb3 100644 --- a/src/test/resources/docker/docker-compose.yml +++ b/src/test/resources/docker/docker-compose.yml @@ -350,18 +350,17 @@ services: - "9088:9088" environment: LICENSE: "accept" + INIT_FILE: "informix-init.sql" restart: always privileged: true + volumes: + - "./informix-init.sql:/opt/ibm/config/informix-init.sql" healthcheck: test: [ "CMD", "curl", "-f", "http://localhost:9088" ] interval: 10s timeout: 5s retries: 6 start_period: 30s - #volumes: - #- "./informix-init.sh:/docker-entrypoint-initdb.d/informix-init.sh" - #- "./informix-init.sql:/docker-entrypoint-initdb.d/informix-init.sql" - #entrypoint: /bin/bash /docker-entrypoint-initdb.d/informix-init.sh # Titan (https://titan-data.io) is managing these images for our CI/CD process. If you want to run them locally you'll have to # populate init script (hsqldb-init.sql) for this platform manually or install titan and pull image pre-populated with data diff --git a/src/test/resources/docker/informix-init.sh b/src/test/resources/docker/informix-init.sh deleted file mode 100644 index 4cf44ad91..000000000 --- a/src/test/resources/docker/informix-init.sh +++ /dev/null @@ -1,14 +0,0 @@ -#!/bin/bash -# Wait for Informix to be ready -echo "Waiting for Informix to be ready..." -while ! grep -q "listener thread is ready" /opt/ibm/informix/logs/online.log; do - sleep 5 -done - -# Execute the initialization SQL script -echo "Initializing Informix database..." -dbaccess - <