Skip to content

Commit

Permalink
Upgrade test containers to Ubuntu 24.04 and Java 17
Browse files Browse the repository at this point in the history
  • Loading branch information
basil committed May 20, 2024
1 parent bebb9ac commit 4c3dcee
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 30 deletions.
14 changes: 7 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,35 +22,35 @@ updates:
interval: "weekly"
ignore:
- dependency-name: "ubuntu"
versions: [">=22.04"]
versions: [">=24.04"]
- package-ecosystem: "docker"
directory: "src/main/resources/org/jenkinsci/test/acceptance/docker/fixtures/GitContainer"
schedule:
interval: "weekly"
ignore:
- dependency-name: "ubuntu"
versions: [">=22.04"]
versions: [">=24.04"]
- package-ecosystem: "docker"
directory: "src/main/resources/org/jenkinsci/test/acceptance/docker/fixtures/JabberContainer"
schedule:
interval: "weekly"
ignore:
- dependency-name: "ubuntu"
versions: [">=22.04"]
versions: [">=24.04"]
- package-ecosystem: "docker"
directory: "src/main/resources/org/jenkinsci/test/acceptance/docker/fixtures/JavaGitContainer"
schedule:
interval: "weekly"
ignore:
- dependency-name: "ubuntu"
versions: [">=22.04"]
versions: [">=24.04"]
- package-ecosystem: "docker"
directory: "src/main/resources/org/jenkinsci/test/acceptance/docker/fixtures/JiraContainer"
schedule:
interval: "weekly"
ignore:
- dependency-name: "ubuntu"
versions: [">=22.04"]
versions: [">=24.04"]
- package-ecosystem: "docker"
directory: "src/main/resources/org/jenkinsci/test/acceptance/docker/fixtures/LdapContainer"
schedule:
Expand All @@ -65,7 +65,7 @@ updates:
interval: "weekly"
ignore:
- dependency-name: "ubuntu"
versions: [">=22.04"]
versions: [">=24.04"]
- package-ecosystem: "docker"
directory: "src/main/resources/org/jenkinsci/test/acceptance/docker/fixtures/SshAgentContainer"
schedule:
Expand All @@ -80,7 +80,7 @@ updates:
interval: "weekly"
ignore:
- dependency-name: "ubuntu"
versions: [">=22.04"]
versions: [">=24.04"]
- package-ecosystem: "docker"
directory: "src/main/resources/org/jenkinsci/test/acceptance/docker/fixtures/GitLabContainer"
schedule:
Expand Down
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if (needSplittingFromWorkspace) {
def axes = [
jenkinsVersions: ['lts', 'latest'],
platforms: ['linux'],
jdks: [11, 21],
jdks: [17, 21],
browsers: ['firefox'],
]

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@
<dependency>
<groupId>org.jenkins-ci.test</groupId>
<artifactId>docker-fixtures</artifactId>
<version>190.vd6a_e600cb_775</version>
<version>200.v22a_e8766731c</version>
</dependency>
<dependency>
<groupId>org.json</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# curl -s https://raw.githubusercontent.com/jenkinsci/docker-fixtures/master/src/main/resources/org/jenkinsci/test/acceptance/docker/fixtures/JavaContainer/Dockerfile | sha1sum | cut -c 1-12
FROM jenkins/java:387404da3ce7
FROM jenkins/java:978f1af53461

RUN cd /tmp && \
wget -nv -O - https://get.docker.com/builds/Linux/x86_64/docker-1.13.1.tgz | tar xvfz - docker/docker && \
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Runs sshd and allow the 'test' user to login
#

FROM ubuntu:22.04
FROM ubuntu:24.04

# install FTP
RUN apt-get update && apt-get install -y vsftpd
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# and prepares for execution of gitplugin tests.
#

FROM ubuntu:22.04
FROM ubuntu:24.04

RUN mkdir -p /var/run/sshd

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,8 @@
# Setup Prosody IM XMPP Server with two users
#

FROM ubuntu:22.04
FROM ubuntu:24.04

# Needed for supervisord
RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
# install prosody
RUN LC_ALL=C DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y prosody
RUN apt-get upgrade -y
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# and prepares for execution of Java compile jobs on slaves.
#

FROM ubuntu:22.04
FROM ubuntu:24.04

RUN mkdir -p /var/run/sshd

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
# The initial password is 'admin:admin'
#
FROM ubuntu:22.04
FROM ubuntu:24.04

# Pin JIRA version to make the tests more predictable and less fragile
# In particular, pinned to 6.X because from 7.X the SOAP API is gone, and it's
Expand All @@ -12,11 +12,11 @@ FROM ubuntu:22.04
ENV JIRA_VERSION 6.3

# base package installation
RUN apt-get update && apt-get install -y apt-transport-https wget gnupg2 && echo "deb https://packages.atlassian.com/debian/atlassian-sdk-deb/ stable contrib" >> /etc/apt/sources.list
RUN apt-get update && apt-get install -y apt-transport-https wget gnupg2 && add-apt-repository -s "deb https://packages.atlassian.com/debian/atlassian-sdk-deb/ stable contrib"
RUN wget https://packages.atlassian.com/api/gpg/key/public
RUN apt-key add public

RUN apt-get update && apt-get install -y openjdk-8-jdk atlassian-plugin-sdk netcat
RUN apt-get update && apt-get install -y openjdk-8-jdk atlassian-plugin-sdk netcat-openbsd

# this will install the whole thing, launches Tomcat,
# asks the user to do Ctrl+C to quit, then it shuts down presumably because it
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
# Runs smbd and allow the 'test' user to connect
#

FROM ubuntu:22.04
FROM ubuntu:24.04

RUN echo "deb http://archive.ubuntu.com/ubuntu precise main universe" > /etc/apt/sources.list
RUN apt-get update && apt-get -y install samba

RUN useradd test -d /home/test -s /bin/bash && \
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# curl -s https://raw.githubusercontent.com/jenkinsci/docker-fixtures/master/src/main/resources/org/jenkinsci/test/acceptance/docker/fixtures/JavaContainer/Dockerfile | sha1sum | cut -c 1-12
FROM jenkins/java:387404da3ce7
FROM jenkins/java:978f1af53461
COPY *.pub /tmp
RUN cat /tmp/*.pub >> /home/test/.ssh/authorized_keys
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@
# The admin user has username 'admin' and password 'tomcat'
#

FROM ubuntu:22.04
FROM ubuntu:24.04

RUN apt-get update && apt-get install -y gnupg

# Tomcat7 is from Universe
RUN echo "deb http://archive.ubuntu.com/ubuntu lunar universe" >> /etc/apt/sources.list
RUN apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 40976EAF437D05B5
RUN apt-get update && apt-get install -y tomcat10 tomcat10-admin

# configure the admin user
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# curl -s https://raw.githubusercontent.com/jenkinsci/docker-fixtures/master/src/main/resources/org/jenkinsci/test/acceptance/docker/fixtures/JavaContainer/Dockerfile | sha1sum | cut -c 1-12
FROM jenkins/java:387404da3ce7
RUN apt-get update && apt-get install -y vnc4server imagemagick
FROM jenkins/java:978f1af53461
RUN apt-get update && apt-get install -y tigervnc-standalone-server imagemagick

# So it is owned by root and has the permissions vncserver seems to require:
RUN mkdir /tmp/.X11-unix && chmod 1777 /tmp/.X11-unix/
Expand Down

0 comments on commit 4c3dcee

Please sign in to comment.