Skip to content

Commit

Permalink
add Dockerfile that uses the current latest nvidia devel image
Browse files Browse the repository at this point in the history
current as of: Oct-26-2023
  • Loading branch information
felixmr1 committed Oct 26, 2023
1 parent 6d99a9c commit e7e9964
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions docker/jammy_cuda/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
FROM nvidia/cuda:12.2.2-devel-ubuntu22.04

ENV DEBIAN_FRONTEND=noninteractive

RUN apt-get update && apt-get install --no-install-recommends -y \
&& apt-get install --no-install-recommends -y wget nano cmake build-essential git \
ca-certificates libeigen3-dev libboost-all-dev libflann-dev libvtk7-dev libomp-dev libgtest-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

WORKDIR /root
RUN git clone https://github.com/PointCloudLibrary/pcl

WORKDIR /root/pcl/build
RUN cmake .. -DCMAKE_BUILD_TYPE=Release \
-DBUILD_geometry=OFF -DBUILD_keypoints=OFF -DBUILD_ml=OFF -DBUILD_outofcore=OFF -DBUILD_people=OFF \
-DBUILD_recognition=OFF -DBUILD_segmentation=OFF -DBUILD_stereo=OFF -DBUILD_surface=OFF -DBUILD_tools=OFF -DBUILD_tracking=OFF
RUN make -j$(nproc) && make install

COPY . /root/fast_gicp
WORKDIR /root/fast_gicp
RUN git submodule init && git submodule update

RUN rm -rf /root/fast_gicp/build
WORKDIR /root/fast_gicp/build
RUN cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_VGICP_CUDA=ON -DBUILD_PYTHON_BINDINGS=ON -DBUILD_apps=OFF -DBUILD_test=ON
RUN make -j$(nproc)

WORKDIR /root

CMD ["bash"]

0 comments on commit e7e9964

Please sign in to comment.