Dockerfile.ci 2.1 KB
Newer Older
G
guru4elephant 已提交
1
FROM centos:7.3.1611
B
barrierye 已提交
2

B
barrierye 已提交
3 4 5
RUN yum -y install wget >/dev/null \
    && yum -y install gcc gcc-c++ make glibc-static which >/dev/null \
    && yum -y install git openssl-devel curl-devel bzip2-devel python-devel >/dev/null \
B
barrierye 已提交
6 7
    && yum -y install libSM-1.2.2-2.el7.x86_64 --setopt=protected_multilib=false \
    && yum -y install libXrender-0.9.10-1.el7.x86_64 --setopt=protected_multilib=false \
B
barrierye 已提交
8 9 10
    && yum -y install libXext-1.3.3-3.el7.x86_64 --setopt=protected_multilib=false
    
RUN wget https://cmake.org/files/v3.2/cmake-3.2.0-Linux-x86_64.tar.gz >/dev/null \
G
guru4elephant 已提交
11 12 13
    && tar xzf cmake-3.2.0-Linux-x86_64.tar.gz \
    && mv cmake-3.2.0-Linux-x86_64 /usr/local/cmake3.2.0 \
    && echo 'export PATH=/usr/local/cmake3.2.0/bin:$PATH' >> /root/.bashrc \
B
barrierye 已提交
14 15 16
    && rm cmake-3.2.0-Linux-x86_64.tar.gz

RUN wget https://dl.google.com/go/go1.14.linux-amd64.tar.gz >/dev/null \
G
guru4elephant 已提交
17 18 19 20
    && tar xzf go1.14.linux-amd64.tar.gz \
    && mv go /usr/local/go \
    && echo 'export GOROOT=/usr/local/go' >> /root/.bashrc \
    && echo 'export PATH=/usr/local/go/bin:$PATH' >> /root/.bashrc \
B
barrierye 已提交
21 22 23
    && rm go1.14.linux-amd64.tar.gz
    
RUN yum -y install python-devel sqlite-devel >/dev/null \
G
guru4elephant 已提交
24 25
    && curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py >/dev/null \
    && python get-pip.py >/dev/null \
B
barrierye 已提交
26 27 28
    && rm get-pip.py

RUN wget http://nixos.org/releases/patchelf/patchelf-0.10/patchelf-0.10.tar.bz2 \
B
barrierye 已提交
29
    && yum -y install bzip2 >/dev/null \
G
guru4elephant 已提交
30 31 32
    && tar -jxf patchelf-0.10.tar.bz2 \
    && cd patchelf-0.10 \
    && ./configure --prefix=/usr \
B
barrierye 已提交
33 34
    && make >/dev/null && make install >/dev/null \
    && cd .. \
B
barrierye 已提交
35 36
    && rm -rf patchelf-0.10*

B
barriery 已提交
37
RUN yum install -y python3 python3-devel
B
barrierye 已提交
38 39

RUN yum -y update >/dev/null \
B
barrierye 已提交
40 41 42 43 44
    && yum -y install dnf >/dev/null \
    && yum -y install dnf-plugins-core >/dev/null \
    && dnf copr enable alonid/llvm-3.8.0 -y \
    && dnf install llvm-3.8.0 clang-3.8.0 compiler-rt-3.8.0 -y \
    && echo 'export PATH=/opt/llvm-3.8.0/bin:$PATH' >> /root/.bashrc
B
barrierye 已提交
45 46 47 48

RUN yum install -y java \
    && wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo \
    && yum install -y apache-maven
B
barrierye 已提交
49 50

RUN yum install -y lsof