Skip to content

Commit

Permalink
update centos7 base image
Browse files Browse the repository at this point in the history
  • Loading branch information
1995chen committed May 4, 2024
1 parent 103ac00 commit eb50b7a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 1 addition & 3 deletions build/Centos7-DNF-Base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@ ADD build/Centos7-DNF-Base/GeoIP-1.4.8.tgz /home
ADD build/Centos7-DNF-Base/lib.tgz /lib

# 更新Repo
RUN yum update -y && yum install -y gcc gcc-c++ make zlib-devel libc.so.6 libstdc++ libstdc++.so.6 glibc.i686 libssl.so.6 xulrunner.x86_64 libXtst.x86_64 initscripts && \
ln -sf /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.6 && ln -sf /usr/lib64/libcrypto.so.10 /usr/lib64/libcrypto.so.6 && \
rpm -ivh /tmp/MySQL-shared-compat-5.0.95-1.rhel5.x86_64.rpm && \
RUN rpm -ivh /tmp/MySQL-shared-compat-5.0.95-1.rhel5.x86_64.rpm && \
rpm -ivh /tmp/MySQL-devel-community-5.0.95-1.rhel5.x86_64.rpm && \
rpm -ivh /tmp/MySQL-client-community-5.0.95-1.rhel5.x86_64.rpm && \
rpm -ivh /tmp/MySQL-server-community-5.0.95-1.rhel5.x86_64.rpm && service mysql stop && \
Expand Down
4 changes: 3 additions & 1 deletion build/Centos7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@ RUN cd /etc/yum.repos.d/ && \
# 添加源
ADD build/Centos7/CentOS-Base.repo /etc/yum.repos.d/
# 更新Repo
RUN yum clean all && yum update -y && yum install -y psmisc openssl openssl-devel curl wget perl vim iptables && \
RUN yum clean all && yum update -y && yum install -y psmisc openssl openssl-devel curl wget perl vim iptables \
gcc gcc-c++ make zlib-devel libc.so.6 libstdc++ libstdc++.so.6 glibc.i686 libssl.so.6 xulrunner.x86_64 libXtst.x86_64 initscripts && \
ln -sf /usr/lib64/libssl.so.10 /usr/lib64/libssl.so.6 && ln -sf /usr/lib64/libcrypto.so.10 /usr/lib64/libcrypto.so.6 && \
yum clean all
# 切换工作目录
WORKDIR /root

0 comments on commit eb50b7a

Please sign in to comment.