Files
tiennm99 2bb2e13279 Add Scribe 2.2 Docker image
Multi-stage build of Facebook's legacy log aggregation daemon
from source (facebookarchive/scribe) with Apache Thrift 0.9.1
and fb303. Includes default config and entrypoint script.
2026-04-06 13:08:13 +07:00

21 lines
605 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# docker-entrypoint.sh Scribe daemon startup script
#
# Reads SCRIBE_CONFIG env var (default: /etc/scribe/scribe.conf)
# and launches scribed with that configuration file.
#
# Usage inside container:
# docker run ... scribed (uses default config)
# SCRIBE_CONFIG=/my.conf docker run ...
set -euo pipefail
SCRIBE_CONFIG="${SCRIBE_CONFIG:-/etc/scribe/scribe.conf}"
if [ ! -f "$SCRIBE_CONFIG" ]; then
echo "[scribe] ERROR: config file not found: $SCRIBE_CONFIG" >&2
exit 1
fi
echo "[scribe] Starting scribed with config: $SCRIBE_CONFIG"
exec scribed "$SCRIBE_CONFIG"