From 02c6bdfe197541885e6685b5d09d2ce31c9535d1 Mon Sep 17 00:00:00 2001 From: Sergei Morozov Date: Sun, 7 Jul 2019 05:31:37 +0300 Subject: [PATCH] Switched from ibmcom/db2express-c to ibmcom/db2 --- tests/travis/install-db2.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/travis/install-db2.sh b/tests/travis/install-db2.sh index f5b374db2d3..26038db720f 100644 --- a/tests/travis/install-db2.sh +++ b/tests/travis/install-db2.sh @@ -4,19 +4,19 @@ set -ex echo Setting up IBM DB2 -sudo docker pull ibmcom/db2express-c:10.5.0.5-3.10.0 +echo -e "db2 CONNECT TO doctrine && db2 CREATE USER TEMPORARY TABLESPACE doctrine_tbsp PAGESIZE 4 K" > /tmp/doctrine-init.sh + sudo docker run \ -d \ -p 50000:50000 \ -e DB2INST1_PASSWORD=Doctrine2018 \ -e LICENSE=accept \ + -e DBNAME=doctrine \ + -v /tmp/doctrine-init.sh:/var/custom/doctrine-init.sh:ro \ --name db2 \ - ibmcom/db2express-c:10.5.0.5-3.10.0 \ - db2start - -sleep 15 + --privileged=true \ + ibmcom/db2 -sudo docker exec db2 su - db2inst1 -c \ - 'db2 CREATE DB doctrine && db2 CONNECT TO doctrine && db2 CREATE USER TEMPORARY TABLESPACE doctrine_tbsp PAGESIZE 4 K' +sudo docker logs -f db2 | sed '/(*) Setup has completed./ q' echo DB2 started