Skip to content

Commit

Permalink
ci: Consolidate all fastapi services into single Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
topher-lo committed May 4, 2024
1 parent 0c6595e commit 742bc2a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 56 deletions.
54 changes: 0 additions & 54 deletions Dockerfile.scheduler

This file was deleted.

3 changes: 2 additions & 1 deletion docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,15 @@ services:
scheduler:
build:
context: .
dockerfile: Dockerfile.scheduler
dockerfile: Dockerfile
container_name: scheduler
ports:
- "8002:8000"
volumes:
- ./tracecat:/app/tracecat
- app-storage:/var/lib/tracecat
environment:
API_MODULE: "tracecat.scheduler.app:app"
# Shared
LOG_LEVEL: ${LOG_LEVEL}
RABBITMQ_URI: ${RABBITMQ_URI}
Expand Down
2 changes: 1 addition & 1 deletion tests/test_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
)
from tracecat.config import TRACECAT__RUNNER_URL
from tracecat.db import TRACECAT__DB_URI, Workflow, WorkflowSchedule
from tracecat.scheduler import app, engine, start_scheduler
from tracecat.scheduler.app import app, engine, start_scheduler

TEST_SCHEDULER_INTERVAL_SECONDS = 10
TEST_WORKFLOW_RUN_TIMEOUT = 40 # seconds
Expand Down
File renamed without changes.

0 comments on commit 742bc2a

Please sign in to comment.