2022-12-01 14:42:56 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2022-12-01 18:08:49 +01:00
|
|
|
DATA_DIR=${DATA_DIR:-/data}
|
|
|
|
mkdir -p ${DATA_DIR}
|
|
|
|
mkdir -p ${DATA_DIR}/couch/{dbs,views}
|
|
|
|
mkdir -p ${DATA_DIR}/search
|
|
|
|
chown -R couchdb:couchdb ${DATA_DIR}/couch
|
|
|
|
/build-target-paths.sh
|
2022-12-15 18:28:39 +01:00
|
|
|
/opt/clouseau/bin/clouseau > /dev/stdout 2>&1 &
|
2022-12-01 14:42:56 +01:00
|
|
|
/docker-entrypoint.sh /opt/couchdb/bin/couchdb &
|
2023-07-06 22:49:25 +02:00
|
|
|
/opt/sqs/sqs --server "http://localhost:5984" --data-dir ${DATA_DIR}/sqs --bind-address=0.0.0.0 &
|
2022-12-01 14:42:56 +01:00
|
|
|
sleep 10
|
|
|
|
curl -X PUT http://${COUCHDB_USER}:${COUCHDB_PASSWORD}@localhost:5984/_users
|
|
|
|
curl -X PUT http://${COUCHDB_USER}:${COUCHDB_PASSWORD}@localhost:5984/_replicator
|
2023-07-06 22:49:25 +02:00
|
|
|
sleep infinity
|