Advertisement
opexxx

thugDockerContainer

Jul 8th, 2014
331
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 2.05 KB | None | 0 0
  1. # This is a Dockerfile for creating a Thug https://github.com/buffer/thug Container from the latest
  2. # Ubuntu base image. This is known bo be working on Ubuntu 14.04. It should work on any later version
  3. # This is a full installation of Thug including all optional packages used for distributed operation
  4. FROM ubuntu:latest
  5. MAINTAINER ali@ikinci.info
  6. ENV LC_ALL C
  7. ENV DEBIAN_FRONTEND noninteractive
  8. RUN apt-get update && apt-get -y dist-upgrade
  9. # Install packets for normal usage
  10. RUN apt-get -y install --no-install-recommends graphviz librabbitmq1 nano python-chardet python-cssutils python-html5lib python-httplib2 libemu2 python-lxm\
  11. l python-magic python-pika python-pip python-pydot python-pymongo python-pyparsing python-requests python-yara python-zope.interface vim
  12. # Install packets needed for building thug
  13. RUN apt-get -y install --no-install-recommends build-essential curl git gyp libboost-python-dev libboost-thread-dev libboost-system-dev python-dev subversi\
  14. on libemu-dev
  15. RUN pip install -q jsbeautifier rarfile beautifulsoup4 pefile
  16. RUN svn checkout http://pyv8.googlecode.com/svn/trunk/ /usr/local/src/pyv8
  17. RUN curl  -s https://raw.githubusercontent.com/buffer/thug/master/patches/PyV8-patch1.diff -o /usr/local/src/PyV8-patch1.diff
  18. RUN patch -d /usr/local/src/ -p0 < /usr/local/src/PyV8-patch1.diff
  19. RUN cd /usr/local/src/pyv8/ && python setup.py build
  20. RUN cd /usr/local/src/pyv8/ && python setup.py install
  21. RUN git clone https://github.com/buffer/pylibemu.git /usr/local/src/pylibemu
  22. RUN cd /usr/local/src/pylibemu && python setup.py build
  23. RUN cd /usr/local/src/pylibemu && python setup.py install
  24. RUN git clone https://github.com/buffer/thug.git /thug
  25. # Remove packets needed building thug and cleanup
  26. RUN apt-get -y remove build-essential curl subversion git gyp python-dev
  27. RUN apt-get -y autoremove
  28. RUN apt-get clean && apt-get autoclean
  29. RUN dpkg -l |grep ^rc |awk '{print $2}' |xargs dpkg --purge
  30. RUN rm -rf /usr/local/src/pylibemu /usr/local/src/pyv8/ /usr/local/src/PyV8-patch1.diff
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement