mirror of
https://github.com/tiennm99/docker-images.git
synced 2026-05-20 14:23:53 +00:00
5b10be09e4
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.
20 lines
563 B
Bash
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
|