27 lines
800 B
Docker
27 lines
800 B
Docker
FROM jenkins/jenkins:2.541.3-lts-jdk21
|
|
|
|
USER root
|
|
RUN apt-get update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
ca-certificates \
|
|
curl \
|
|
git \
|
|
docker.io \
|
|
python3 \
|
|
python3-pip \
|
|
unzip \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
ARG ALLURE_VERSION=2.29.0
|
|
RUN curl -fsSL -o /tmp/allure.zip \
|
|
"https://github.com/allure-framework/allure2/releases/download/${ALLURE_VERSION}/allure-${ALLURE_VERSION}.zip" \
|
|
&& unzip -q /tmp/allure.zip -d /opt \
|
|
&& ln -s "/opt/allure-${ALLURE_VERSION}" /opt/allure \
|
|
&& ln -s /opt/allure/bin/allure /usr/local/bin/allure \
|
|
&& rm -f /tmp/allure.zip
|
|
|
|
COPY plugins.txt /usr/share/jenkins/ref/plugins.txt
|
|
RUN jenkins-plugin-cli --plugin-file /usr/share/jenkins/ref/plugins.txt
|
|
|
|
USER jenkins
|