Skip to content

Commit 092d977

Browse files
LucaGuerrapoiana
authored andcommitted
update(build): update cmake in debian buster image to 3.22
Signed-off-by: Luca Guerra <luca@guerra.sh>
1 parent 2e08155 commit 092d977

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

docker/builders/builder-any-x86_64_gcc8.0.0_gcc6.0.0_gcc5.0.0_gcc4.9.0_gcc4.8.0.Dockerfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ RUN apt-get update \
4040
zstd \
4141
gawk \
4242
mawk \
43-
cmake \
4443
git \
4544
&& rm -rf /var/lib/apt/lists/*
4645

@@ -125,6 +124,13 @@ RUN curl -L -o binutils_2.30-22_${TARGETARCH}.deb https://download.falco.org/dep
125124
&& dpkg -i *binutils*.deb \
126125
&& rm -f *binutils*.deb
127126

127+
# Install a recent version of cmake (debian buster has at most 3.13)
128+
RUN curl -L -o /tmp/cmake.tar.gz https://github.com/Kitware/CMake/releases/download/v3.22.5/cmake-3.22.5-linux-$(uname -m).tar.gz; \
129+
gzip -d /tmp/cmake.tar.gz; \
130+
tar -xpf /tmp/cmake.tar --directory=/tmp; \
131+
cp -R /tmp/cmake-3.22.5-linux-$(uname -m)/* /usr; \
132+
rm -rf /tmp/cmake-3.22.5-linux-$(uname -m)/
133+
128134
# Properly create soft link
129135
RUN ln -s /usr/bin/gcc-4.8 /usr/bin/gcc-4.8.0
130136
RUN if [ "$TARGETARCH" = "amd64" ] ; then ln -s /usr/bin/gcc-4.9 /usr/bin/gcc-4.9.0; fi;

0 commit comments

Comments
 (0)