-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathDockerfile
executable file
·40 lines (31 loc) · 1.23 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
# If docker was installed using snap on ubuntu please do the following:
# - edit /var/snap/docker/current/config/daemon.json and replace “overlay2” with “vfs” for the storage-driver
# - run sudo snap restart docker
FROM ubuntu:22.04
# install dependencies
RUN apt-get update
RUN apt-get install -y openjdk-17-jdk build-essential cmake maven python3 unzip wget ninja-build
# versions of packages
# Apache Maven 3.6.3
# java 17
# OpenSSL 3.0.2 15 Mar 2022 (Library: OpenSSL 3.0.2 15 Mar 2022)
# python3.8
# make the task directory /task
RUN mkdir /task
# get the sources
RUN mkdir /task/src
COPY task /task/src/task
COPY tlstesttool /task/src/tlstesttool
RUN mkdir /task/src/tlstesttool/build
# change to dir
WORKDIR /task/src/tlstesttool/build
# prepare build and run it parallel with ninja
RUN cmake -G Ninja -DCMAKE_BUILD_TYPE=Release .. && ninja
# switch to task
WORKDIR /task/src/task
# build the task tool
RUN mvn clean install
# make report directory in /task/reports
RUN mkdir /task/reports
# start task as a REST service
ENTRYPOINT ["java","-jar","/task/src/task/com.achelos.task.commandlineinterface/target/com.achelos.task.commandlineinterface-1.0.1-jar-with-dependencies.jar", "-c" , "/task/src/task/docker/GlobalConfig.xml", "-s" ]