Skip to content

Commit d0e04d8

Browse files
committed
update cmake (required by newer GEOS versions)
1 parent 7863c40 commit d0e04d8

File tree

6 files changed

+40
-0
lines changed

6 files changed

+40
-0
lines changed

runtime/install/_all.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
set -euxo pipefail
33

44
# install all dependencies
5+
./cmake.sh
56
./icu.sh
67
./sqlite.sh
78
./zlib.sh

runtime/install/cmake.sh

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
2+
#!/bin/bash
3+
set -euxo pipefail
4+
5+
CMAKE_VERSION='3.31.6'
6+
7+
# working directory
8+
cd /tmp
9+
10+
# download release and decompress it
11+
curl -L "https://github.com/Kitware/CMake/releases/download/v${CMAKE_VERSION}/cmake-${CMAKE_VERSION}.tar.gz" \
12+
| tar xvz
13+
14+
# working directory
15+
cd "cmake-${CMAKE_VERSION}"
16+
17+
# compile and install in runtime directory
18+
./configure
19+
make
20+
21+
# clean up
22+
cd /tmp
23+
rm -rf "cmake-${CMAKE_VERSION}"

runtime/runtime.alpine.3.21.Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ WORKDIR /code/runtime/install
2222
# copy build utils
2323
COPY runtime/install/_utils.sh /code/runtime/install/
2424

25+
# update cmake
26+
COPY runtime/install/cmake.sh /code/runtime/install/
27+
RUN ./cmake.sh
28+
2529
# install icu
2630
COPY runtime/install/icu.sh /code/runtime/install/
2731
RUN ./icu.sh

runtime/runtime.debian.buster.Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ WORKDIR /code/runtime/install
1919
# copy build utils
2020
COPY runtime/install/_utils.sh /code/runtime/install/
2121

22+
# update cmake
23+
COPY runtime/install/cmake.sh /code/runtime/install/
24+
RUN ./cmake.sh
25+
2226
# install icu
2327
COPY runtime/install/icu.sh /code/runtime/install/
2428
RUN ./icu.sh

runtime/runtime.ubuntu.bionic.Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ WORKDIR /code/runtime/install
1919
# copy build utils
2020
COPY runtime/install/_utils.sh /code/runtime/install/
2121

22+
# update cmake
23+
COPY runtime/install/cmake.sh /code/runtime/install/
24+
RUN ./cmake.sh
25+
2226
# install icu
2327
COPY runtime/install/icu.sh /code/runtime/install/
2428
RUN ./icu.sh

runtime/runtime.ubuntu.focal.Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,10 @@ WORKDIR /code/runtime/install
1919
# copy build utils
2020
COPY runtime/install/_utils.sh /code/runtime/install/
2121

22+
# update cmake
23+
COPY runtime/install/cmake.sh /code/runtime/install/
24+
RUN ./cmake.sh
25+
2226
# install icu
2327
COPY runtime/install/icu.sh /code/runtime/install/
2428
RUN ./icu.sh

0 commit comments

Comments
 (0)