Skip to content

Commit 70cecd5

Browse files
authored
[PLT-0] lbox-alignerr: add missing Dockerfile (#2024)
1 parent a0c28ad commit 70cecd5

File tree

4 files changed

+56
-8
lines changed

4 files changed

+56
-8
lines changed

.github/workflows/lbox-develop.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
with:
105105
packages-dir: dist/
106106
repository-url: https://test.pypi.org/legacy/
107+
verbose: true
107108
test-container:
108109
runs-on: ubuntu-latest
109110
needs: ['build', 'path-filter']

libs/lbox-alignerr/Dockerfile

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# https://github.com/ucyo/python-package-template/blob/master/Dockerfile
2+
FROM python:3.10-slim as rye
3+
4+
ENV LANG="C.UTF-8" \
5+
LC_ALL="C.UTF-8" \
6+
PATH="/home/python/.local/bin:/home/python/.rye/shims:$PATH" \
7+
PIP_NO_CACHE_DIR="false" \
8+
RYE_VERSION="0.43.0" \
9+
RYE_INSTALL_OPTION="--yes" \
10+
LABELBOX_TEST_ENVIRON="prod"
11+
12+
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
13+
ca-certificates \
14+
curl \
15+
inotify-tools \
16+
make \
17+
# cv2
18+
libsm6 \
19+
libxext6 \
20+
ffmpeg \
21+
libfontconfig1 \
22+
libxrender1 \
23+
libgl1 \
24+
libglx-mesa0 \
25+
libgeos-dev \
26+
gcc \
27+
&& rm -rf /var/lib/apt/lists/*
28+
29+
RUN groupadd --gid 1000 python && \
30+
useradd --uid 1000 --gid python --shell /bin/bash --create-home python
31+
32+
USER 1000
33+
WORKDIR /home/python/
34+
35+
RUN curl -sSf https://rye.astral.sh/get | bash -
36+
37+
COPY --chown=python:python . /home/python/labelbox-python/
38+
WORKDIR /home/python/labelbox-python
39+
40+
RUN rye config --set-bool behavior.global-python=true && \
41+
rye config --set-bool behavior.use-uv=true && \
42+
rye pin 3.10 && \
43+
rye sync
44+
45+
CMD rye run unit && rye integration

libs/lbox-clients/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# https://github.com/ucyo/python-package-template/blob/master/Dockerfile
2-
FROM python:3.9-slim as rye
2+
FROM python:3.10-slim as rye
33

44
ENV LANG="C.UTF-8" \
55
LC_ALL="C.UTF-8" \
@@ -20,7 +20,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
2020
ffmpeg \
2121
libfontconfig1 \
2222
libxrender1 \
23-
libgl1-mesa-glx \
23+
libgl1 \
24+
libglx-mesa0 \
2425
libgeos-dev \
2526
gcc \
2627
&& rm -rf /var/lib/apt/lists/*
@@ -38,7 +39,7 @@ WORKDIR /home/python/labelbox-python
3839

3940
RUN rye config --set-bool behavior.global-python=true && \
4041
rye config --set-bool behavior.use-uv=true && \
41-
rye pin 3.9 && \
42+
rye pin 3.10 && \
4243
rye sync
4344

44-
CMD rye run unit && rye integration
45+
CMD rye run unit && rye integration

libs/lbox-example/Dockerfile

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# https://github.com/ucyo/python-package-template/blob/master/Dockerfile
2-
FROM python:3.9-slim as rye
2+
FROM python:3.10-slim as rye
33

44
ENV LANG="C.UTF-8" \
55
LC_ALL="C.UTF-8" \
@@ -20,7 +20,8 @@ RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-ins
2020
ffmpeg \
2121
libfontconfig1 \
2222
libxrender1 \
23-
libgl1-mesa-glx \
23+
libgl1 \
24+
libglx-mesa0 \
2425
libgeos-dev \
2526
gcc \
2627
&& rm -rf /var/lib/apt/lists/*
@@ -38,7 +39,7 @@ WORKDIR /home/python/labelbox-python
3839

3940
RUN rye config --set-bool behavior.global-python=true && \
4041
rye config --set-bool behavior.use-uv=true && \
41-
rye pin 3.9 && \
42+
rye pin 3.10 && \
4243
rye sync
4344

44-
CMD rye run unit && rye integration
45+
CMD rye run unit && rye integration

0 commit comments

Comments
 (0)