Skip to content

Instantly share code, notes, and snippets.

@theanalyst
Created October 14, 2014 12:57
Show Gist options
  • Select an option

  • Save theanalyst/6d99a2ec60260013589b to your computer and use it in GitHub Desktop.

Select an option

Save theanalyst/6d99a2ec60260013589b to your computer and use it in GitHub Desktop.
ceph make check dockerfile
FROM ubuntu:14.04
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y \
autoconf \
automake \
autotools-dev \
ccache \
libbz2-dev \
debhelper \
default-jdk \
git \
gdb \
gdisk \
javahelper \
junit4 \
kpartx \
libaio-dev \
libatomic-ops-dev \
libbabeltrace-ctf-dev \
libbabeltrace-dev \
libblkid-dev \
libboost-dev \
libboost-program-options-dev \
libboost-system-dev \
libboost-thread-dev \
libcurl4-gnutls-dev \
libedit-dev \
libexpat1-dev \
libfcgi-dev \
libfuse-dev \
libgoogle-perftools-dev \
libkeyutils-dev \
libleveldb-dev \
libnss3-dev \
libsnappy-dev \
liblttng-ust-dev \
libtool \
libudev-dev \
libxml2-dev \
pkg-config \
python \
python-argparse \
python-nose \
python-virtualenv \
uuid-dev \
uuid-runtime \
xfslibs-dev \
yasm \
valgrind
ENTRYPOINT ["make"]
CMD ["check"]
# add .dockerignore with .git in the src repo to speedup
ONBUILD ADD . /src/ceph
ONBUILD WORKDIR /src/ceph
ONBUILD RUN ./autogen.sh && \
./configure --disable-static --with-debug CC='ccache gcc' CXX='ccache g++' CFLAGS="-Wall -g" CXXFLAGS="-Wall -g" &&\
make -j4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment