Skip to content

Commit

Permalink
Added dockerfile for dev dependency builds (log2timeline#2011)
Browse files Browse the repository at this point in the history
  • Loading branch information
Onager committed Jul 6, 2018
1 parent 400165d commit c78c7b6
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions config/docker/plaso-dev-from-ppa.dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
FROM ubuntu:xenial
MAINTAINER Log2Timeline <log2timeline-dev@googlegroups.com>

# Create container with:
# docker build -f plaso-dev-from-ppa.dockerfile
#
# Run log2timeline on artifacts stored in /data/artifacts with:
# docker run -ti -v /data/:/data/ <container_id> log2timeline \
# /data/results/result.plaso /data/artifacts

RUN apt-get -y update
RUN apt-get -y install software-properties-common apt-transport-https
RUN add-apt-repository -y ppa:gift/dev

RUN apt-get -y update
RUN apt-get -y upgrade

RUN apt-get -y install python-plaso plaso-tools locales
RUN apt-get clean && rm -rf /var/cache/apt/* /var/lib/apt/lists/*

# Set terminal to UTF-8 by default
RUN locale-gen en_US.UTF-8
RUN update-locale LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LC_ALL en_US.UTF-8

WORKDIR /usr/local/bin
COPY "plaso-switch.sh" "plaso-switch.sh"
RUN chmod a+x plaso-switch.sh

VOLUME ["/data"]

WORKDIR /home/plaso/

ENTRYPOINT ["/usr/local/bin/plaso-switch.sh"]

0 comments on commit c78c7b6

Please sign in to comment.