Compare commits

2 Commits
main ... debug

Author SHA1 Message Date
yangwei
e1f034a252 🔧 build(dockfile): install laterest rpm 2024-09-24 17:04:22 +08:00
yangwei
41f7115ca3 🔧 build(dockerfile): minimum rpm 2024-09-24 17:04:22 +08:00
2 changed files with 11 additions and 21 deletions

View File

@@ -4,35 +4,26 @@ COPY netrc.conf /root/.netrc
COPY tsg_framework.sh /etc/profile.d/tsg_framework.sh COPY tsg_framework.sh /etc/profile.d/tsg_framework.sh
RUN cp /tmp/repo.internal.geedge.net.repo /etc/yum.repos.d/ && \ 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 yum-utils && \ yum install -y gdb gcc gcc-c++ epel-release git yum-utils && \
wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-archive-8.repo && \
sed -i 's/epel-archive/epel/g' /etc/yum.repos.d/epel.repo && \
yum-config-manager --enable powertools && \
dnf --enablerepo=powertools install -y libpcap-devel && \ dnf --enablerepo=powertools install -y libpcap-devel && \
yum install -y cmake3 && \ yum install -y cmake3 && \
yum install -y python2 && \ yum install -y sudo
yum install -y python3-pip && \
pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple httpie && \
rpm -U https://download-ib01.fedoraproject.org/pub/epel/7/x86_64/Packages/c/cppcheck-2.7-1.el7.x86_64.rpm && \
yum install -y sudo && \
yum install -y elfutils-libelf-devel libmnl-devel libnfnetlink-devel gtest-devel && \
yum install -y net-tools psmisc iproute initscripts gperftools-libs gdb snappy && \
yum install -y libunwind gperftools && \
dnf --enablerepo=powertools install -y libnsl
RUN yum makecache RUN yum makecache
RUN yumdownloader --destdir=/tmp/ libMESA_prof_load-devel libMESA_prof_load \ RUN yumdownloader --destdir=/tmp/ \
libMESA_htable-devel libMESA_htable \ libMESA_prof_load \
libMESA_handle_logger-devel libMESA_handle_logger \ libMESA_htable \
libMESA_field_stat2-devel libMESA_field_stat2 \ libMESA_handle_logger \
libfieldstat3-devel libfieldstat3 libfieldstat4-devel libfieldstat4 \ libMESA_field_stat2 \
libfieldstat3 \
libfieldstat4 \
libbreakpad_mini libMESA_jump_layer libcjson && \ libbreakpad_mini libMESA_jump_layer libcjson && \
find /tmp/ -name "*.rpm" |xargs rpm --prefix=/opt/tsg/framework --force --nodeps -ivh find /tmp/ -name "*.rpm" |xargs rpm --prefix=/opt/tsg/framework --force --nodeps -ivh
RUN yumdownloader --destdir=/tmp/ sapp-4.3.38.90209da stellar-c-1.0.13.57d25a1 && \ RUN yumdownloader --destdir=/tmp/ sapp stellar-on-sapp && \
find /tmp/ -name "sapp*.rpm" |xargs rpm --prefix=/opt/tsg/sapp -ivh && \ find /tmp/ -name "sapp*.rpm" |xargs rpm --prefix=/opt/tsg/sapp -ivh && \
find /tmp/ -name "stellar-c*.rpm" | xargs rpm --prefix=/opt/tsg/ -ivh find /tmp/ -name "stellar-on-sapp*.rpm" | xargs rpm --prefix=/opt/tsg/ -ivh
RUN yum clean all && \ RUN yum clean all && \
rm /tmp/*.rpm && \ rm /tmp/*.rpm && \

View File

@@ -10,7 +10,6 @@ Step 1: Login to private docker registry, use the following command:
``` ```
docker login https://git.mesalab.cn:7443 -u $your_username -p $your_passwd docker login https://git.mesalab.cn:7443 -u $your_username -p $your_passwd
``` ```
Replace `your_username` and `your_passwd` with your private account. Replace `your_username` and `your_passwd` with your private account.