mirror of
https://github.com/tiennm99/docker-images.git
synced 2026-07-16 16:17:10 +00:00
Remove decorative Unicode banner comments, replace em-dashes with hyphens across Dockerfile, configs, docs, and one Go log string, alphabetize the builder-stage yum package list, and drop the non-standard description/version LABELs from the runtime stage.
21 lines
603 B
Bash
21 lines
603 B
Bash
#!/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"
|