mirror of
https://github.com/gofiber/storage.git
synced 2026-04-23 07:09:57 +08:00
add sleep between couchbase commands to wait for cluster init
This commit is contained in:
@@ -22,8 +22,9 @@ jobs:
|
||||
- name: Install couchbase
|
||||
run: |
|
||||
docker run --name couchbase -d -p 8091-8097:8091-8097 -p 9123:9123 -p 11207:11207 -p 11210:11210 -p 11280:11280 -p 18091-18097:18091-18097 couchbase:enterprise-7.1.1
|
||||
|
||||
sleep 1
|
||||
docker exec --tty couchbase couchbase-cli cluster-init -c localhost:8091 --cluster-username admin --cluster-password 123456 --cluster-ramsize 256 --services data
|
||||
sleep 1
|
||||
docker exec --tty couchbase couchbase-cli bucket-create -c localhost:8091 --username admin --password 123456 --bucket fiber_storage --bucket-type couchbase --bucket-ramsize 100
|
||||
- name: Install Go
|
||||
uses: actions/setup-go@v4
|
||||
|
||||
Reference in New Issue
Block a user