Files
docker-images/couchbase-2.5/scripts/run
T
tiennm99 5b10be09e4 Refactor Couchbase 2.5 Dockerfile and add entry scripts
Updated the Couchbase 2.5 Dockerfile to improve dependency management, add user setup, and enhance container process handling. Added entrypoint, runit, and dummy scripts to support containerized operation and port overrides. Updated README with new reference link.
2025-10-05 10:38:15 +07:00

20 lines
563 B
Bash

#!/bin/sh
exec 2>&1
# Create directories where couchbase stores its data
cd /opt/couchbase
mkdir -p var/lib/couchbase \
var/lib/couchbase/config \
var/lib/couchbase/data \
var/lib/couchbase/stats \
var/lib/couchbase/logs \
var/lib/moxi
chown -R couchbase:couchbase var
if [ $(whoami) = "couchbase" ]; then
exec /opt/couchbase/bin/couchbase-server -- -kernel global_enable_tracing false -noinput
else
exec chpst -ucouchbase /opt/couchbase/bin/couchbase-server -- -kernel global_enable_tracing false -noinput
fi