Skip to content

Commit

Permalink
Merge pull request doctrine#3622 from morozov/issues/3618
Browse files Browse the repository at this point in the history
Switched from ibmcom/db2express-c to ibmcom/db2
  • Loading branch information
morozov committed Jul 7, 2019
2 parents c1af342 + c51b5c6 commit ea92d56
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/travis/install-db2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,20 @@ set -ex

echo Setting up IBM DB2

sudo docker pull ibmcom/db2express-c:10.5.0.5-3.10.0
echo "su - db2inst1 -c 'db2 CONNECT TO doctrine && db2 CREATE USER TEMPORARY TABLESPACE doctrine_tbsp PAGESIZE 4 K'" > /tmp/doctrine-init.sh
chmod +x /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:11.5.0.0

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

0 comments on commit ea92d56

Please sign in to comment.