Option to run dfDewey in a Docker container
This commit is contained in:
parent
b37a651b29
commit
fa9175a8f7
3 changed files with 17 additions and 17 deletions
|
@ -16,6 +16,19 @@
|
|||
FROM ubuntu:18.04
|
||||
|
||||
# Update the base image
|
||||
RUN apt-get update && apt-get -y upgrade && apt-get -y dist-upgrade
|
||||
RUN apt update
|
||||
RUN apt -y install apt-utils && apt -y upgrade && apt -y dist-upgrade
|
||||
|
||||
# Setup install environment and DFDewey dependencies
|
||||
RUN apt install -y build-essential git autoconf automake flex gcc g++ libewf-dev libssl-dev zlib1g-dev libxml2-dev dpkg-dev openssl patch wget bison
|
||||
# TODO(dfjxs): Package and install from GIFT PPA
|
||||
RUN git clone --recursive https://github.com/simsong/bulk_extractor
|
||||
RUN cd bulk_extractor && autoheader -f && aclocal -I m4 && autoconf -f && automake --add-missing --copy && ./configure && make -j $(nproc) && make install
|
||||
RUN rm -Rf ./bulk_extractor
|
||||
|
||||
# Setup dfDewey
|
||||
RUN git clone https://github.com/google/dfdewey.git
|
||||
RUN apt install -y python3 python3-pip python3-dev
|
||||
RUN pip3 install -r dfdewey/requirements.txt
|
||||
COPY dfdewey /usr/bin/
|
||||
RUN chmod a+x /usr/bin/dfdewey
|
||||
|
|
3
docker/dfdewey
Normal file
3
docker/dfdewey
Normal file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
python3 /dfdewey/dfdewey/dfdewey.py "$@"
|
|
@ -13,22 +13,6 @@
|
|||
# limitations under the License.
|
||||
version: '2'
|
||||
services:
|
||||
# dfdewey:
|
||||
# build:
|
||||
# context: ../
|
||||
# dockerfile: ./docker/Dockerfile
|
||||
# links:
|
||||
# - elasticsearch
|
||||
# - postgres
|
||||
# environment:
|
||||
# - POSTGRES_USER=dfdewey
|
||||
# - POSTGRES_PASSWORD=password
|
||||
# - POSTGRES_ADDRESS=postgres
|
||||
# - POSTGRES_PORT=5432
|
||||
# - ELASTIC_ADDRESS=elasticsearch
|
||||
# - ELASTIC_PORT=9200
|
||||
# restart: always
|
||||
|
||||
elasticsearch:
|
||||
environment:
|
||||
- discovery.type=single-node
|
||||
|
|
Loading…
Reference in a new issue