Skip to content

Commit

Permalink
Fix rae dockerfiles and build script
Browse files Browse the repository at this point in the history
  • Loading branch information
geektrove committed Aug 10, 2023
1 parent 98fac38 commit 4f07e03
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion docker_images/rae/builtin_app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,9 @@ RUN find /usr -depth \
-o \( -type f -a \( -name '*.pyc' -o -name '*.pyo' -o -name 'libpython*.a' \) \) \
\) -exec rm -rf '{}' +

RUN pip3 install --no-deps --no-cache-dir robothub-oak && \
pip3 install --no-deps --no-cache-dir git+https://github.com/luxonis/depthai.git@rvc3_develop#subdirectory=depthai_sdk

RUN apt-get purge -y --auto-remove \
build-essential \
cmake \
Expand All @@ -66,4 +69,4 @@ FROM base
# Squash the image to save on space
COPY --from=build /opt/depthai /lib
COPY --from=build /tmp/libusb-1.0.so /lib/libusb-1.0.so
COPY --from=build /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
COPY --from=build /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
2 changes: 1 addition & 1 deletion docker_images/rae/provisioning_app/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,4 @@ FROM base
# Squash the image to save on space
COPY --from=build /opt/depthai /lib
COPY --from=build /tmp/libusb-1.0.so /lib/libusb-1.0.so
COPY --from=build /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
COPY --from=build /usr/local/lib/python3.10/dist-packages /usr/local/lib/python3.10/dist-packages
8 changes: 6 additions & 2 deletions scripts/build-rvc3-image.sh
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ DOCKER_BUILDKIT=1 docker buildx \
echo "================================"
echo "Building RAE..."
echo "=> ${RAE_PROV_TAG}"
echo "================================"

DOCKER_BUILDKIT=1 docker buildx \
build \
--builder remotebuilder \
Expand All @@ -97,7 +99,9 @@ DOCKER_BUILDKIT=1 docker buildx \
--file ./docker_images/rae/provisioning_app/Dockerfile \
./

echo "=> ${RAE_PROV_TAG}"
echo "================================"
echo "Building RAE..."
echo "=> ${RAE_BUILTIN_TAG}"
echo "================================"

DOCKER_BUILDKIT=1 docker buildx \
Expand All @@ -111,7 +115,7 @@ DOCKER_BUILDKIT=1 docker buildx \
--label "org.opencontainers.image.vendor=Luxonis" \
--label "org.opencontainers.image.title=RobotHub RAE builtin app image" \
--label "org.opencontainers.image.description=Based on: Ubuntu\nDepthAI branch: ${DEPTHAI_BRANCH}\nDepthAI version: ${DEPTHAI_VERSION}" \
-t "${RAE_PROV_TAG}" \
-t "${RAE_BUILTIN_TAG}" \
--push \
--provenance=false \
--file ./docker_images/rae/builtin_app/Dockerfile \
Expand Down

0 comments on commit 4f07e03

Please sign in to comment.