Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update centos8 dockerfile #71

Merged
merged 1 commit into from
Jun 22, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions Dockerfile.centos
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

ENV LANG=en_US.utf8

RUN if [ "x${VERSION}" = "x8" ]; then cd /etc/yum.repos.d/ && \
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*; fi

RUN yum update -y && yum install -y epel-release \
&& yum install -y \
autoconf \
Expand All @@ -24,7 +28,6 @@ RUN yum update -y && yum install -y epel-release \
m4 \
make \
ncurses-devel \
ninja-build \
openldap-devel \
openssh-clients \
openssl-devel \
Expand All @@ -44,12 +47,12 @@ RUN yum update -y && yum install -y epel-release \
xz \
zlib-devel \
# client
libatomic \
&& yum clean all \
libatomic
RUN if [ "x${VERSION}" != "x8" ]; then yum install -y ninja-build centos-release-scl; fi
RUN if [ "x${VERSION}" = "x8" ]; then yum --enablerepo=powertools install -y ninja-build; fi
RUN yum clean all \
&& rm -rf /var/cache/yum

RUN if [ "x${VERSION}" != "x8" ]; then yum install -y centos-release-scl; fi

WORKDIR /root

ENV TOOLSET_CLANG_DIR=/opt/vesoft/toolset/clang/10.0.0
Expand Down