forked from tls-attacker/TLS-Crawler
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
66 lines (55 loc) · 1.69 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
FROM maven:3.6.1-jdk-11 AS build
ARG GIT_USR
ARG GIT_PWD
ARG MODVAR_BRANCH=master
ARG ASN1_BRANCH=master
ARG X509_BRANCH=master
ARG ATTACKER_BRANCH=master
ARG SCANNER_BRANCH=master
WORKDIR /
# RUN apt-get update
# RUN apt-get install git -y
# ModifiableVariable
RUN git clone https://github.com/tls-attacker/ModifiableVariable.git
WORKDIR /ModifiableVariable
RUN git checkout $MODVAR_BRANCH
RUN mvn clean install -DskipTests=true
WORKDIR /
# ASN1-Tool
RUN git clone https://github.com/tls-attacker/ASN.1-Tool.git
WORKDIR /ASN.1-Tool
# RUN git checkout $ASN1_BRANCH
RUN mvn clean install -DskipTests=true
WORKDIR /
# X509-Attacker
RUN git clone https://github.com/tls-attacker/X509-Attacker.git
WORKDIR /X509-Attacker
# RUN git checkout $X509_BRANCH
RUN mvn clean install -DskipTests=true
WORKDIR /
# TLS-Attacker
RUN git clone https://github.com/tls-attacker/TLS-Attacker.git
WORKDIR /TLS-Attacker
# RUN git checkout $ATTACKER_BRANCH
RUN mvn clean install -DskipTests=true
WORKDIR /
# TLS-Scanner
RUN git clone https://github.com/tls-attacker/TLS-Scanner.git
WORKDIR /TLS-Scanner
RUN git checkout $SCANNER_BRANCH
RUN mvn clean install -DskipTests=true
WORKDIR /
# TLS-Crawler built from this repository
COPY ./ /TLS-Crawler/
RUN ls TLS-Crawler
WORKDIR /TLS-Crawler
RUN git checkout upb-crawler-updated
RUN mvn clean install -DskipTests=true
FROM openjdk:11-jre
COPY --from=build /root/.m2/repository/ /root/.m2/repository/
# dirty copying of dependencies into /lib folder
RUN for i in `find /root/.m2/repository/ -iname '*.jar'`; do cp $i /lib; done
# copy dependencies
COPY --from=build /TLS-Crawler/target/lib /lib
COPY --from=build /TLS-Crawler/target/*.jar TLS-Crawler.jar
ENTRYPOINT ["java", "-jar", "TLS-Crawler.jar"]