Skip to content

Commit

Permalink
Merge pull request #4 from moriyalab/add_depend
Browse files Browse the repository at this point in the history
add foxglove websocket api
  • Loading branch information
TakanoTaiga authored Oct 2, 2024
2 parents e17e2af + 0ab4edf commit 143b645
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 12 deletions.
3 changes: 0 additions & 3 deletions docker/Dockerfile.x86
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,3 @@ WORKDIR /app
COPY pyproject.toml* poetry.lock* ./

RUN poetry install

WORKDIR /app/utils
COPY ./utils/copy_poetry_lock.sh ./
19 changes: 18 additions & 1 deletion docker/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions docker/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ gradio = "4.44.0"
ffmpeg-python = "0.2.0"
gdown = "5.2"
lapx = "0.5.10"
foxglove-websocket = "0.1.2"

[build-system]
requires = ["poetry-core>=1.0.0"]
Expand Down
4 changes: 0 additions & 4 deletions docker/utils/copy_poetry_lock.sh

This file was deleted.

9 changes: 5 additions & 4 deletions poetylock.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/bin/bash

cd ./docker
docker build . -f ./Dockerfile.x86 -t ghcr.io/moriyalab/horus_inference_server:latest
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
docker run --rm --gpus all --runtime nvidia --shm-size=32G -v $ROOT/datasets:/usr/src/datasets -v $ROOT:/home/root --network host ghcr.io/moriyalab/horus_inference_server:latest /app/utils/copy_poetry_lock.sh
cp /home/root/docker/pyproject.toml /app/pyproject.toml
cd /app
poetry lock --no-update
rm -rf /home/root/docker/poetry.lock
cp /app/poetry.lock /home/root/docker/poetry.lock

0 comments on commit 143b645

Please sign in to comment.