Skip to content

Instantly share code, notes, and snippets.

@andrwng
Created July 17, 2018 10:35
Show Gist options
  • Save andrwng/c016f1fbaa9380d6cad2152276eaeb81 to your computer and use it in GitHub Desktop.
Save andrwng/c016f1fbaa9380d6cad2152276eaeb81 to your computer and use it in GitHub Desktop.
FROM centos:centos6.6
# yum needs to be patched to run within Docker. See
# https://github.com/CentOS/sig-cloud-instance-images/issues/15 for more
# details.
RUN yum install -y yum-plugin-ovl
RUN yum update -y
RUN yum install -y \
autoconf \
automake \
cyrus-sasl-devel \
cyrus-sasl-gssapi \
cyrus-sasl-plain \
flex \
gcc \
gcc-c++ \
gdb \
git \
java-1.8.0-openjdk-devel \
krb5-server \
krb5-workstation \
libtool \
lsof \
make \
openssl-devel \
patch \
pkgconfig \
redhat-lsb-core \
rsync \
unzip \
vim-common \
wget \
which
ENV DTLS_RPM rhscl-devtoolset-3-epel-6-x86_64-1-2.noarch.rpm
ENV DTLS_RPM_URL https://www.softwarecollections.org/repos/rhscl/devtoolset-3/epel-6-x86_64/noarch/${DTLS_RPM}
RUN wget $DTLS_RPM_URL -O $DTLS_RPM
RUN yum install -y scl-utils $DTLS_RPM
RUN yum install -y devtoolset-3-toolchain
# Install ccache
RUN wget http://dl.fedoraproject.org/pub/epel/6/x86_64/Packages/c/ccache-3.1.6-2.el6.x86_64.rpm && \
rpm -Uvh ccache-3.1.6-2.el6.x86_64.rpm && \
rm ccache-3.1.6-2.el6.x86_64.rpm
# Install ninja
RUN wget https://github.com/ninja-build/ninja/releases/download/v1.8.2/ninja-linux.zip && \
unzip ninja-linux.zip && \
rm ninja-linux.zip && \
mv ninja /usr/local/bin
RUN git clone http://github.mtv.cloudera.com/CDH/kudu.git
WORKDIR kudu
RUN build-support/enable_devtoolset.sh thirdparty/build-if-necessary.sh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment