Skip to content

Commit

Permalink
Merge pull request #810 from roboflow/fix/broken_builds_again
Browse files Browse the repository at this point in the history
Attempt to fix builds
  • Loading branch information
PawelPeczek-Roboflow authored Nov 14, 2024
2 parents 6283a67 + efbd62d commit ac34a8b
Show file tree
Hide file tree
Showing 7 changed files with 21 additions and 20 deletions.
26 changes: 14 additions & 12 deletions docker/dockerfiles/Dockerfile.onnx.jetson.5.1.1.stream_manager
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ ENV LANG en_US.UTF-8
RUN apt-get update -y && apt-get install -y \
lshw \
git \
python3.9 \
python3.9-dev \
python3-pip \
python3-matplotlib \
gfortran \
Expand All @@ -24,31 +26,31 @@ COPY requirements/requirements.clip.txt \
requirements/_requirements.txt \
./

RUN pip3 install --ignore-installed PyYAML && rm -rf ~/.cache/pip
RUN python3.9 -m pip install --ignore-installed PyYAML && rm -rf ~/.cache/pip

# We needed to take statically compiled library for last known stable build and put it into hosting
# That was due to faulty builds started 26.06.2024, probably due to release of new version
# of pybind11, which gets automatically pulled while build of zxing_cpp library making
# cmake to fail
RUN wget https://storage.googleapis.com/roboflow-tests-assets/zxing_cpp_library_compiled_for_inference_v0.12.1_python_3.8.tar.gz \
&& tar -xvzf zxing_cpp_library_compiled_for_inference_v0.12.1_python_3.8.tar.gz \
&& mv zxing_cpp-2.2.0.dist-info /usr/local/lib/python3.8/dist-packages/zxing_cpp-2.2.0.dist-info \
&& mv zxingcpp.cpython-38-aarch64-linux-gnu.so /usr/local/lib/python3.8/dist-packages/ \
&& rm zxing_cpp_library_compiled_for_inference_v0.12.1_python_3.8.tar.gz
RUN wget https://storage.googleapis.com/roboflow-tests-assets/zxing_cpp_library_compiled_for_inference_v0.12.1.tar.gz \
&& tar -xvzf zxing_cpp_library_compiled_for_inference_v0.12.1.tar.gz \
&& mv zxing_cpp-2.2.0.dist-info /usr/local/lib/python3.9/dist-packages/zxing_cpp-2.2.0.dist-info \
&& mv zxingcpp.cpython-39-aarch64-linux-gnu.so /usr/local/lib/python3.9/dist-packages/ \
&& rm zxing_cpp_library_compiled_for_inference_v0.12.1.tar.gz

RUN pip3 install --upgrade pip && pip3 install \
RUN python3.9 -m pip install --upgrade pip && python3.9 -m pip install \
-r _requirements.txt \
-r requirements.clip.txt \
-r requirements.http.txt \
"setuptools<=75.5.0" \
--upgrade \
&& rm -rf ~/.cache/pip

RUN pip3 uninstall --yes onnxruntime
RUN wget https://nvidia.box.com/shared/static/iizg3ggrtdkqawkmebbfixo7sce6j365.whl -O onnxruntime_gpu-1.16.0-cp38-cp38-linux_aarch64.whl
RUN pip3 install onnxruntime_gpu-1.16.0-cp38-cp38-linux_aarch64.whl "opencv-python-headless<4.3" \
RUN python3.9 -m pip uninstall --yes onnxruntime
RUN wget https://nvidia.box.com/shared/static/67zek28z497hs9aev7xg2c1wngdeyv4h.whl -O onnxruntime_gpu-1.16.0-cp39-cp39-linux_aarch64.whl
RUN python3.9 -m pip install onnxruntime_gpu-1.16.0-cp39-cp39-linux_aarch64.whl "opencv-python-headless>4" \
&& rm -rf ~/.cache/pip \
&& rm onnxruntime_gpu-1.16.0-cp38-cp38-linux_aarch64.whl
&& rm onnxruntime_gpu-1.16.0-cp39-cp39-linux_aarch64.whl

WORKDIR /app/
COPY inference inference
Expand All @@ -66,4 +68,4 @@ ENV WORKFLOWS_STEP_EXECUTION_MODE=local
ENV WORKFLOWS_MAX_CONCURRENT_STEPS=1
ENV SUPERVISON_DEPRECATION_WARNING=0

ENTRYPOINT ["python3", "-m", "inference.enterprise.stream_management.manager.app"]
ENTRYPOINT ["python3.9", "-m", "inference.enterprise.stream_management.manager.app"]
4 changes: 2 additions & 2 deletions requirements/_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ numpy<=1.26.4
opencv-python>=4.8.1.78,<=4.10.0.84
piexif~=1.1.3
pillow<11.0
prometheus-fastapi-instrumentator~=7.0.0
prometheus-fastapi-instrumentator<=6.0.0
redis~=5.0.0
requests>=2.26.0,<2.32.0 # newer requests breaks docker which would need to be bumped to 7.x.x
requests>=2.32.0,<3.0.0
rich~=13.0.0
supervision>=0.21.0,<=0.22.0
pybase64~=1.0.0
Expand Down
4 changes: 2 additions & 2 deletions requirements/requirements.cli.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
requests>=2.26.0,<2.32.0 # newer requests breaks docker which would need to be bumped to 7.x.x
docker==6.1.3
requests>=2.32.0,<3.0.0
docker>=7.0.0,<8.0.0
typer>=0.9.0,<=0.12.5
rich~=13.0.0
PyYAML~=6.0.0
Expand Down
1 change: 0 additions & 1 deletion requirements/requirements.hosted.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
pymemcache~=4.0.0
elasticache_auto_discovery~=1.0.0
prometheus-fastapi-instrumentator~=7.0.0
2 changes: 1 addition & 1 deletion requirements/requirements.jetson.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pypdfium2~=4.0.0
jupyterlab~=4.0.0
jupyterlab>=4.3.0,<5.0.0
PyYAML~=6.0.0
onnxruntime-gpu>=1.15.1,<1.20.0
2 changes: 1 addition & 1 deletion requirements/requirements.parallel.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
celery~=5.0.0
celery>=5.4.0,<6.0.0
gunicorn~=23.0.0
2 changes: 1 addition & 1 deletion requirements/requirements.sdk.http.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
requests>=2.26.0,<2.32.0 # newer requests breaks docker which would need to be bumped to 7.x.x
requests>=2.32.0,<3.0.0
dataclasses-json~=0.6.0
opencv-python>=4.8.1.78,<=4.10.0.84
pillow>=9.0.0,<11.0
Expand Down

0 comments on commit ac34a8b

Please sign in to comment.