-
Notifications
You must be signed in to change notification settings - Fork 318
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add
Dockerfile
that uses the current latest nvidia devel image
current as of: Oct-26-2023
- Loading branch information
Showing
1 changed file
with
31 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |