Skip to content

Commit e6c9fcf

Browse files
committed
ci: add centos7 and centos8 docker definitions
1 parent 4ae6107 commit e6c9fcf

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

ci/docker/centos7

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
ARG BASE=centos:7
2+
FROM ${BASE} AS yum
3+
RUN yum install -y \
4+
which \
5+
git \
6+
libarchive \
7+
cmake \
8+
gcc \
9+
gcc-c++ \
10+
make \
11+
openssl-devel \
12+
openssh-server \
13+
git-daemon \
14+
java-1.8.0-openjdk-headless \
15+
sudo \
16+
python
17+
18+
FROM yum AS libssh2
19+
RUN cd /tmp && \
20+
curl https://libssh2.org/download/libssh2-1.8.0.tar.gz | tar -xz && \
21+
cd libssh2-1.8.0 && \
22+
./configure && \
23+
make && \
24+
make install
25+
26+
FROM libssh2 AS cmake
27+
RUN cd /tmp && \
28+
curl -L https://github.com/Kitware/CMake/releases/download/v3.21.1/cmake-3.21.1.tar.gz | tar -xz && \
29+
cd cmake-3.21.1 && \
30+
./configure && \
31+
make && \
32+
make install
33+
34+
FROM libssh2 AS adduser
35+
RUN useradd --shell /bin/bash libgit2 --create-home
36+
37+
FROM adduser AS configure
38+
ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig
39+
RUN mkdir /var/run/sshd

ci/docker/centos8

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
ARG BASE=centos:8
2+
FROM ${BASE} AS yum
3+
RUN yum install -y \
4+
which \
5+
git \
6+
libarchive \
7+
cmake \
8+
gcc \
9+
make \
10+
openssl-devel \
11+
openssh-server \
12+
git-daemon \
13+
java-1.8.0-openjdk-headless \
14+
sudo \
15+
python39
16+
17+
FROM yum AS libssh2
18+
RUN cd /tmp && \
19+
curl https://libssh2.org/download/libssh2-1.8.0.tar.gz | tar -xz && \
20+
cd libssh2-1.8.0 && \
21+
./configure && \
22+
make && \
23+
make install
24+
25+
FROM libssh2 AS adduser
26+
RUN useradd --shell /bin/bash libgit2 --create-home
27+
28+
FROM adduser AS configure
29+
ENV PKG_CONFIG_PATH /usr/local/lib/pkgconfig
30+
RUN mkdir /var/run/sshd

0 commit comments

Comments
 (0)