-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
72 additions
and
5 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
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
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,28 @@ | ||
ARG BASE_IMAGE=koide3/gtsam_docker:focal | ||
|
||
FROM ${BASE_IMAGE} | ||
|
||
RUN test -f /usr/share/doc/kitware-archive-keyring/copyright || wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null | ||
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null | ||
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal-rc main' | tee -a /etc/apt/sources.list.d/kitware.list >/dev/null | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-fast clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
COPY . /root/gtsam_points | ||
WORKDIR /root/gtsam_points/build | ||
RUN rm -rf * | ||
RUN cmake .. \ | ||
-DBUILD_DEMO=ON \ | ||
-DBUILD_TESTS=ON \ | ||
-DBUILD_EXAMPLE=ON \ | ||
-DBUILD_WITH_CUDA=OFF \ | ||
-DCMAKE_BUILD_TYPE=Release && \ | ||
make -j$(nproc) && \ | ||
make test && \ | ||
make install && \ | ||
rm -rf /root/gtsam_points/build | ||
|
||
CMD ["bash"] |
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,36 @@ | ||
ARG BASE_IMAGE=koide3/gtsam_docker:focal_cuda12.2 | ||
|
||
FROM ${BASE_IMAGE} | ||
|
||
RUN test -f /usr/share/doc/kitware-archive-keyring/copyright || wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | gpg --dearmor - | tee /usr/share/keyrings/kitware-archive-keyring.gpg >/dev/null | ||
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal main' | tee /etc/apt/sources.list.d/kitware.list >/dev/null | ||
RUN echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ focal-rc main' | tee -a /etc/apt/sources.list.d/kitware.list >/dev/null | ||
|
||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-fast clean \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
# System eigen on focal is too old. | ||
# Install Eigen that is newer but compatible with 3.3.7 used by GTSAM. | ||
RUN git clone https://gitlab.com/libeigen/eigen.git | ||
WORKDIR /root/eigen | ||
RUN git checkout 1fd5ce1 | ||
WORKDIR /root/eigen/build | ||
RUN cmake .. && make install | ||
|
||
COPY . /root/gtsam_points | ||
WORKDIR /root/gtsam_points/build | ||
RUN rm -rf * | ||
RUN cmake .. \ | ||
-DBUILD_DEMO=ON \ | ||
-DBUILD_TESTS=ON \ | ||
-DBUILD_EXAMPLE=ON \ | ||
-DBUILD_WITH_CUDA=ON \ | ||
-DBUILD_WITH_CUDA_MULTIARCH=ON \ | ||
-DCMAKE_BUILD_TYPE=Release && \ | ||
make -j$(nproc) && \ | ||
make install && \ | ||
rm -rf /root/gtsam_points/build | ||
|
||
CMD ["bash"] |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG BASE_IMAGE=koide3/gtsam_docker:jammy | ||
ARG BASE_IMAGE=koide3/gtsam_docker:jammy_cuda12.2 | ||
|
||
FROM ${BASE_IMAGE} | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
ARG BASE_IMAGE=koide3/gtsam_docker:jammy | ||
ARG BASE_IMAGE=koide3/gtsam_docker:jammy_cuda12.2 | ||
|
||
FROM ${BASE_IMAGE} | ||
|
||
|
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