#!/usr/bin/env bash # #region docker.agent.entrypoint [C:3] [TYPE Module] [SEMANTICS docker,agent,entrypoint,certs] # @BRIEF Agent container entrypoint — install corporate CA certs, then start agent. # @LAYER Infrastructure set -euo pipefail SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)" CERTS_PATH="${CERTS_PATH:-/opt/certs}" if [ -f "$SCRIPT_DIR/certs.sh" ]; then source "$SCRIPT_DIR/certs.sh" download_llm_ca_certs install_all_certs else echo "[agent-entry] certs.sh not found — skipping corporate CA installation" fi exec python -m src.agent.run # #endregion docker.agent.entrypoint