mirror of
https://github.com/tiennm99/docker-images.git
synced 2026-05-30 00:20:55 +00:00
f9568ec53d
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.
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
|