Skip to content

Commit

Permalink
Added Dockerfile, .dockerignore, requirements.txt
Browse files Browse the repository at this point in the history
Added Dockerfile and .dockerignore to allow docker image building and
running the tool in a containerized environment containing everything is
needed for the tool to work.

Added requirements.txt to allow easily installing required python
packages.
  • Loading branch information
kristopher-pellizzi committed Sep 14, 2021
1 parent 5612346 commit 06c9961
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Tests
.gitignore
.gitmodules
.dockerignore
Dockerfile
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM ubuntu:focal
ENV TZ=Europe/Rome
ENV DEPS="ninja-build libglib2.0-dev make gcc g++ pkg-config python3 python3-pip git"
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /opt/MemTraceThesis
COPY . .
RUN apt-get -y update && apt-get -y install $DEPS && git checkout development && python3 -m pip install -r requirements.txt && make
ENV PATH="/opt/MemTraceThesis/bin:${PATH}"
WORKDIR /home
CMD ["/bin/bash"]
2 changes: 2 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
psutil
pyelftools

0 comments on commit 06c9961

Please sign in to comment.