feat: Add start-container.sh to manage container startup, patch configurations, and conditionally launch the OpenClaw gateway.

This commit is contained in:
Bruno Charest 2026-03-13 15:17:05 -04:00
parent 3176b81181
commit dd163fec87
2 changed files with 6 additions and 2 deletions

View File

@ -26,12 +26,16 @@ LABEL maintainer="Bruno Charest <bruno@dracodev.net>"
LABEL description="🦊 Foxy Dev Team — Multi-Agent Orchestration System" LABEL description="🦊 Foxy Dev Team — Multi-Agent Orchestration System"
LABEL version="2.0.0" LABEL version="2.0.0"
# System deps (CLI tools, Node.js, Git) # System deps (CLI tools, Node.js, Git, Investigation tools)
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
curl \ curl \
git \ git \
ca-certificates \ ca-certificates \
gnupg \ gnupg \
procps \
net-tools \
iproute2 \
nano \
&& mkdir -p /etc/apt/keyrings \ && mkdir -p /etc/apt/keyrings \
&& curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \
&& echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_22.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \

View File

@ -48,7 +48,7 @@ EOF
echo "🚀 Starting OpenClaw Gateway..." echo "🚀 Starting OpenClaw Gateway..."
# We use 'gateway start' but ensure it binds to all interfaces # We use 'gateway start' but ensure it binds to all interfaces
# We also use --daemon=false if possible, or standard nohup # We also use --daemon=false if possible, or standard nohup
nohup openclaw gateway start --host 0.0.0.0 > "$FOXY_HOME/logs/gateway.log" 2>&1 & nohup openclaw gateway start > "$FOXY_HOME/logs/gateway.log" 2>&1 &
sleep 3 sleep 3
if pgrep -f "openclaw" > /dev/null; then if pgrep -f "openclaw" > /dev/null; then