Skip to content

Commit

Permalink
uvicorn to bind to all the interfaces; upgrade to 0.34.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pwilczynskiclearcode committed Feb 28, 2025
1 parent c80e471 commit 5c9aaed
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion runner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -55,4 +55,4 @@ COPY images/ /app/images
COPY bench.py /app/bench.py
COPY example_data/ /app/example_data

CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "", "--port", "8000"]
2 changes: 1 addition & 1 deletion runner/app/runit/uvicorn/run
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh

cd /app
exec uvicorn app.main:app --log-config app/cfg/uvicorn_logging_config.json --host 0.0.0.0 --port 8000
exec uvicorn app.main:app --log-config app/cfg/uvicorn_logging_config.json --host "" --port 8000
4 changes: 2 additions & 2 deletions runner/dev/Dockerfile.debug
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ FROM livepeer/ai-runner:base
RUN pip install debugpy

# Expose the debugpy port and start the app as usual.
CMD ["python", "-m", "debugpy", "--listen", "0.0.0.0:5678", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["python", "-m", "debugpy", "--listen", "0.0.0.0:5678", "-m", "uvicorn", "app.main:app", "--host", "", "--port", "8000"]

# If you want to wait for the debugger to attach before starting the app, use the --wait-for-client option.
# CMD ["python", "-m", "debugpy", "--listen", "0.0.0.0:5678", "--wait-for-client", "-m", "uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
# CMD ["python", "-m", "debugpy", "--listen", "0.0.0.0:5678", "--wait-for-client", "-m", "uvicorn", "app.main:app", "--host", "", "--port", "8000"]
2 changes: 1 addition & 1 deletion runner/docker/Dockerfile.audio_to_text
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,4 @@ WORKDIR /app
# Copy app directory to avoid rebuilding the base image during development.
COPY app/ /app/app

CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "", "--port", "8000"]
4 changes: 2 additions & 2 deletions runner/docker/Dockerfile.live-app-noop
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN ls /usr/local/lib && ls /usr/local/lib/pkgconfig && ls -lha /usr/local/bin &

# Install any additional Python packages
RUN pip install --no-cache-dir \
uvicorn==0.30.0 \
uvicorn==0.34.0 \
fastapi==0.111.0 \
numpy==1.26.4 \
torch==2.5.1 \
Expand Down Expand Up @@ -51,4 +51,4 @@ COPY bench.py /app/bench.py

WORKDIR /app

CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "", "--port", "8000"]
2 changes: 1 addition & 1 deletion runner/docker/Dockerfile.live-app__PIPELINE__
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,4 @@ RUN rm -r /ComfyUI/custom_nodes/ComfyUI-Manager
ARG GIT_SHA
ENV GIT_SHA=$GIT_SHA

CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "", "--port", "8000"]
2 changes: 1 addition & 1 deletion runner/docker/Dockerfile.llm
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ COPY images/ /app/images
COPY bench.py /app/bench.py
COPY example_data/ /app/example_data

CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "", "--port", "8000"]
2 changes: 1 addition & 1 deletion runner/docker/Dockerfile.segment_anything_2
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ WORKDIR /app
# Copy app directory to avoid rebuilding the base image during development.
COPY app/ /app/app

CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "", "--port", "8000"]
2 changes: 1 addition & 1 deletion runner/docker/Dockerfile.text_to_speech
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ WORKDIR /app
# Copy app directory to avoid rebuilding the base image during development.
COPY app/ /app/app

CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "app.main:app", "--log-config", "app/cfg/uvicorn_logging_config.json", "--host", "", "--port", "8000"]
2 changes: 1 addition & 1 deletion runner/requirements.live-ai.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ fastapi==0.111.0
pydantic==2.7.2
Pillow==10.3.0
python-multipart==0.0.9
uvicorn==0.30.0
uvicorn==0.34.0
huggingface_hub==0.23.2
triton>=2.1.0
peft==0.11.1
Expand Down

0 comments on commit 5c9aaed

Please sign in to comment.