Patch Jenkins and delivery agent Java runtimes
This commit is contained in:
@@ -152,6 +152,10 @@ Remove it with `docker rm -f color-buttons-app`, delete the block, and reload.
|
||||
|
||||
## Jenkins CI (Assignment 6 / Instructor Manual Chapter 4)
|
||||
|
||||
The 23 November runtime-only [Java security update](../security/java/README.md)
|
||||
retains Jenkins 2.580.1 and pins patched Temurin 21.0.13.1+2 in the Dockerfile.
|
||||
Compose now selects `ssw590-jenkins:2.580.1-java21.0.13.1-2`.
|
||||
|
||||
`jenkins/Dockerfile` extends the official `jenkins/jenkins:2.580.1-lts-jdk21`
|
||||
image (digest pinned) with `python3` and the plugins in `jenkins/plugins.txt`.
|
||||
Builds run on the controller's single executor. Jenkins publishes no port:
|
||||
|
||||
@@ -44,7 +44,7 @@ services:
|
||||
# Bounded so Gitea keeps memory on the 512 MB droplet.
|
||||
jenkins:
|
||||
build: ./jenkins
|
||||
image: ssw590-jenkins:2.580.1
|
||||
image: ssw590-jenkins:2.580.1-java21.0.13.1-2
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
# The capacity test's 128 MiB heap ran builds, but the web UI hit "OutOfMemoryError:
|
||||
|
||||
@@ -1,8 +1,12 @@
|
||||
# Official Jenkins LTS image plus what the controller executor needs to run the
|
||||
# pipeline: python3 for the tests and the pinned plugin lockfile.
|
||||
FROM eclipse-temurin:21.0.13.1_2-jdk-jammy@sha256:4b3d0998ee65462bd86ff060c87119b3575294cb3d0927372afa6f3708b0c8db AS patched_java
|
||||
FROM jenkins/jenkins:2.580.1-lts-jdk21@sha256:a660310e39ade10631f774bacd5219de767dfd08947ea5c32a739b5e5bb382c1
|
||||
|
||||
USER root
|
||||
RUN rm -rf /opt/java/openjdk
|
||||
COPY --from=patched_java /opt/java/openjdk /opt/java/openjdk
|
||||
ENV JAVA_VERSION=jdk-21.0.13.1+2
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y --no-install-recommends python3 \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
Reference in New Issue
Block a user