-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathexpc
More file actions
executable file
·17 lines (12 loc) · 748 Bytes
/
expc
File metadata and controls
executable file
·17 lines (12 loc) · 748 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# Builds Express-C image
docker build -t angoca/db2-install:expc db2-install/expc/
docker build -t angoca/db2-db2inst1:expc db2-db2inst1/expc/
docker images
# Starts Express-C image
echo ". /home/db2inst1/sqllib/db2profile;db2start" | docker run -i --ipc="host" --cap-add IPC_LOCK --cap-add IPC_OWNER --name="db2-db2inst1" -p 50000:50000 angoca/db2-db2inst1:expc
docker ps -a
# Starts the instance and creates a database.
docker start $(docker ps -a -q)
docker exec $(docker ps -a -q) su -c ". ~db2inst1/sqllib/db2profile ; db2start" db2inst1
docker exec $(docker ps -a -q) su -c ". ~db2inst1/sqllib/db2profile ; db2 create db test" db2inst1
docker exec $(docker ps -a -q) su -c ". ~db2inst1/sqllib/db2profile ; db2 connect to test" db2inst1