-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
45 lines (34 loc) · 1.68 KB
/
Dockerfile
File metadata and controls
45 lines (34 loc) · 1.68 KB
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
FROM maven:3.9.14-eclipse-temurin-25
LABEL org.opencontainers.image.description="This image is used in CI/CD to build projects with maven"
LABEL org.opencontainers.image.licenses="Apache-2.0"
LABEL maintainer="digitaal-techniek@vpro.nl,michiel@mmprogrami.nl"
ENV YQ_VERSION=v4.50.1
COPY entrypoint.sh /root/entrypoint.sh
COPY after_maven.sh /root/after_maven.sh
COPY setup_maven.sh /root/setup_maven.sh
COPY maven_release.sh /root/maven_release.sh
COPY maven_branch.sh /root/maven_branch.sh
COPY maven.sh /root/maven.sh
COPY count.xslt /root/count.xslt
COPY failures_and_errors.xslt /root/failures_and_errors.xslt
COPY jacoco.xslt /root/jacoco.xslt
ARG DEBIAN_FRONTEND=noninteractive
RUN apt-get -y update && apt-get -y upgrade && apt-get install -y wget openssh-client git rsync file xsltproc && \
apt-get clean && rm -rf /var/lib/apt/lists/* && \
ARCH=`dpkg --print-architecture` && \
YQ_BINARY=yq_linux_${ARCH} && \
wget https://github.com/mikefarah/yq/releases/download/${YQ_VERSION}/${YQ_BINARY}.tar.gz -O - | tar xz && mv ${YQ_BINARY} /usr/bin/yq && \
curl -fsSL https://downloads-openshift-console.apps.cluster.chp5-prod.npocloud.nl/${ARCH}/linux/oc.tar --output oc.tar && \
tar xvf oc.tar && \
mv oc /usr/local/bin && \
chmod +x /usr/local/bin/oc && \
rm -f oc.tar && \
mkdir -p /root/.ssh && \
(ssh-keyscan gitlab.com >/root/.ssh/known_hosts ; echo "gitlab.com: $?") && \
ssh-keyscan github.com >>/root/.ssh/known_hosts && \
chgrp -R 0 /root/.ssh && \
chmod -R g=u /root/.ssh && \
chmod +x /root/entrypoint.sh && \
(echo -n "vpro/maven build time=" ; date -Iseconds) >> /DOCKER.BUILD
WORKDIR /root
ENTRYPOINT ["/root/entrypoint.sh"]