summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-08-09 08:42:06 -0400
committerEdward Thomson <ethomson@edwardthomson.com>2021-08-15 17:17:58 -0400
commite6c9fcf08d3893a924f8961af7123a5a9c3c4ced (patch)
tree386b205d6c4c6b0cb69b4aa98008c1bd959f50e8
parent4ae6107b2735e9dd30ae8aada1a864b84461ff2c (diff)
downloadlibgit2-e6c9fcf08d3893a924f8961af7123a5a9c3c4ced.tar.gz
ci: add centos7 and centos8 docker definitions
-rw-r--r--ci/docker/centos739
-rw-r--r--ci/docker/centos830
2 files changed, 69 insertions, 0 deletions
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