Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM debian:buster-slim
LABEL Description="Debian-based environment suitable to build GekkoFS and its dependencies"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
git \
curl \
ca-certificates \
libtool \
pkg-config \
make \
automake \
gcc \
g++ \
# AGIOS dependencies
libconfig-dev \
# Mercury dependencies
libltdl-dev \
lbzip2 \
# RocksDB dependencies
libsnappy-dev \
liblz4-dev \
libzstd-dev \
libbz2-dev \
zlib1g-dev \
# syscall_intercept dependencies
libcapstone-dev \
# GekkoFS dependencies
libboost-filesystem-dev \
libboost-program-options-dev \
uuid-dev && \
# install cmake 3.14 since it's needed for some dependencies
curl -OL https://github.com/Kitware/CMake/releases/download/v3.14.5/cmake-3.14.5-Linux-x86_64.sh && \
chmod u+x ./cmake-3.14.5-Linux-x86_64.sh && \
./cmake-3.14.5-Linux-x86_64.sh --skip-license --prefix=/usr && \
# Clean apt cache to reduce image layer size
rm -rf /var/lib/apt/lists/* && \
# Clean apt caches of packages
apt-get clean && apt-get autoclean && \
rm ./cmake-3.14.5-Linux-x86_64.sh