feat: add dockerfile and plugins
This commit is contained in:
+22
@@ -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
|
||||||
@@ -0,0 +1,2 @@
|
|||||||
|
dark-theme:latest
|
||||||
|
oidc-provider:latest
|
||||||
Reference in New Issue
Block a user