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
1 change: 1 addition & 0 deletions .github/workflows/lbox-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ jobs:
with:
packages-dir: dist/
repository-url: https://test.pypi.org/legacy/
verbose: true
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is OK to leave as-is and provides useful debugging info.

test-container:
runs-on: ubuntu-latest
needs: ['build', 'path-filter']
Expand Down
45 changes: 45 additions & 0 deletions libs/lbox-alignerr/Dockerfile
Original file line number Diff line number Diff line change
@@ -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
9 changes: 5 additions & 4 deletions libs/lbox-clients/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" \
Expand All @@ -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/*
Expand All @@ -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
CMD rye run unit && rye integration
9 changes: 5 additions & 4 deletions libs/lbox-example/Dockerfile
Original file line number Diff line number Diff line change
@@ -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" \
Expand All @@ -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/*
Expand All @@ -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
CMD rye run unit && rye integration
Loading