Skip to content

Commit 0f78d7f

Browse files
author
chedim
committed
Adds bucket and collection creation
1 parent faaa865 commit 0f78d7f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

startcb.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ CB_PSWD="${CB_PSWD:-password}"
77
CB_HOST="${CB_HOST:-127.0.0.1}"
88
CB_PORT="${CB_PORT:-8091}"
99
CB_NAME="${CB_NAME:-cbgitpod}"
10+
CB_BCKT="${CB_BCKT:-springdata_quickstart}"
11+
CB_COLL="${CB_COLL:-_default.profile}"
1012

1113
CB_SERVICES="${CB_SERVICES:-data,query,index,fts,eventing,analytics}"
1214

@@ -48,4 +50,10 @@ fi
4850

4951
sleep 3
5052

53+
couchbase-cli bucket-create -c "${CB_HOST}:${CB_PORT}" -u "${CB_USER}" -p "${CB_PSWD}" --bucket "${CB_BCKT}" --bucket-type couchbase --bucket-ramsize 1024
5154

55+
sleep 3
56+
57+
couchbase-cli collection-manage -c "${CB_HOST}:${CB_PORT}" -u "${CB_USER}" -p "${CB_PSWD}" --bucket "${CB_BCKT}" --create-collection "${CB_COLL}"
58+
59+
sleep 3

0 commit comments

Comments
 (0)