-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.debian
49 lines (43 loc) · 1.25 KB
/
Dockerfile.debian
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
42
43
44
45
46
47
48
49
# PONZU
# build lime kernel module and volatilty profiles from lime and dwarfDump source.
# change the FROM line to a different OS release if required.
#
# [build ponzu]
# docker build -t ponzu:debian .
#
# [run ponzu]
# docker run --rm -v /YourPath/debs/:/debs/ ponzu:debian 4.9.0-3
#
# I keep the deb out of the ponzu directory to keep the build process compact
# [optional]
# mkdir /YourPath/debs
# cp linux-image-${KVER}*.deb /YourPath/debs
# cp linux-headers-${KVER}*.deb /YourPath/debs
FROM debian
LABEL maintainer Dannen Harris version 3.0
RUN mkdir /lime-module /debs
# x86_64 only
RUN apt update \
&& apt install -y \
autoconf \
build-essential \
git \
libelf-dev \
libtool \
pkg-config \
zip \
zlib1g \
&& apt clean all
WORKDIR /
RUN git clone https://github.com/davea42/libdwarf-code.git \
&& cd /libdwarf-code \
&& /bin/bash autogen.sh \
&& ./configure --disable-dependency-tracking \
&& make > /tmp/log-file 2>&1 \
&& cp -p /libdwarf-code/src/bin/dwarfdump/dwarfdump /bin/dwarfdump \
&& cd / \
&& rm -rf /libdwarf-code
RUN git clone https://github.com/504ensicsLabs/LiME.git
RUN git clone https://github.com/volatilityfoundation/volatility.git
COPY build-volatility.deb.sh /build-volatility.sh
ENTRYPOINT ["/build-volatility.sh"]