Skip to content

Commit

Permalink
Separate openvdb installation to a new builder
Browse files Browse the repository at this point in the history
Signed-off-by: Pablo Vela <pablovela@naver.com>
  • Loading branch information
pvela2017 committed Feb 27, 2025
1 parent 5cdc016 commit d9f6673
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docker/images/humble/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,24 @@ RUN git clone -b develop https://github.com/NERSC/timemory.git \
. \
&& cmake --build ./build --target timem

FROM ros:humble-ros-base-jammy AS openvdb-builder

RUN apt-get update \
&& apt-get install --no-install-recommends -y \
git \
libboost-all-dev \
libtbb-dev \
libblosc-dev \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /opt

RUN git clone -b v8.2.0 https://github.com/AcademySoftwareFoundation/openvdb.git \
&& cd openvdb \
&& mkdir build && cd build \
&& cmake .. \
&& make -j$(nproc)

FROM ros:humble-ros-base-jammy AS builder

ENV DEBIAN_FRONTEND noninteractive
Expand Down Expand Up @@ -115,6 +133,11 @@ RUN sudo apt-get update \

COPY --from=cacher --chown=$USER:$GROUP /ws/ $USER_WS/

COPY --from=openvdb-builder --chown=$USER:$GROUP /opt/openvdb/ /opt/openvdb
RUN cd /opt/openvdb/build \
&& sudo make install \
&& sudo rm -rf /opt/openvdb

ENV WITHIN_DEV 1

ENV SHELL /bin/bash
Expand Down

0 comments on commit d9f6673

Please sign in to comment.