Skip to content

Commit 7604b1a

Browse files
authored
Merge pull request #52 from LockedThread/development
Development
2 parents 485ee25 + af77ee7 commit 7604b1a

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

Dockerfile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,21 @@ RUN wget https://ftp.gnu.org/gnu/make/make-4.4.1.tar.gz && \
3434
tar -xzf make-4.4.1.tar.gz && \
3535
cd make-4.4.1 && \
3636
./configure --prefix=/usr/local && \
37-
make && \
37+
make -j$(nproc) && \
3838
make install && \
3939
cd .. && \
4040
rm -rf make-4.4.1 make-4.4.1.tar.gz
4141

42+
# Install CMake 4.0.3
43+
RUN wget https://github.com/Kitware/CMake/releases/download/v4.0.3/cmake-4.0.3.tar.gz && \
44+
tar -xzf cmake-4.0.3.tar.gz && \
45+
cd cmake-4.0.3 && \
46+
./bootstrap --prefix=/usr/local && \
47+
make -j$(nproc) && \
48+
make install && \
49+
cd .. && \
50+
rm -rf cmake-4.0.3 cmake-4.0.3.tar.gz
51+
4252
# Set working directory
4353
WORKDIR /usr/src
4454

@@ -59,7 +69,7 @@ ENV PATH="/usr/local/bin:${PATH}"
5969
RUN python3 -m pip install --upgrade pip
6070

6171
# Use git to clone gtsam and specific GTSAM version
62-
FROM alpine/git:2.47.2 as gtsam-clone
72+
FROM alpine/git:2.49.0 as gtsam-clone
6373

6474
ARG GTSAM_VERSION=4.2.0
6575
WORKDIR /usr/src/
@@ -94,10 +104,11 @@ RUN cmake \
94104
-DGTSAM_BUILD_PYTHON=ON \
95105
-DGTSAM_BUILD_CONVENIENCE_LIBRARIES=OFF \
96106
-DGTSAM_PYTHON_VERSION=${PYTHON_VERSION} \
107+
-DCMAKE_POLICY_VERSION_MINIMUM=3.5 \
97108
..
98109

99110
# Make install and clean up
100-
RUN make -j4 install && \
111+
RUN make -j$(nproc) install && \
101112
make python-install && \
102113
make clean
103114

0 commit comments

Comments
 (0)