-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (17 loc) · 827 Bytes
/
Dockerfile
File metadata and controls
26 lines (17 loc) · 827 Bytes
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
FROM maven:3.9.11-eclipse-temurin-17
LABEL maintainer="Stephan Krusche <krusche@tum.de>"
RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends gnupg && \
rm -rf /var/lib/apt/lists/*
ENV M2_HOME=/usr/share/maven
RUN echo "$LANG -- $LANGUAGE -- $LC_ALL" \
&& curl --version \
&& gpg --version \
&& git --version \
&& mvn --version \
&& java --version \
&& javac --version
ADD artemis-java-template /opt/artemis-java-template
RUN cd /opt/artemis-java-template && pwd && ls -la && mvn clean install test && mvn spotbugs:spotbugs checkstyle:checkstyle pmd:pmd
RUN cd /opt/artemis-java-template && pwd && ls -la && ./gradlew clean test check -x test publishToMavenLocal && ./gradlew --version && ./gradlew --stop
RUN rm -rf /opt/artemis-java-template
CMD ["mvn"]