summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-08-15 17:53:44 -0400
committerGitHub <noreply@github.com>2021-08-15 17:53:44 -0400
commitf25ca0e3a59a31539628a7b5b61967bbbbcb3f96 (patch)
treec6fcaef6f64bc41fefe5c64adbef927cbae22b43
parent4ae6107b2735e9dd30ae8aada1a864b84461ff2c (diff)
parent624717774e70eee0af44c0f6e1be9ed0da1328d2 (diff)
downloadlibgit2-f25ca0e3a59a31539628a7b5b61967bbbbcb3f96.tar.gz
Merge pull request #5992 from libgit2/ethomson/centos_ci
ci: add centos 7 and centos 8
-rw-r--r--.github/workflows/main.yml2
-rw-r--r--ci/docker/centos739
-rw-r--r--ci/docker/centos830
3 files changed, 71 insertions, 0 deletions
diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml
index f0e9da993..d1a0be720 100644
--- a/.github/workflows/main.yml
+++ b/.github/workflows/main.yml
@@ -43,6 +43,8 @@ jobs:
dockerfile: bionic
base: multiarch/ubuntu-core:arm64-bionic
qemu: true
+ - name: centos7
+ - name: centos8
runs-on: ubuntu-latest
steps:
- name: Check out repository
diff --git a/ci/docker/centos7 b/ci/docker/centos7
new file mode 100644
index 000000000..71645833e
--- /dev/null
+++ b/ci/docker/centos7
@@ -0,0 +1,39 @@
+ARG BASE=centos:7
+FROM ${BASE} AS yum
+RUN yum install -y \
+ which \
+ git \
+ libarchive \
+ cmake \
+ gcc \
+ gcc-c++ \
+ make \
+ openssl-devel \
+ openssh-server \
+ git-daemon \
+ java-1.8.0-openjdk-headless \
+ sudo \
+ python
+
+FROM yum AS libssh2
+RUN cd /tmp && \
+ curl https://libssh2.org/download/libssh2-1.8.0.tar.gz | tar -xz && \
+ cd libssh2-1.8.0 && \
+ ./configure && \
+ make && \
+ make install
+
+FROM libssh2 AS cmake
+RUN cd /tmp && \
+ curl -L https://github.com/Kitware/CMake/releases/download/v3.21.1/cmake-3.21.1.tar.gz | tar -xz && \
+ cd cmake-3.21.1 && \
+ ./configure && \
+ make && \
+ make install
+
+FROM libssh2 AS adduser
+RUN useradd --shell /bin/bash libgit2 --create-home
+
+FROM adduser AS configure
+ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig
+RUN mkdir /var/run/sshd
diff --git a/ci/docker/centos8 b/ci/docker/centos8
new file mode 100644
index 000000000..0414838d1
--- /dev/null
+++ b/ci/docker/centos8
@@ -0,0 +1,30 @@
+ARG BASE=centos:8
+FROM ${BASE} AS yum
+RUN yum install -y \
+ which \
+ git \
+ libarchive \
+ cmake \
+ gcc \
+ make \
+ openssl-devel \
+ openssh-server \
+ git-daemon \
+ java-1.8.0-openjdk-headless \
+ sudo \
+ python39
+
+FROM yum AS libssh2
+RUN cd /tmp && \
+ curl https://libssh2.org/download/libssh2-1.8.0.tar.gz | tar -xz && \
+ cd libssh2-1.8.0 && \
+ ./configure && \
+ make && \
+ make install
+
+FROM libssh2 AS adduser
+RUN useradd --shell /bin/bash libgit2 --create-home
+
+FROM adduser AS configure
+ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig
+RUN mkdir /var/run/sshd