diff --git a/.github/workflows/lbox-develop.yml b/.github/workflows/lbox-develop.yml index c0f1773b3..cfad49232 100644 --- a/.github/workflows/lbox-develop.yml +++ b/.github/workflows/lbox-develop.yml @@ -104,6 +104,7 @@ jobs: with: packages-dir: dist/ repository-url: https://test.pypi.org/legacy/ + verbose: true test-container: runs-on: ubuntu-latest needs: ['build', 'path-filter'] diff --git a/libs/lbox-alignerr/Dockerfile b/libs/lbox-alignerr/Dockerfile new file mode 100644 index 000000000..64d585507 --- /dev/null +++ b/libs/lbox-alignerr/Dockerfile @@ -0,0 +1,45 @@ +# https://github.com/ucyo/python-package-template/blob/master/Dockerfile +FROM python:3.10-slim as rye + +ENV LANG="C.UTF-8" \ + LC_ALL="C.UTF-8" \ + PATH="/home/python/.local/bin:/home/python/.rye/shims:$PATH" \ + PIP_NO_CACHE_DIR="false" \ + RYE_VERSION="0.43.0" \ + RYE_INSTALL_OPTION="--yes" \ + LABELBOX_TEST_ENVIRON="prod" + +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ + ca-certificates \ + curl \ + inotify-tools \ + make \ + # cv2 + libsm6 \ + libxext6 \ + ffmpeg \ + libfontconfig1 \ + libxrender1 \ + libgl1 \ + libglx-mesa0 \ + libgeos-dev \ + gcc \ + && rm -rf /var/lib/apt/lists/* + +RUN groupadd --gid 1000 python && \ + useradd --uid 1000 --gid python --shell /bin/bash --create-home python + +USER 1000 +WORKDIR /home/python/ + +RUN curl -sSf https://rye.astral.sh/get | bash - + +COPY --chown=python:python . /home/python/labelbox-python/ +WORKDIR /home/python/labelbox-python + +RUN rye config --set-bool behavior.global-python=true && \ + rye config --set-bool behavior.use-uv=true && \ + rye pin 3.10 && \ + rye sync + +CMD rye run unit && rye integration diff --git a/libs/lbox-clients/Dockerfile b/libs/lbox-clients/Dockerfile index 1d7a3642a..64d585507 100644 --- a/libs/lbox-clients/Dockerfile +++ b/libs/lbox-clients/Dockerfile @@ -1,5 +1,5 @@ # https://github.com/ucyo/python-package-template/blob/master/Dockerfile -FROM python:3.9-slim as rye +FROM python:3.10-slim as rye ENV LANG="C.UTF-8" \ LC_ALL="C.UTF-8" \ @@ -20,7 +20,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins ffmpeg \ libfontconfig1 \ libxrender1 \ - libgl1-mesa-glx \ + libgl1 \ + libglx-mesa0 \ libgeos-dev \ gcc \ && rm -rf /var/lib/apt/lists/* @@ -38,7 +39,7 @@ WORKDIR /home/python/labelbox-python RUN rye config --set-bool behavior.global-python=true && \ rye config --set-bool behavior.use-uv=true && \ - rye pin 3.9 && \ + rye pin 3.10 && \ rye sync -CMD rye run unit && rye integration \ No newline at end of file +CMD rye run unit && rye integration diff --git a/libs/lbox-example/Dockerfile b/libs/lbox-example/Dockerfile index 1d7a3642a..64d585507 100644 --- a/libs/lbox-example/Dockerfile +++ b/libs/lbox-example/Dockerfile @@ -1,5 +1,5 @@ # https://github.com/ucyo/python-package-template/blob/master/Dockerfile -FROM python:3.9-slim as rye +FROM python:3.10-slim as rye ENV LANG="C.UTF-8" \ LC_ALL="C.UTF-8" \ @@ -20,7 +20,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins ffmpeg \ libfontconfig1 \ libxrender1 \ - libgl1-mesa-glx \ + libgl1 \ + libglx-mesa0 \ libgeos-dev \ gcc \ && rm -rf /var/lib/apt/lists/* @@ -38,7 +39,7 @@ WORKDIR /home/python/labelbox-python RUN rye config --set-bool behavior.global-python=true && \ rye config --set-bool behavior.use-uv=true && \ - rye pin 3.9 && \ + rye pin 3.10 && \ rye sync -CMD rye run unit && rye integration \ No newline at end of file +CMD rye run unit && rye integration