Skip to content

Instantly share code, notes, and snippets.

@amosbird
Created January 21, 2022 07:20
Show Gist options
  • Save amosbird/113c8c06cb04ac2557af85350fe00c00 to your computer and use it in GitHub Desktop.
Save amosbird/113c8c06cb04ac2557af85350fe00c00 to your computer and use it in GitHub Desktop.
Minimal CentOS 6 image to compile Apache Doris
FROM centos:6
RUN curl https://www.getpagespeed.com/files/centos6-eol.repo --output /etc/yum.repos.d/CentOS-Base.repo
RUN yum update -y && \
yum install -y \
byacc \
patch \
automake \
libtool \
make \
which \
file \
ncurses-devel \
gettext-devel \
unzip \
bzip2 \
zip
RUN yum install -y \
util-linux
RUN yum install -y \
java-1.8.0-openjdk-devel \
wget
RUN wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
RUN sed -i s/\$releasever/6/g /etc/yum.repos.d/epel-apache-maven.repo
RUN yum install -y apache-maven
RUN wget http://ftp.gnu.org/gnu/autoconf/autoconf-2.69.tar.gz && \
tar zxf autoconf-2.69.tar.gz && \
cd autoconf-2.69 && \
./configure && \
make && \
make install && \
cd .. && \
rm -rf autoconf-2.69 autoconf-2.69.tar.gz
RUN wget http://ftp.gnu.org/gnu/bison/bison-3.0.4.tar.gz && \
tar xzf bison-3.0.4.tar.gz && \
cd bison-3.0.4 && \
./configure && \
make && \
make install && \
cd .. && \
rm -rf bison-3.0.4 bison-3.0.4.tar.gz
RUN yum install -y git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment