-
Notifications
You must be signed in to change notification settings - Fork 344
/
Dockerfile.java11-experiment
45 lines (34 loc) · 1.25 KB
/
Dockerfile.java11-experiment
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
# Container image for building the project
FROM maven:3-openjdk-11 as build
LABEL maintainer="Mitchell Olsthoorn"
# Parameter for skipping the tests in the build process
ARG SKIP_TESTS=true
WORKDIR /build
# Copy files and directories needed for building
COPY pom.xml ./
COPY shaded ./shaded/
COPY standalone_runtime ./standalone_runtime/
COPY plugins ./plugins/
COPY runtime ./runtime/
COPY client ./client/
COPY master ./master/
# Build the project
# The -e flag is to show errors and -B to run in non-interactive aka “batch” mode
# Lastly, make build-artifact naming version-independent
RUN mvn -e -B package -DskipTests=${SKIP_TESTS} && \
mkdir -p /build/bin && \
mv master/target/evosuite-master-*-tests.jar bin/evosuite-tests.jar && \
mv master/target/evosuite-master-*.jar bin/evosuite.jar
# Container image for running EvoSuite
FROM openjdk:11-jdk
WORKDIR /evosuite
VOLUME /evosuite
# Copy the evosuite jar from the builder to this container
COPY --from=build /build/bin /evosuite-bin
# Copy the EvoSuite experiment scripts to this container
COPY scripts /evosuite-scripts
# The executable is evosuite
ENTRYPOINT ["/evosuite-scripts/experiment_runner"]
# The default argument is the help menu
# This can be overidden on the command line
CMD ["-h"]