Switched from ibmcom/db2express-c to ibmcom/db2

parent c1af3428
...@@ -4,19 +4,20 @@ set -ex ...@@ -4,19 +4,20 @@ set -ex
echo Setting up IBM DB2 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 \ sudo docker run \
-d \ -d \
-p 50000:50000 \ -p 50000:50000 \
-e DB2INST1_PASSWORD=Doctrine2018 \ -e DB2INST1_PASSWORD=Doctrine2018 \
-e LICENSE=accept \ -e LICENSE=accept \
-e DBNAME=doctrine \
-v /tmp/doctrine-init.sh:/var/custom/doctrine-init.sh:ro \
--name db2 \ --name db2 \
ibmcom/db2express-c:10.5.0.5-3.10.0 \ --privileged=true \
db2start ibmcom/db2:11.5.0.0
sleep 15
sudo docker exec db2 su - db2inst1 -c \ sudo docker logs -f db2 | sed '/(*) Setup has completed./ q'
'db2 CREATE DB doctrine && db2 CONNECT TO doctrine && db2 CREATE USER TEMPORARY TABLESPACE doctrine_tbsp PAGESIZE 4 K'
echo DB2 started echo DB2 started
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment