From 3c20f8f494d3b990a814f2d4c029b46a08d8fb25 Mon Sep 17 00:00:00 2001 From: Eshaan Bansal Date: Thu, 16 Jul 2020 23:18:00 +0530 Subject: [PATCH] fix service name in docker-compose.thug.yml, slim docker image fix service name in docker-compose.thug.yml --- integrations/docker-compose.thug.yml | 2 +- integrations/thug/Dockerfile | 43 +++++++--------------------- 2 files changed, 12 insertions(+), 33 deletions(-) diff --git a/integrations/docker-compose.thug.yml b/integrations/docker-compose.thug.yml index 12eebb8c60..1f4be4baf4 100644 --- a/integrations/docker-compose.thug.yml +++ b/integrations/docker-compose.thug.yml @@ -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 diff --git a/integrations/thug/Dockerfile b/integrations/thug/Dockerfile index 9e90db7da7..6dd1be944d 100644 --- a/integrations/thug/Dockerfile +++ b/integrations/thug/Dockerfile @@ -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 && \