-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.el8
68 lines (61 loc) · 1.81 KB
/
Dockerfile.el8
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# PONZU
# build lime kernel module and volatilty profiles from lime and dwarfDump source.
# change the FROM line to a different OS release if required
# also change the COPY centos-el6-vault.repo line as necessary
#
# [build ponzu]
# docker build -t ponzu:el8 .
#
# [run ponzu]
# docker run --rm -v /YourPath/rpms/:/rpms/ ponzu:el8 3.10.0-123.1.2
#
# I keep the rpms out of the ponzu directory to keep the build process compact
# [optional]
# mkdir /YourPath/rpms
# cp kernel-${KVER}*.rpm /YourPath/rpms
# cp kernel-devel-${KVER}*.rpm /YourPath/rpms
# cp kernel-firmware-${KVER}*.rpm /YourPath/rpms
#
# If you're doing el5, el6, el7, or el8, change the release value below and change the OSVER in build-volatility.sh
FROM centos:centos8
LABEL maintainer Dannen Harris version 3.0
RUN mkdir /lime-module /rpms
# x86_64 only
COPY centos-el8-vault.repo /etc/yum.repos.d
RUN echo "exclude=*.i386 *.i586 *.i686" >> /etc/yum.conf
RUN dnf --assumeyes --disablerepo '*' --enablerepo=extras swap centos-linux-repos centos-stream-repos \
&& dnf --assumeyes distro-sync \
&& dnf --assumeyes -q -e 0 install autoconf \
automake \
cmake \
gcc \
gcc-c++ \
make \
patch \
patchutils \
dracut \
dracut-kernel \
elfutils \
elfutils-devel \
elfutils-libelf \
elfutils-libelf-devel \
git \
kbd \
kbd-misc \
grubby \
zip \
zlib \
&& dnf clean all --enablerepo=\*
WORKDIR /
RUN git clone https://github.com/davea42/libdwarf-code.git \
&& mkdir /build \
&& cd /build \
&& cmake ../libdwarf-code \
&& make > /tmp/log-file 2>&1 \
&& cp -p /build/src/bin/dwarfdump/dwarfdump /bin/dwarfdump \
&& cd / \
&& rm -rf /build /libdwarf-code
RUN git clone https://github.com/504ensicsLabs/LiME.git
RUN git clone https://github.com/volatilityfoundation/volatility.git
COPY build-volatility.el8.sh /build-volatility.sh
ENTRYPOINT ["/build-volatility.sh"]