centos-7-core.dockerfile 891 字节
Newer Older
Q
quicksilver 已提交
1 2 3
ARG arch=amd64
FROM ${arch}/centos:7

4 5 6 7
# pipefail is enabled for proper error detection in the `wget`
# step
SHELL ["/bin/bash", "-o", "pipefail", "-c"]

Q
quicksilver 已提交
8 9 10 11 12 13 14 15 16 17 18
RUN yum install -y epel-release centos-release-scl-rh && yum install -y wget curl which && \
    wget -qO- "https://cmake.org/files/v3.14/cmake-3.14.3-Linux-x86_64.tar.gz" | tar --strip-components=1 -xz -C /usr/local && \
    yum install -y ccache make automake git python3-pip libcurl-devel python3-devel boost-static mysql-devel \
    devtoolset-6-gcc devtoolset-6-gcc-c++ devtoolset-6-gcc-gfortran llvm-toolset-7.0-clang llvm-toolset-7.0-clang-tools-extra lcov \
    && \
    rm -rf /var/cache/yum/*

RUN echo "source scl_source enable devtoolset-6" >> /etc/profile.d/devtoolset-6.sh
RUN echo "source scl_source enable llvm-toolset-7.0" >> /etc/profile.d/llvm-toolset-7.sh

ENV CLANG_TOOLS_PATH="/opt/rh/llvm-toolset-7.0/root/usr/bin"