summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorluwenpeng <[email protected]>2022-02-09 17:32:52 +0800
committerluwenpeng <[email protected]>2022-02-10 14:05:17 +0800
commit226728fb8eed572681253208fc6b463a22ad9809 (patch)
treeb780f8cddb24277af52e969a7ed17739802b804e /Dockerfile
parentc64a1821df08971bddc27c6d0502c0131dad43e0 (diff)
TSG-9549 开发CentOS8环境下功能端的编译平台build-env:rockylinux
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile19
1 files changed, 6 insertions, 13 deletions
diff --git a/Dockerfile b/Dockerfile
index 8e6e865..7783994 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -1,31 +1,24 @@
-FROM centos:7
+FROM rockylinux/rockylinux:8.4
COPY rpm_upload_tools.py /root/rpm_upload_tools.py
COPY file_upload_tools.py /root/file_upload_tools.py
COPY file_upload_tools_to_share_repo.py /root/file_upload_tools_to_share_repo.py
COPY repo.internal.geedge.net.repo /tmp/repo.internal.geedge.net.repo
-COPY CentOS-Base.repo /tmp/CentOS-Base.repo
-COPY CentOS-SCLo-scl.repo /tmp/CentOS-SCLo-scl.repo
COPY netrc.conf /root/.netrc
-COPY cmake /tmp/build_cmake
COPY Sentinel-LDK-8.0.1.tar.gz /tmp/Sentinel-LDK-8.0.1.tar.gz
COPY GEEDGE.hvc /tmp/GEEDGE.hvc
COPY rebuildrpm_and_envelope.sh /root/rebuildrpm_and_envelope.sh
COPY aksusbd-8.23-1.x86_64.rpm /tmp/aksusbd-8.23-1.x86_64.rpm
COPY envconfig.cfgx /tmp/envconfig.cfgx
-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 && \
+RUN cp /tmp/repo.internal.geedge.net.repo /etc/yum.repos.d/ && \
+ yum install -y gcc gcc-c++ make 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 && \
+ dnf --enablerepo=powertools install -y libpcap-devel && \
+ yum install -y cmake3 && \
+ yum install -y python2 && \
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 devtoolset-7 devtoolset-7-libasan-devel && \
- yum install -y libasan libasan4 && \
yum install -y rpmrebuild && \
yum install -y cppcheck && \
yum install -y sudo && \