optimizing badger cache, won a 10-15% improvement in most benchmarks

This commit is contained in:
2025-11-16 15:07:36 +00:00
parent 9bb3a7e057
commit 95bcf85ad7
72 changed files with 8158 additions and 4048 deletions

45
scripts/docker-build.sh Executable file
View File

@@ -0,0 +1,45 @@
#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PROJECT_ROOT="$(dirname "$SCRIPT_DIR")"
echo "=== Building ORLY Docker Images ==="
echo ""
# Change to project root
cd "$PROJECT_ROOT"
# Determine docker-compose command
if docker compose version &> /dev/null 2>&1; then
DOCKER_COMPOSE="docker compose"
else
DOCKER_COMPOSE="docker-compose"
fi
# Build ORLY image
echo "Building ORLY relay image..."
docker build -t orly:latest -f Dockerfile .
echo "✅ ORLY image built successfully"
echo ""
# Build relay-tester image (optional)
if [ "$1" == "--with-tester" ]; then
echo "Building relay-tester image..."
docker build -t orly-relay-tester:latest -f Dockerfile.relay-tester .
echo "✅ Relay-tester image built successfully"
echo ""
fi
# Show images
echo "Built images:"
docker images | grep -E "orly|REPOSITORY"
echo ""
echo "=== Build Complete ==="
echo ""
echo "To run:"
echo " cd scripts && $DOCKER_COMPOSE -f docker-compose-test.yml up -d"
echo ""
echo "To test:"
echo " ./scripts/test-docker.sh"