A third party ATProto appview
1#!/bin/bash
2set -e
3
4echo "🔍 Checking for Osprey installation..."
5
6# Check if osprey directory exists
7if [ -d "./osprey" ]; then
8 echo "✅ Osprey directory found at ./osprey"
9
10 # Check for required files
11 if [ -f "./osprey-bridge/firehose-to-kafka/package.json" ]; then
12 echo "✅ Osprey bridge configuration found"
13
14 # Set environment variable
15 export OSPREY_ENABLED=true
16 export COMPOSE_PROFILES=osprey
17
18 echo ""
19 echo "🚀 Starting services with Osprey integration enabled..."
20 echo ""
21
22 # Start with osprey profile
23 docker-compose --profile osprey up -d --build
24
25 echo ""
26 echo "✅ Osprey integration enabled successfully!"
27 echo ""
28 echo "Monitor bridge logs:"
29 echo " docker-compose logs -f osprey-bridge"
30 echo ""
31 echo "Check Kafka topics:"
32 echo " docker-compose exec kafka kafka-topics --list --bootstrap-server localhost:9092"
33 echo ""
34
35 else
36 echo "❌ Osprey bridge not found. Please ensure osprey-bridge/ directory exists."
37 exit 1
38 fi
39else
40 echo "⚠️ Osprey directory not found."
41 echo ""
42 echo "To enable Osprey labeling:"
43 echo " 1. Clone Osprey: git clone https://github.com/roostorg/osprey.git"
44 echo " 2. Add AT Proto module: cd osprey && git submodule add https://github.com/bluesky-social/osprey-atproto.git"
45 echo " 3. Re-run this script: ./scripts/enable-osprey.sh"
46 echo ""
47 echo "Starting without Osprey integration..."
48 docker-compose up -d
49fi