feat: add dockerfile and plugins

This commit is contained in:
2026-05-08 01:37:23 +01:00
commit cb2bf84544
2 changed files with 24 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
FROM jenkins/jenkins:lts-jdk21
ENV JAVA_OPTS=-'Djenkins.install.runSetupWizard=false -Djava.awt.headless=true'
ENV JENKINS_CI_YAML='/opt/ci.yaml'
ENV JENKINS_PLUGIN_DIRECTORY='/usr/share/jenkins/ref/plugins'
ENV JENKINS_PLUGIN_TXT_LOCATION='/usr/share/jenkins'
ENV OUTPUT_DIR='/opt'
# Switch to root user to install required packages
USER root
RUN apt update && apt install jq python3 python3-pip -y --no-install-recommends
RUN pip3 install pyyaml --break-system-packages
RUN apt purge python3 python3-pip -y
COPY ./plugins.txt $JENKINS_PLUGIN_TXT_LOCATION/plugins.txt
# Switch back to user jenkins
USER jenkins
# Run the jenkins-plugin-cli to import the previously exported list of plugins
RUN jenkins-plugin-cli -f $JENKINS_PLUGIN_TXT_LOCATION/plugins.txt
+2
View File
@@ -0,0 +1,2 @@
dark-theme:latest
oidc-provider:latest