File tree Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Expand file tree Collapse file tree 3 files changed +7
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
if [ ! -z $TRAVIS ]; then
4
4
# Install CouchDB Master
5
- echo " Starting CouchDB 2.0 Docker"
6
- docker run --ulimit nofile=2048:2048 -d -p 5984:5984 couchdb --with-haproxy \
7
- --with-admin-party-please -n 1
5
+ echo " Starting CouchDB 3 Docker"
6
+ docker run --ulimit nofile=2048:2048 -d -p 5984:5984 \
7
+ --env COUCHDB_USER=admin --env COUCHDB_PASSWORD=admin \
8
+ couchdb --with-haproxy -n 1
8
9
9
10
# wait for couchdb to start
10
- while [ ' 200' != $( curl -s -o /dev/null -w %{http_code} http://127.0.0.1:5984) ]; do
11
+ while [ ' 200' != $( curl -s -o /dev/null -w %{http_code} http://admin:admin@ 127.0.0.1:5984/_all_dbs ) ]; do
11
12
echo waiting for couch to load... ;
12
13
sleep 1;
13
14
done
Original file line number Diff line number Diff line change 1
1
#! /usr/bin/env bash
2
2
3
3
if [ ! -z $TRAVIS ]; then
4
- echo " Stopping CouchDB 2.0 Docker"
4
+ echo " Stopping CouchDB 3 Docker"
5
5
docker stop $( docker ps -a -q)
6
6
docker rm $( docker ps -a -q)
7
7
fi
Original file line number Diff line number Diff line change 11
11
// the License.
12
12
13
13
const Nano = require ( '..' )
14
- const COUCH_URL = 'http://localhost:5984'
14
+ const COUCH_URL = 'http://admin:admin@ localhost:5984'
15
15
const nano = Nano ( COUCH_URL )
16
16
const dbName = 'notnocked' + new Date ( ) . getTime ( )
17
17
let db
You can’t perform that action at this time.
0 commit comments