-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
94 lines (78 loc) · 2.47 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
FROM ubuntu:16.04
# settings
ENV DEBIAN_FRONTEND noninteractive
ENV LANG=C.UTF-8
ENV JAVA_HOME /usr/lib/jvm/java-8-openjdk-amd64
RUN apt update \
# Install runtime dependencies
&& apt install -y openjdk-8-jdk ant unzip wget curl cpanminus git graphviz maven subversion python vim \
# Install Python 3
&& apt install -y python3-pip python3-dev \
&& cd /usr/local/bin \
&& ln -s /usr/bin/python3 python3 \
&& pip3 install --upgrade pip
RUN mkdir -p /apiarty/tools
WORKDIR /apiarty
ENV PATH=/apiarty/apiarty.bin:${PATH}
RUN \
rm /root/.bashrc \
&& ln -s /apiarty/apiarty.bin/bashrc /root/.bashrc
### TOOLS ###
# The following installation instructions can be also found in the GitHub repos of the tools themselves.
# Install Nopol and its dependencies
WORKDIR /CoCoSpoon
RUN git clone https://github.com/SpoonLabs/CoCoSpoon.git /CoCoSpoon \
&& mvn clean install
WORKDIR /nopol
RUN git clone https://github.com/SpoonLabs/nopol.git /nopol \
&& cd nopol \
&& mvn package -DskipTests
# Install Arja and its dependencies
WORKDIR /arja
RUN git clone https://github.com/yyxhdy/arja.git /arja \
&& mkdir bin \
&& javac -cp lib/*: -d bin $(find src -name '*.java') \
&& cd external \
&& rm -r bin \
&& mkdir bin \
&& javac -cp lib/*: -d bin $(find src -name '*.java')
# Install NPEFix and its dependencies
WORKDIR /npefix
RUN git clone https://github.com/Spirals-Team/npefix/ /npefix \
&& mvn install
# Install Astor and its dependencies (1st installation option)
WORKDIR /astor
RUN git clone https://github.com/SpoonLabs/astor.git /astor \
&& mvn package -DskipTests=true
# Install Avatar
WORKDIR /avatar
RUN git clone https://github.com/SerVal-DTF/AVATAR.git \
&& cd /avatar/AVATAR \
&& mkdir D4J \
&& cd D4J \
&& mkdir Defects4JData \
&& git clone https://github.com/rjust/defects4j.git \
&& cd defects4j \
&& cpanm --installdeps . \
&& ./init.sh
# Install TBar
WORKDIR /tbar
RUN git clone https://github.com/SerVal-DTF/TBar.git \
&& cd /tbar/TBar \
&& cd D4J \
&& git clone https://github.com/rjust/defects4j.git \
&& cd defects4j \
&& cpanm --installdeps . \
&& ./init.sh
# Install SimFix
WORKDIR /simfix
RUN git clone https://github.com/xgdsmileboy/SimFix.git \
&& cd /simfix/SimFix/sbfl/ \
&& mkdir projects \
&& git clone https://github.com/rjust/defects4j.git \
&& cd defects4j \
&& cpanm --installdeps . \
&& ./init.sh
WORKDIR /apiarty
COPY . .
CMD ["bash"]