Skip to content

Commit 55210cc

Browse files
committed
linux-x64, rhel-x64: use a newer cmake
libgit2 now requires a cmake from within the most recent half decade. Use a newer version during the build.
1 parent 14c033f commit 55210cc

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

Dockerfile.linux-x64

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ FROM ubuntu:14.04
22
WORKDIR /nativebinaries
33
COPY . /nativebinaries/
44

5-
RUN apt update && apt -y install cmake libssl-dev pkg-config
5+
RUN apt update && apt -y install libssl-dev pkg-config curl make gcc build-essential
6+
7+
RUN curl -L https://github.com/Kitware/CMake/releases/download/v3.15.4/cmake-3.15.4-Linux-x86_64.sh -o /tmp/cmake.sh && bash /tmp/cmake.sh --skip-license --prefix=/usr/local
68

79
CMD ["/bin/bash", "-c", "./build.libgit2.sh"]

Dockerfile.rhel-x64

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ WORKDIR /nativebinaries
33
COPY . /nativebinaries/
44

55
RUN yum -y install cmake gcc make openssl-devel
6+
RUN curl -L https://github.com/Kitware/CMake/releases/download/v3.15.4/cmake-3.15.4-Linux-x86_64.sh -o /tmp/cmake.sh && bash /tmp/cmake.sh --skip-license --prefix=/usr/local
67

78
CMD ["/bin/bash", "-c", "./build.libgit2.sh"]

0 commit comments

Comments
 (0)