mirror of
https://github.com/tiennm99/docker-images.git
synced 2026-05-20 07:26:20 +00:00
a9d0d65fa4
Updated Dockerfile to add libssl0.9.8, split some RUN commands, and improved permissions handling. Modified entrypoint.sh to use 'set -ex' for better debugging and switched to 'runsvdir -P /etc/service' for process management. Cleaned up docker-compose.example.yml by commenting out unused options. Updated run script to unset HOME before execution for improved environment consistency.
22 lines
575 B
Bash
22 lines
575 B
Bash
#!/bin/sh
|
|
|
|
unset HOME
|
|
|
|
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
|