File tree Expand file tree Collapse file tree 4 files changed +56
-8
lines changed Expand file tree Collapse file tree 4 files changed +56
-8
lines changed Original file line number Diff line number Diff 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']
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
44ENV 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
3940RUN 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
Original file line number Diff line number Diff line change 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
44ENV 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
3940RUN 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
You can’t perform that action at this time.
0 commit comments