File tree Expand file tree Collapse file tree 5 files changed +24
-1
lines changed
Expand file tree Collapse file tree 5 files changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ MINIO_ROOT_USER=minioadmin
4040MINIO_ROOT_PASSWORD = minioadmin
4141
4242# S3 Configuration (for application)
43+ # Set to "true" to enable S3 storage for digests
44+ # S3_ENABLED=true
4345# Endpoint URL for the S3 service (MinIO in development)
4446S3_ENDPOINT = http://minio:9000
4547# Access key for the S3 bucket (created automatically in development)
Original file line number Diff line number Diff line change @@ -113,6 +113,7 @@ repos:
113113 files : ^src/
114114 additional_dependencies :
115115 [
116+ boto3>=1.28.0,
116117 click>=8.0.0,
117118 ' fastapi[standard]>=0.109.1' ,
118119 httpx,
@@ -135,6 +136,7 @@ repos:
135136 - --rcfile=tests/.pylintrc
136137 additional_dependencies :
137138 [
139+ boto3>=1.28.0,
138140 click>=8.0.0,
139141 ' fastapi[standard]>=0.109.1' ,
140142 httpx,
Original file line number Diff line number Diff line change @@ -46,14 +46,15 @@ services:
4646 - DEBUG=true
4747 - GITINGEST_SENTRY_ENVIRONMENT=${GITINGEST_SENTRY_ENVIRONMENT:-development}
4848 # S3 Configuration
49+ - S3_ENABLED=true
4950 - S3_ENDPOINT=http://minio:9000
5051 - S3_ACCESS_KEY=${S3_ACCESS_KEY:-gitingest}
5152 - S3_SECRET_KEY=${S3_SECRET_KEY:-gitingest123}
5253 # Use lowercase bucket name to ensure compatibility with MinIO
5354 - S3_BUCKET_NAME=${S3_BUCKET_NAME:-gitingest-bucket}
5455 - S3_REGION=${S3_REGION:-us-east-1}
5556 # Public URL for S3 resources
56- - S3_ALIAS_HOST=${S3_ALIAS_HOST:-127.0.0.1:9000/${S3_BUCKET_NAME:-gitingest-bucket}}
57+ - S3_ALIAS_HOST=${S3_ALIAS_HOST:-http:// 127.0.0.1:9000/${S3_BUCKET_NAME:-gitingest-bucket}}
5758 volumes :
5859 # Mount source code for live development
5960 - ./src:/app:ro
@@ -104,6 +105,22 @@ services:
104105 entrypoint : sh
105106 command : -c /setup.sh
106107
108+ # Test service for running tests
109+ test :
110+ build :
111+ context : .
112+ dockerfile : Dockerfile.dev
113+ profiles :
114+ - dev
115+ environment :
116+ - DEBUG=true
117+ - PYTHONPATH=/app:/tests
118+ volumes :
119+ - ./tests:/tests:ro
120+ - ./src:/app/src:ro
121+ working_dir : /tests
122+ command : ["python", "-m", "pytest"]
123+
107124volumes :
108125 minio-data :
109126 driver : local
Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ description="CLI tool to analyze and create text dumps of codebases for LLMs"
55readme = {file = " README.md" , content-type = " text/markdown" }
66requires-python = " >= 3.8"
77dependencies = [
8+ " boto3>=1.28.0" ,
89 " click>=8.0.0" ,
910 " fastapi[standard]>=0.109.1" , # Minimum safe release (https://osv.dev/vulnerability/PYSEC-2024-38)
1011 " httpx" ,
Original file line number Diff line number Diff line change 1+ boto3 >= 1.28.0 # AWS SDK for S3 support
12click >= 8.0.0
23fastapi [standard ]>= 0.109.1 # Vulnerable to https://osv.dev/vulnerability/PYSEC-2024-38
34httpx
You can’t perform that action at this time.
0 commit comments