forked from ZLMediaKit/ZLMediaKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathjenkins.Dockerfile
More file actions
31 lines (29 loc) · 1.17 KB
/
Copy pathjenkins.Dockerfile
File metadata and controls
31 lines (29 loc) · 1.17 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 使用 CentOS 7 作为基础镜像,因为它默认带有 GCC 4.8.5
FROM centos:7
# 更改centos的安装软件下载镜像为vault
RUN sed -i 's|mirrorlist.centos.org|vault.centos.org|g' /etc/yum.repos.d/CentOS-Base.repo && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Base.repo && \
yum clean all && \
yum makecache \
RUN yum install -y https://packages.endpointdev.com/rhel/7/os/x86_64/endpoint-repo.x86_64.rpm
# 安装依赖项
RUN yum update -y && yum install -y gcc gcc-c++ make curl tar wget unzip git
# 创建 jenkins 用户和家目录
RUN useradd -m jenkins
USER jenkins
WORKDIR /opt
RUN wget https://github.com/openssl/openssl/releases/download/openssl-3.5.1/openssl-3.5.1.tar.gz && \
tar -zxvf openssl-3.5.1.tar.gz && \
cd openssl-3.5.1 && \
./config && \
make -j$(nproc) && \
make --install
RUN wget https://github.com/Kitware/CMake/archive/refs/tags/v3.28.0.zip && \
unzip v3.28.0.zip && \
cd CMake-3.28.0 && \
./bootstrap && \
make -j$(nproc) && \
make install
WORKDIR /home/jenkins
# 安装 Rust
#RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y