Fix extraction of Hailo userspace libs (#15187)

The archive already has everything contained in a rootfs folder, extract
it as-is to the root folder. This also reverts changes from
33957e5360 which addressed the same issue
in a less optimal way.
This commit is contained in:
Jan Čermák 2024-12-02 15:35:51 +01:00 committed by GitHub
parent 833cdcb6d2
commit 5475672a9d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 6 deletions

View File

@ -36,8 +36,5 @@ RUN pip3 install -U /deps/hailo-wheels/*.whl
# Copy base files from the rootfs stage
COPY --from=rootfs / /
# Set Library path for hailo driver
ENV LD_LIBRARY_PATH=/rootfs/usr/local/lib/
# Set workdir
WORKDIR /opt/frigate/

View File

@ -10,10 +10,8 @@ elif [[ "${TARGETARCH}" == "arm64" ]]; then
arch="aarch64"
fi
mkdir -p /rootfs
wget -qO- "https://github.com/frigate-nvr/hailort/releases/download/v${hailo_version}/hailort-${TARGETARCH}.tar.gz" |
tar -C /rootfs/ -xzf -
tar -C / -xzf -
mkdir -p /hailo-wheels