-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
36 lines (27 loc) · 1.34 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
FROM amazoncorretto:8-alpine-full
# install basics
RUN apk update && apk upgrade && \
apk add --no-cache bash git vim
# Daikon plugin has been published to gradle plugin portal
# so there is no need for the following two lines
# RUN cd ~ ; git clone https://github.com/SRI-CSL/daikon-gradle-plugin.git dgp
# RUN cd ~/dgp ; ./gradlew clean; ./gradlew build; ./gradlew publishToMavenLocal
RUN cd ~ ; git clone https://github.com/SRI-CSL/randoop-gradle-plugin.git rgp
RUN cd ~/rgp ; ./gradlew clean; ./gradlew build; ./gradlew publishToMavenLocal
RUN cd ~ ; git clone https://github.com/SRI-CSL/daikon-gradle-plugin.git dgp
RUN cd ~/dgp ; ./gradlew clean; ./gradlew build; ./gradlew publishToMavenLocal
# descert-example's libs dir contains Daikon 5.8.6 (latest release)
COPY . /usr/local/src/descert-example
# Gets a new version of Daikon
# RUN (cd /usr/local/src/descert-example/libs && ls -al daikon.jar && rm -f daikon.jar && wget https://homes.cs.washington.edu/~mernst/tmp159/daikon.jar && ls -al daikon.jar)
WORKDIR /usr/local/src/descert-example
RUN ./gradlew clean
RUN ./gradlew build
# This will produce a file called randoop-log.txt
# containing information about generated tests
RUN ./gradlew randoopEvidence
# clean up after yourself
RUN rm -rf /usr/local/src/descert-example/com
# Runs Daikon
RUN ./gradlew runDaikon
RUN ./gradlew daikonEvidence