File tree Expand file tree Collapse file tree 3 files changed +71
-0
lines changed
Expand file tree Collapse file tree 3 files changed +71
-0
lines changed Original file line number Diff line number Diff line change 4343 dockerfile : bionic
4444 base : multiarch/ubuntu-core:arm64-bionic
4545 qemu : true
46+ - name : centos7
47+ - name : centos8
4648 runs-on : ubuntu-latest
4749 steps :
4850 - name : Check out repository
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments