slouch/run-couchdb-1-docker.sh
Geoff Cox f830ee2ba5 test(couchdb-1) (#7)
* test(couchdb-1)

* test(couchdb-1)

* fix(couchdb-1): cross-browser config

* test(updates): really needs to be continuous

* test(membership): coverage in couchdb 1

* test(couchdb-1): disable for circleci
2017-07-18 09:14:16 -07:00

15 lines
381 B
Bash
Executable file

#!/usr/bin/env bash
# Run the container and make sure that it always restarts, even when the box is rebooted
docker run -d \
--name couchdb-1 \
--restart always \
-p 15984:5984 \
couchdb:1.6.1
# Wait for for DB to be ready
echo "Sleeping for 15 secs to allow for DB to start..."
sleep 15
# Create admin user
curl -X PUT localhost:15984/_config/admins/admin -d '"admin"'