-
Notifications
You must be signed in to change notification settings - Fork 954
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from HugoKlepsch/docker_rebased
Add Dockerfiles and instructions for using docker containers
- Loading branch information
Showing
3 changed files
with
150 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM ubuntu:bionic | ||
|
||
RUN useradd -m retdec | ||
WORKDIR /home/retdec | ||
ENV HOME /home/retdec | ||
|
||
RUN apt-get -y update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
git \ | ||
perl \ | ||
python3 \ | ||
bash \ | ||
coreutils \ | ||
wget \ | ||
bc \ | ||
doxygen \ | ||
graphviz \ | ||
upx \ | ||
flex \ | ||
bison \ | ||
zlib1g-dev \ | ||
libtinfo-dev \ | ||
autoconf \ | ||
automake \ | ||
pkg-config \ | ||
m4 \ | ||
libtool | ||
|
||
USER retdec | ||
RUN git clone --recursive https://github.com/avast-tl/retdec && \ | ||
cd retdec && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake .. -DCMAKE_INSTALL_PREFIX=/home/retdec/install && \ | ||
make -j$(nproc) && \ | ||
make install | ||
|
||
ENV PATH /home/retdec/install/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
FROM ubuntu:bionic | ||
|
||
RUN useradd -m retdec | ||
WORKDIR /home/retdec | ||
ENV HOME /home/retdec | ||
|
||
RUN apt-get -y update && \ | ||
DEBIAN_FRONTEND=noninteractive apt-get install -y \ | ||
build-essential \ | ||
cmake \ | ||
git \ | ||
perl \ | ||
python3 \ | ||
bash \ | ||
coreutils \ | ||
wget \ | ||
bc \ | ||
doxygen \ | ||
graphviz \ | ||
upx \ | ||
flex \ | ||
bison \ | ||
zlib1g-dev \ | ||
libtinfo-dev \ | ||
autoconf \ | ||
automake \ | ||
pkg-config \ | ||
m4 \ | ||
libtool | ||
|
||
# New versions of docker (>v17.09.0-ce) support the --chown flag given to COPY | ||
# Once this version is more wide spread, consider updating this repository's Dockerfiles | ||
# to use the new directive. | ||
COPY . retdec | ||
RUN chown -R retdec:retdec retdec | ||
|
||
USER retdec | ||
RUN cd retdec && \ | ||
mkdir build && \ | ||
cd build && \ | ||
cmake .. -DCMAKE_INSTALL_PREFIX=/home/retdec/install && \ | ||
make -j$(nproc) && \ | ||
make install | ||
|
||
ENV PATH /home/retdec/install/bin:$PATH |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters