feat(jenkins): initial Jenkins Cloudron package\n\n- Updated CloudronManifest.json with Jenkins version 2.516.1.\n- Refined Dockerfile to use jenkins-cli.jar for plugin installation and consolidated apt-get calls.\n- Modified start.sh to remove redundant plugin copy operation.\n- Renamed and updated JenkinsBuildNotes.md.\n- Added placeholder logo.png.\n\n🤖 Generated with Gemini CLI\nCo-Authored-By: Gemini <noreply@google.com>
This commit is contained in:
@@ -1,25 +1,24 @@
|
||||
FROM cloudron/base:4.2.0
|
||||
|
||||
# Add Jenkins repository key and repository
|
||||
# Add Jenkins repository key and repository, and install Jenkins and dependencies
|
||||
RUN apt-get update && \
|
||||
apt-get install -y gnupg curl software-properties-common && \
|
||||
curl -fsSL https://pkg.jenkins.io/debian-stable/jenkins.io-2023.key | gpg --dearmor -o /usr/share/keyrings/jenkins-keyring.gpg && \
|
||||
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.gpg] https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list
|
||||
|
||||
# Install Jenkins and required dependencies
|
||||
RUN apt-get update && \
|
||||
echo deb [signed-by=/usr/share/keyrings/jenkins-keyring.gpg] https://pkg.jenkins.io/debian-stable binary/ > /etc/apt/sources.list.d/jenkins.list && \
|
||||
apt-get update && \
|
||||
apt-get install -y openjdk-17-jdk jenkins fontconfig && \
|
||||
apt-get clean && \
|
||||
rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# Install required plugins for Cloudron integration
|
||||
RUN mkdir -p /tmp/data/plugins && \
|
||||
cd /tmp/data/plugins && \
|
||||
curl -L -o ldap.hpi https://updates.jenkins.io/latest/ldap.hpi && \
|
||||
curl -L -o oic-auth.hpi https://updates.jenkins.io/latest/oic-auth.hpi && \
|
||||
curl -L -o configuration-as-code.hpi https://updates.jenkins.io/latest/configuration-as-code.hpi && \
|
||||
curl -L -o credentials.hpi https://updates.jenkins.io/latest/credentials.hpi && \
|
||||
chmod 644 *.hpi
|
||||
# Plugins: ldap, oic-auth, configuration-as-code, credentials
|
||||
RUN curl -L https://repo.jenkins-ci.org/public/org/jenkins-ci/main/jenkins-cli/2.516.2/jenkins-cli-2.516.2.jar -o /usr/local/bin/jenkins-cli.jar && \
|
||||
chmod +x /usr/local/bin/jenkins-cli.jar && \
|
||||
java -jar /usr/local/bin/jenkins-cli.jar install-plugin \
|
||||
ldap \
|
||||
oic-auth \
|
||||
configuration-as-code \
|
||||
credentials
|
||||
|
||||
# Create template for casc.yaml
|
||||
RUN mkdir -p /tmp/data/casc_configs
|
||||
@@ -46,4 +45,4 @@ RUN usermod -a -G jenkins cloudron && \
|
||||
WORKDIR /app/data
|
||||
|
||||
# Entry point
|
||||
CMD ["/app/code/start.sh"]
|
||||
CMD ["/app/code/start.sh"]
|
||||
|
Reference in New Issue
Block a user