Commit e6c9fcf0 by Edward Thomson

ci: add centos7 and centos8 docker definitions

parent 4ae6107b
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
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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment