Initial documentation structure
This commit is contained in:
41
collect_scripts.sh
Executable file
41
collect_scripts.sh
Executable file
@@ -0,0 +1,41 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "Collecting production scripts..."
|
||||
|
||||
# Create directories for organized scripts
|
||||
mkdir -p scripts/orchestrator/{core,pipeline,gitea,srx,monitoring,utilities}
|
||||
|
||||
# Core orchestrator files
|
||||
echo "Collecting core orchestrator files..."
|
||||
if [ -f ~/orchestrator/orchestrator_main.py ]; then
|
||||
cp ~/orchestrator/orchestrator_main.py scripts/orchestrator/core/
|
||||
cp ~/orchestrator/requirements.txt scripts/orchestrator/core/
|
||||
fi
|
||||
|
||||
# Configuration (sanitized)
|
||||
if [ -f ~/orchestrator/config.yaml ]; then
|
||||
cp ~/orchestrator/config.yaml scripts/orchestrator/core/config.yaml.template
|
||||
fi
|
||||
|
||||
# Pipeline scripts
|
||||
echo "Collecting pipeline scripts..."
|
||||
for script in run_pipeline.py prepare_pr.py create_ai_pr.py; do
|
||||
[ -f ~/orchestrator/$script ] && cp ~/orchestrator/$script scripts/orchestrator/pipeline/
|
||||
done
|
||||
|
||||
# Gitea integration scripts
|
||||
for script in webhook_listener.py gitea_pr_feedback.py close_pr_with_feedback.py; do
|
||||
[ -f ~/orchestrator/$script ] && cp ~/orchestrator/$script scripts/orchestrator/gitea/
|
||||
done
|
||||
|
||||
# SRX management scripts
|
||||
for script in collect_srx_config.py srx_manager.py deploy_approved.py; do
|
||||
[ -f ~/orchestrator/$script ] && cp ~/orchestrator/$script scripts/orchestrator/srx/
|
||||
done
|
||||
|
||||
# Service files
|
||||
sudo cp /etc/systemd/system/orchestrator.service infrastructure/systemd/ 2>/dev/null
|
||||
sudo cp /etc/systemd/system/gitea-webhook.service infrastructure/systemd/ 2>/dev/null
|
||||
sudo chown $USER:$USER infrastructure/systemd/*.service 2>/dev/null
|
||||
|
||||
echo "Collection complete!"
|
||||
Reference in New Issue
Block a user