Skip to content

Commit

Permalink
Merge pull request lmco#68 from wzod/master
Browse files Browse the repository at this point in the history
Update Dockerfile
  • Loading branch information
marnao authored May 16, 2017
2 parents 681d846 + 610dcee commit 8f19c2c
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions Docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ RUN apt-get update && \
libfuzzy-dev \
libimage-exiftool-perl \
liblzma5 \
libssl-dev \
libtool \
libzmq3 \
make \
Expand All @@ -52,29 +53,34 @@ RUN apt-get update && \
python-gevent \
python-ipy \
python-m2crypto \
python-msgpack \
python-pexpect \
python-pip \
python-progressbar \
python-pyclamd \
python-zmq \
unrar \
unzip \
wget
wget && \

# Update setuptools
pip install --upgrade setuptools

# Retrieve current version of Yara via wget, verify known good hash and install Yara
RUN cd /tmp && \
wget -O yarav3.4.0.tar.gz "https://github.com/plusvic/yara/archive/v3.4.0.tar.gz" && \
echo 528571ff721364229f34f6d1ff0eedc3cd5a2a75bb94727dc6578c6efe3d618b\ \ yarav3.4.0.tar.gz > sha256sum-yara && \
wget -O yara.v3.5.0.tar.gz "https://github.com/VirusTotal/yara/archive/v3.5.0.tar.gz" && \
echo 4bc72ee755db85747f7e856afb0e817b788a280ab5e73dee42f159171a9b5299\ \ yara.v3.5.0.tar.gz > sha256sum-yara && \
sha256sum -c sha256sum-yara && \

tar vxzf yarav3.4.0.tar.gz && \
cd yara-3.4.0 && \
tar vxzf yara.v3.5.0.tar.gz && \
cd yara-3.5.0/ && \
./bootstrap.sh && \
./configure && \
make && \
make install && \
cd /tmp && \

# Retrieve yara-python from the project's site using recursive option and install yara-python
git clone --recursive https://github.com/VirusTotal/yara-python && \
cd yara-python/ && \
python setup.py build && \
python setup.py install && \
Expand All @@ -92,12 +98,13 @@ RUN cd /tmp && \
cd /tmp && \

# Retrieve current version of pefile via wget, verify known good hash and install pefile
wget "http://pefile.googlecode.com/files/pefile-1.2.10-139.tar.gz" && \
echo 8b7c5d853c97a923d0f6e128d0ae76b962aa75fd608d552f5a32e46276908a16\ \ pefile-1.2.10-139.tar.gz > sha256sum-pefile && \
wget -O pefile-1.2.10-139.tar.gz "https://github.com/erocarrera/pefile/archive/pefile-1.2.10-139.tar.gz" && \
echo 3297cb72e6a51befefc3d9b27ec7690b743ee826538629ecf68f4eee64f331ab\ \ pefile-1.2.10-139.tar.gz > sha256sum-pefile && \
sha256sum -c sha256sum-pefile && \

tar vxzf pefile-1.2.10-139.tar.gz && \
cd pefile-1.2.10-139 && \
cd pefile-pefile-1.2.10-139/ && \
sed -i s/1\.2\.10.*/1\.2\.10\.139\'/ pefile.py && \
python setup.py build && \
python setup.py install && \
cd /tmp && \
Expand All @@ -112,8 +119,10 @@ RUN cd /tmp && \
# Install additional dependencies
RUN cd /tmp && \
pip install fluent-logger \
future \
interruptingcow \
javatools \
msgpack-python \
olefile \
pylzma \
py-unrar2 \
Expand Down

0 comments on commit 8f19c2c

Please sign in to comment.