blob: 46b97dcb1128d421f3a46f6705c9efbb4f35e9ea (
plain)
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
|
FROM centos:7
COPY rpm_upload_tools.py /root/rpm_upload_tools.py
COPY file_upload_tools.py /root/file_upload_tools.py
COPY repo.internal.geedge.net.repo /tmp/repo.internal.geedge.net.repo
COPY CentOS-Base.repo /tmp/CentOS-Base.repo
COPY netrc.conf /root/.netrc
COPY cmake /tmp/build_cmake
RUN rm -rf /etc/yum.repos.d/* && \
cp /tmp/*.repo /etc/yum.repos.d/ && \
yum install -y gcc gcc-c++ make libpcap-devel epel-release patch wget socat automake autoconf libtool rpm-build git && \
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo && \
cd /tmp/build_cmake && \
tar xf cmake-3.12.4-Linux-x86_64.tar.gz && \
cp -r cmake-3.12.4-Linux-x86_64/* /usr/local/ && \
cp /usr/local/bin/cmake /usr/local/bin/cmake3 && \
yum install -y python3-pip && \
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple httpie && \
curl -sL https://sentry.io/get-cli/ |sed 's#downloads\.sentry-cdn\.com#npm\.taobao\.org\/mirrors#g'|bash && \
yum install -y centos-release-scl && \
yum install -y devtoolset-7 devtoolset-7-libasan-devel && \
yum install -y libasan libasan4 && \
yum clean all && \
rm -rf /var/cache/yum
CMD [ "/bin/bash" ]
|