-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile.el6
70 lines (63 loc) · 1.93 KB
/
Dockerfile.el6
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
69
70
# 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:el7 .
#
# [run ponzu]
# docker run --rm -v /YourPath/rpms/:/rpms/ ponzu:el7 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 or el7, change the release value below and change the OSVER in build-volatility.sh
FROM centos:centos6
LABEL maintainer Dannen Harris version 3.0
RUN mkdir /lime-module /rpms
# x86_64 only
RUN rm -f /etc/yum.repos.d/*repo
COPY centos-el6-vault.repo /etc/yum.repos.d
RUN echo "exclude=*.i386 *.i586 *.i686" >> /etc/yum.conf
RUN yum -y -q -e 0 install autoconf \
automake \
gcc \
gcc-c++ \
make \
patch \
patchutils \
dracut \
dracut-kernel \
elfutils \
elfutils-devel \
elfutils-libelf \
elfutils-libelf-devel \
git \
grubby \
kbd \
kbd-misc \
libtool \
zip \
zlib \
&& yum -y clean all
WORKDIR /
# pull remote legacy version of libdwarf centos6 EoL 11-30-2020
# https://www.prevanders.net/libdwarf-20200114.tar.gz
# 20201201 release+ does not built properly on el6
RUN curl https://www.prevanders.net/libdwarf-20200114.tar.gz --output libdwarf-20200114.tar.gz
RUN tar -xvzf libdwarf-20200114.tar.gz \
&& cd libdwarf-20200114/ \
&& ./configure \
&& make > /tmp/log-file 2>&1 \
&& cp -p /libdwarf-20200114/dwarfdump/dwarfdump /bin/dwarfdump \
&& cd / \
&& rm -rf /libdwarf-20200114 /libdwarf-20200114.tar.gz
RUN git clone https://github.com/504ensicsLabs/LiME.git
RUN git clone https://github.com/volatilityfoundation/volatility.git
COPY build-volatility.el6.sh /build-volatility.sh
ENTRYPOINT ["/build-volatility.sh"]