Files
docker-images/couchbase/scripts/run
T
tiennm99 f9568ec53d Add Couchbase 2.5 and generic Docker images
Introduces a new Docker image for Couchbase 2.5, including a Dockerfile, entrypoint, run scripts, and a dummy script for unsupported commands. Updates the 2.5 image to install libssl0.9.8 and modifies the CMD to use '-noinput'. Adds a README with credits and updates the GitHub Actions workflow to download the new dependency.
2025-10-04 23:37:40 +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