Skip to content

Commit

Permalink
Merge pull request #124 from intelowlproject/develop
Browse files Browse the repository at this point in the history
- Fix service name in `docker-compose.thug.yml`.
- Slim Thug's docker image by a few MBs
  • Loading branch information
eshaan7 committed Jul 16, 2020
2 parents cc4c764 + 3c20f8f commit 5c7960d
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 33 deletions.
2 changes: 1 addition & 1 deletion integrations/docker-compose.thug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ version: '3'
# All additional integrations should be added following this format only.

services:
peframe:
thug:
image: intelowlproject/intelowl_thug
container_name: intelowl_thug
restart: unless-stopped
Expand Down
43 changes: 11 additions & 32 deletions integrations/thug/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,42 +3,21 @@ FROM ubuntu:18.04
# Step 1: Build and install thug

USER root
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
sudo \
python \
python3 \
python3-dev \
python3-setuptools \
python3-wheel \
libboost-dev \
libboost-python-dev \
libboost-system-dev \
python3-pip \
libxml2-dev \
libxslt-dev \
tesseract-ocr \
git \
libtool \
graphviz-dev \
automake \
libffi-dev \
graphviz \
libfuzzy-dev \
libfuzzy2 \
libjpeg-dev \
libffi-dev \
pkg-config \
autoconf && \
rm -rf /var/lib/apt/lists/*
RUN apt-get update \
&& apt-get install -y --no-install-recommends \
build-essential sudo python python3 python3-dev python3-setuptools \
python3-wheel python3-pip libboost-dev libboost-python-dev libboost-system-dev \
libxml2-dev libxslt-dev tesseract-ocr git libtool graphviz-dev \
automake libffi-dev graphviz libfuzzy-dev libfuzzy2 libjpeg-dev libffi-dev \
pkg-config autoconf \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

RUN pip3 install --upgrade pip
RUN pip3 install --upgrade setuptools
RUN pip3 install --upgrade pytesseract
RUN pip3 install --upgrade setuptools pytesseract
WORKDIR /home/thug

RUN pip3 install https://github.com/area1/stpyv8/releases/download/v8.3.110.9/stpyv8-8.3.110.9-cp36-cp36m-linux_x86_64.whl
RUN pip3 --no-cache-dir install https://github.com/area1/stpyv8/releases/download/v8.3.110.9/stpyv8-8.3.110.9-cp36-cp36m-linux_x86_64.whl

RUN git clone https://github.com/buffer/libemu.git && \
cd libemu && \
Expand Down

0 comments on commit 5c7960d

Please sign in to comment.