forked from luwrain/parent
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updating files for jenkins image and job generation
- Loading branch information
Showing
2 changed files
with
37 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,36 @@ | ||
FROM jenkins/jenkins:latest | ||
USER root | ||
|
||
ARG MAVEN_VERSION=3.8.8 | ||
ARG USER_HOME_DIR="/root" | ||
ARG BASE_URL=https://apache.osuosl.org/maven/maven-3/${MAVEN_VERSION}/binaries | ||
|
||
RUN apt-get update --fix-missing \ | ||
&& apt-get install -y --no-install-recommends openjdk-17-jdk curl git && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV JAVA_HOME /usr/lib/jvm/java-17-openjdk-amd64 | ||
|
||
RUN mkdir -p /usr/share/maven /usr/share/maven/ref \ | ||
&& curl -fsSL -o /tmp/apache-maven.tar.gz ${BASE_URL}/apache-maven-${MAVEN_VERSION}-bin.tar.gz \ | ||
&& tar -xzf /tmp/apache-maven.tar.gz -C /usr/share/maven --strip-components=1 \ | ||
&& rm -f /tmp/apache-maven.tar.gz \ | ||
&& ln -s /usr/share/maven/bin/mvn /usr/bin/mvn | ||
|
||
ENV MAVEN_HOME /usr/share/maven | ||
ENV MAVEN_CONFIG "$USER_HOME_DIR/.m2" | ||
|
||
WORKDIR /data | ||
|
||
WORKDIR /app | ||
|
||
RUN apt-get update --fix-missing \ | ||
&& apt-get install -y --no-install-recommends timidity midicsv sox ant \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
ENV JAVA_OPTS -Djenkins.install.runSetupWizard=false | ||
ENV CASC_JENKINS_CONFIG /var/jenkins_home/casc.yaml | ||
COPY --chown=jenkins:jenkins plugins.txt /usr/share/jenkins/ref/plugins.txt | ||
RUN jenkins-plugin-cli -f /usr/share/jenkins/ref/plugins.txt | ||
COPY casc.yaml /var/jenkins_home/casc.yaml | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters