Skip to content

Commit 89fb927

Browse files
authored
Merge pull request libgit2#104 from libgit2/ethomson/update_libgit2
Update build scripts
2 parents eca69f1 + 55210cc commit 89fb927

File tree

4 files changed

+8
-3
lines changed

4 files changed

+8
-3
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"]

build.libgit2.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -e
4+
35
LIBGIT2SHA=`cat ./nuget.package/libgit2/libgit2_hash.txt`
46
SHORTSHA=${LIBGIT2SHA:0:7}
57

@@ -50,5 +52,3 @@ rm -rf $PACKAGEPATH/$RID
5052
mkdir -p $PACKAGEPATH/$RID/native
5153

5254
cp libgit2/build/libgit2-$SHORTSHA.$LIBEXT $PACKAGEPATH/$RID/native
53-
54-
exit $?

dockerbuild.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
set -e
4+
35
docker build -t $RID -f Dockerfile.$RID .
46

57
docker run -it -e RID=$RID --name=$RID $RID

0 commit comments

Comments
 (0)