Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions echo/directus/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,16 @@

# RUN cd node_modules && find . -maxdepth 1 -type d -name "directus-extension-*" -exec mv {} ../directus \;

FROM tractr/directus-sync:11.13.0
FROM tractr/directus-sync:11.13.4

COPY ./templates ./templates/
COPY ./sync.sh ./sync.sh
COPY ./directus-sync.config.js ./directus-sync.config.js
COPY ./sync ./sync

# COPY --from=third-party-ext /extensions/directus ./extensions

COPY ./templates ./templates/

# https://github.com/directus/directus/blob/main/Dockerfile
CMD : \

Check warning on line 31 in echo/directus/Dockerfile

View workflow job for this annotation

GitHub Actions / ci-build-servers (dbr-echo-directus, ./echo/directus, Dockerfile, dbr-echo-directus)

JSON arguments recommended for ENTRYPOINT/CMD to prevent unintended behavior related to OS signals

JSONArgsRecommended: JSON arguments recommended for CMD to prevent unintended behavior related to OS signals More info: https://docs.docker.com/go/dockerfile/rule/json-args-recommended/
&& node cli.js bootstrap \
&& pm2-runtime start ecosystem.config.cjs \
Expand Down
2 changes: 1 addition & 1 deletion echo/server/prod-scheduler.sh
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/bash
python -m dembrane.scheduler
uv run python -m dembrane.scheduler
2 changes: 1 addition & 1 deletion echo/server/prod-worker-cpu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ echo " Processes: $PROCESSES | Threads: $THREADS"
echo " Capacity per pod: $((PROCESSES * THREADS)) concurrent tasks"
echo "Single threaded tasks should use THREADS=1 to avoid LOCK issues caused by LightRag"

exec dramatiq \
exec uv run dramatiq \
--queues cpu \
--processes "$PROCESSES" \
--threads "$THREADS" \
Expand Down
2 changes: 1 addition & 1 deletion echo/server/prod-worker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ echo " Processes: $PROCESSES | Threads: $THREADS"
echo " Capacity per pod: $((PROCESSES * THREADS)) concurrent tasks"
echo "Network-bound tasks can benefit from multiple threads."

exec dramatiq-gevent \
exec uv run dramatiq-gevent \
--queues network \
--processes "$PROCESSES" \
--threads "$THREADS" \
Expand Down
4 changes: 2 additions & 2 deletions echo/server/prod.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@ echo " Timeout: ${TIMEOUT}s"
echo " Max Requests: $MAX_REQUESTS"
echo "📊 Scale with K8s replicas (not workers per pod)"

exec gunicorn dembrane.main:app \
exec uv run gunicorn dembrane.main:app \
--worker-class dembrane.gunicorn_worker.AsyncioUvicornWorker \
--workers "$WORKERS" \
--worker-class dembrane.asyncio_uvicorn_worker.AsyncioUvicornWorker \
--bind 0.0.0.0:8000 \
--timeout "$TIMEOUT" \
--graceful-timeout 30 \
Expand Down
Loading