Skip to content

Commit

Permalink
fix: github actions and Jenkinsfile build
Browse files Browse the repository at this point in the history
  • Loading branch information
ssthom committed Nov 13, 2024
1 parent e061862 commit c65c85b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/docker-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ jobs:
build-maven:
runs-on: ubuntu-latest
steps:
- name: Install dependencies
run: |
apt-get update
apt-get install -y git
- uses: actions/checkout@v2
- name: Set up JDK 17
uses: actions/setup-java@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,12 @@ ADD packaging-parent-resources /jenkinsfile-runner/packaging-parent-resources
ADD packaging-parent-pom /jenkinsfile-runner/packaging-parent-pom
ADD packaging-slim-parent-pom /jenkinsfile-runner/packaging-slim-parent-pom
ADD pom.xml /jenkinsfile-runner/pom.xml
RUN cd /jenkinsfile-runner && mvn clean package --batch-mode -ntp --show-version --errors \
-DargLine="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED"
ADD .git /jenkinsfile-runner/.git
RUN cd /jenkinsfile-runner && mvn clean package --batch-mode -ntp --show-version --errors -DargLine="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED"

# Prepare the Jenkins core
RUN mkdir /app && unzip /jenkinsfile-runner/vanilla-package/target/war/jenkins.war -d /app/jenkins && \
rm -rf /app/jenkins/scripts /app/jenkins/jsbundles /app/jenkins/css /app/jenkins/images /app/jenkins/help \
/app/jenkins/WEB-INF/detached-plugins /app/jenkins/WEB-INF/jenkins-cli.jar /app/jenkins/WEB-INF/lib/jna-4.5.2.jar
rm -rf /app/jenkins/scripts /app/jenkins/jsbundles /app/jenkins/css /app/jenkins/images /app/jenkins/help /app/jenkins/WEB-INF/detached-plugins /app/jenkins/WEB-INF/jenkins-cli.jar /app/jenkins/WEB-INF/lib/jna-4.5.2.jar

FROM eclipse-temurin:17-jre-alpine
ENV JENKINS_UC https://updates.jenkins.io
Expand Down
7 changes: 3 additions & 4 deletions packaging/docker/unix/eclipse-temurin-17-jre/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,11 @@ ADD packaging-parent-resources /jenkinsfile-runner/packaging-parent-resources
ADD packaging-parent-pom /jenkinsfile-runner/packaging-parent-pom
ADD packaging-slim-parent-pom /jenkinsfile-runner/packaging-slim-parent-pom
ADD pom.xml /jenkinsfile-runner/pom.xml
RUN cd /jenkinsfile-runner && mvn clean package --batch-mode -ntp --show-version --errors \
-DargLine="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED"
ADD .git /jenkinsfile-runner/.git
RUN cd /jenkinsfile-runner && mvn clean package --batch-mode -ntp --show-version --errors -DargLine="--add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.lang.invoke=ALL-UNNAMED"
# Prepare the Jenkins core
RUN mkdir /app && unzip /jenkinsfile-runner/vanilla-package/target/war/jenkins.war -d /app/jenkins && \
rm -rf /app/jenkins/scripts /app/jenkins/jsbundles /app/jenkins/css /app/jenkins/images /app/jenkins/help \
/app/jenkins/WEB-INF/detached-plugins /app/jenkins/WEB-INF/jenkins-cli.jar /app/jenkins/WEB-INF/lib/jna-4.5.2.jar
rm -rf /app/jenkins/scripts /app/jenkins/jsbundles /app/jenkins/css /app/jenkins/images /app/jenkins/help /app/jenkins/WEB-INF/detached-plugins /app/jenkins/WEB-INF/jenkins-cli.jar /app/jenkins/WEB-INF/lib/jna-4.5.2.jar

FROM eclipse-temurin:17-jre
RUN apt-get update && apt-get install wget && rm -rf /var/lib/apt/lists/*
Expand Down

0 comments on commit c65c85b

Please sign in to comment.