[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pecl-cvs
Subject:    [PECL-CVS] [pecl-database-pdo_ibm] master: Attempt to actually create the database
From:       Calvin Buckley <noreply () php ! net>
Date:       2022-03-21 19:56:46
Message-ID: fzZWi5EUKYbVxBnb14AyNsDRReWsRAb4XLgpk89Sjg0 () main ! php ! net
[Download RAW message or body]

Author: Calvin Buckley (NattyNarwhal)
Date: 2022-03-21T16:46:45-03:00

Commit: https://github.com/php/pecl-database-pdo_ibm/commit/04496f37b73b89a864b7430831293db281dcafb8
 Raw diff: https://github.com/php/pecl-database-pdo_ibm/commit/04496f37b73b89a864b7430831293db281dcafb8.diff


Attempt to actually create the database

the "automatic storage yes" is something I remembered last time I had to
deal with LUW.

Try to remove tty/interactive flags from docker exec

Try to wait for Db2 to finish up setup (not ideal)

We don't need to create the database, the Docker container made one all along

Actually check if setup is complete

Changed paths:
  M  .github/workflows/ci.yml


Diff:

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 3c268d6..0a4db2d 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -55,6 +55,14 @@ jobs:
           docker pull ibmcom/db2
           docker run --name db2 --privileged=true -p 60000:50000 -e \
DB2INST1_PASSWORD=password -e LICENSE=accept -e DBNAME=sample -v database:/database \
-itd ibmcom/db2  docker ps -as
+          while true
+          do
+            if (docker logs db2 | grep 'Setup has completed')
+            then
+              break
+            fi
+            sleep 20
+          done
       - name: Tests
         # make test is insufficient to load PDO
         # Most of these are either cribbed from the old Travis configuration,

-- 
PECL CVS Mailing List 
To unsubscribe, visit: http://www.php.net/unsub.php


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic