Skip to content

Commit

Permalink
Adding the code for Scabbard.
Browse files Browse the repository at this point in the history
  • Loading branch information
George authored and George committed Oct 20, 2021
1 parent e4f1b24 commit efaef7d
Show file tree
Hide file tree
Showing 216 changed files with 41,221 additions and 4,962 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
.idea/*
build/*
cmake-build-*/*
cmake-build-debug/*
scripts/*.txt
Expand All @@ -16,3 +17,5 @@ scripts/benchmarks/*.dat
*eps
resources/datasets/google-cluster-data/saber-debs-demo.data
resources/datasets/lrb/datafile3hours.dat
.DS_Store
/docs/.DS_Store
89 changes: 86 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
FROM ubuntu:bionic

ENV TZ=Etc/UTC
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

RUN apt update && \
apt upgrade -y && \
apt install -y \
Expand All @@ -10,7 +13,8 @@ RUN apt update && \
build-essential \
ccache \
flex \
g++ \
gcc \
g++ \
git \
libboost-all-dev \
libbz2-dev \
Expand All @@ -33,7 +37,12 @@ RUN apt update && \
pkg-config \
python-dev \
zlib1g-dev \
wget
wget \
libaio-dev \
libibverbs-dev \
bpfcc-tools \
sysstat \
fio

RUN cd && \
apt remove --purge --auto-remove cmake && \
Expand Down Expand Up @@ -88,7 +97,81 @@ ENV LIBRARY_PATH=$LLVM_HOME/lib:$LIBRARY_PATH
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$LIBRARY_PATH
ENV PATH=/usr/lib/ccache:$PATH

RUN cd && \
apt install -y \
git \
gcc \
g++ \
autoconf \
automake \
asciidoc \
asciidoctor \
bash-completion \
xmlto \
libtool \
pkg-config \
libglib2.0-0 \
libglib2.0-dev \
libfabric1 \
libfabric-dev \
doxygen \
graphviz \
pandoc \
libncurses5 \
libkmod2 \
libkmod-dev \
libudev-dev \
uuid-dev \
libjson-c-dev \
libkeyutils-dev \
systemd \
libsystemd-dev

RUN cd && \
git clone https://github.com/pmem/ndctl && \
cd ndctl && \
git checkout c7767834871f7ce50a2abe1da946e9e16fb08eda && \
./autogen.sh && \
./configure CFLAGS='-g -O2' --prefix=/usr/local --sysconfdir=/etc --libdir=/usr/local/lib64 && \
make -j$(nproc) && \
make install

RUN cd && \
apt install -y \
autoconf \
automake \
pkg-config \
libglib2.0-dev \
libfabric-dev \
pandoc \
libncurses5-dev

RUN cd && \
git clone https://github.com/pmem/pmdk && \
cd pmdk && \
git checkout 3bc5b0da5a7a5d5752ad2cb4f5f9bf0edfd47d67 && \
export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH} && \
make -j$(nproc) && \
PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH} make install && \
echo /usr/local/lib >> /etc/ld.so.conf && \
echo /usr/local/lib64 >> /etc/ld.so.conf && \
ldconfig
# echo 'export PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}' >> $HOME/.profile && \
# source $HOME/.profile

ENV PKG_CONFIG_PATH=/usr/local/lib64/pkgconfig:/usr/local/lib/pkgconfig:${PKG_CONFIG_PATH}

RUN cd && \
git clone https://github.com/pmem/libpmemobj-cpp.git && \
cd libpmemobj-cpp && \
git checkout 9f784bba07b94cd36c9eebeaa88c5df4f05045b2 && \
mkdir build && \
cd build && \
cmake -DTESTS_USE_VALGRIND=OFF .. && \
make -j$(nproc) && \
make install

RUN cd && \
git clone https://github.com/lsds/LightSaber.git && \
cd LightSaber && \
./scripts/build.sh
./scripts/build.sh
Loading

0 comments on commit efaef7d

Please sign in to comment.