From 0ab4edf2f2d1f4951f76fa34f73352c397110b9b Mon Sep 17 00:00:00 2001 From: Taiga Takano Date: Wed, 2 Oct 2024 12:46:57 +0900 Subject: [PATCH] add foxglove websocket api --- docker/Dockerfile.x86 | 3 --- docker/poetry.lock | 19 ++++++++++++++++++- docker/pyproject.toml | 1 + docker/utils/copy_poetry_lock.sh | 4 ---- poetylock.sh | 9 +++++---- 5 files changed, 24 insertions(+), 12 deletions(-) delete mode 100755 docker/utils/copy_poetry_lock.sh diff --git a/docker/Dockerfile.x86 b/docker/Dockerfile.x86 index 7a6c8e2..e4039ee 100644 --- a/docker/Dockerfile.x86 +++ b/docker/Dockerfile.x86 @@ -12,6 +12,3 @@ WORKDIR /app COPY pyproject.toml* poetry.lock* ./ RUN poetry install - -WORKDIR /app/utils -COPY ./utils/copy_poetry_lock.sh ./ \ No newline at end of file diff --git a/docker/poetry.lock b/docker/poetry.lock index 00a7947..37e469a 100644 --- a/docker/poetry.lock +++ b/docker/poetry.lock @@ -493,6 +493,23 @@ ufo = ["fs (>=2.2.0,<3)"] unicode = ["unicodedata2 (>=15.1.0)"] woff = ["brotli (>=1.0.1)", "brotlicffi (>=0.8.0)", "zopfli (>=0.1.4)"] +[[package]] +name = "foxglove-websocket" +version = "0.1.2" +description = "Foxglove WebSocket server" +optional = false +python-versions = ">=3.8" +files = [ + {file = "foxglove-websocket-0.1.2.tar.gz", hash = "sha256:26bc61e026d9f2b6f0fe34df6a798ce95e453cdce5565b730e0591ac1f52fdcb"}, + {file = "foxglove_websocket-0.1.2-py3-none-any.whl", hash = "sha256:7a231f90ee1ec08c2f6b302270bf45998cc125fb0b16e170a3ea6d1b8b559d1e"}, +] + +[package.dependencies] +websockets = "*" + +[package.extras] +examples = ["foxglove-schemas-protobuf", "protobuf (>=4)", "pyquaternion"] + [[package]] name = "fsspec" version = "2024.9.0" @@ -2035,4 +2052,4 @@ type = ["pytest-mypy"] [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "45fbb5f21ac8bd9152cc19db100bbceb2973fd68cc065ccc3367926e13e80d68" +content-hash = "e14e18e68799ba04a970fd97fbf3f14ca64106d2ef63fae047daeb5e37ca30e1" diff --git a/docker/pyproject.toml b/docker/pyproject.toml index c474765..b460fde 100644 --- a/docker/pyproject.toml +++ b/docker/pyproject.toml @@ -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"] diff --git a/docker/utils/copy_poetry_lock.sh b/docker/utils/copy_poetry_lock.sh deleted file mode 100755 index 9e07b48..0000000 --- a/docker/utils/copy_poetry_lock.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash - -rm -rf ./docker/poetry.lock -cp /app/poetry.lock /home/root/poetry.lock \ No newline at end of file diff --git a/poetylock.sh b/poetylock.sh index f1e6ea1..2b6f548 100755 --- a/poetylock.sh +++ b/poetylock.sh @@ -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 \ No newline at end of file