mirror of
https://github.com/mblanke/ThreatHunt.git
synced 2026-03-01 14:00:20 -05:00
this is the first commit for the Claude Iteration project.
This commit is contained in:
28
deploy/deploy.sh
Normal file
28
deploy/deploy.sh
Normal file
@@ -0,0 +1,28 @@
|
||||
#!/bin/bash
|
||||
|
||||
set -e
|
||||
|
||||
echo "🚀 Deploying Cyber Threat Hunter..."
|
||||
|
||||
# Build and push images
|
||||
echo "📦 Building Docker images..."
|
||||
docker build -t your-registry/threat-hunter-backend:latest ./backend
|
||||
docker build -t your-registry/threat-hunter-frontend:latest ./frontend
|
||||
|
||||
echo "🔄 Pushing to registry..."
|
||||
docker push your-registry/threat-hunter-backend:latest
|
||||
docker push your-registry/threat-hunter-frontend:latest
|
||||
|
||||
# Deploy based on environment
|
||||
if [ "$1" = "kubernetes" ]; then
|
||||
echo "☸️ Deploying to Kubernetes..."
|
||||
kubectl apply -f deploy/kubernetes/
|
||||
elif [ "$1" = "swarm" ]; then
|
||||
echo "🐳 Deploying to Docker Swarm..."
|
||||
docker stack deploy -c deploy/docker-stack.yml threat-hunter
|
||||
else
|
||||
echo "🐙 Deploying with Docker Compose..."
|
||||
docker-compose -f docker-compose.prod.yml up -d
|
||||
fi
|
||||
|
||||
echo "✅ Deployment complete!"
|
||||
Reference in New Issue
Block a user