-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Ubuntu from 22.04 to 24.04 #133
Conversation
@@ -32,7 +32,7 @@ RUN apt-get update \ | |||
make \ | |||
openssh-server \ | |||
openssl \ | |||
python3-pip \ | |||
python3-jinja2 \ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Newer versions of Python prevent pip
from installing to externally managed environments, so install the package via apt
.
libsodium-dev \ | ||
python3-dev \ | ||
&& SODIUM_INSTALL="system" python3 -m pip install --no-cache-dir pynacl \ | ||
# switch back to the package manager version once https://github.com/Azure/azure-cli/issues/7368 is resolved |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Azure/azure-cli#7368 was resolved in 2.46.0, and we are upgrading to the latest 2.62.0 because 2.46.0 is not available in the Ubuntu Noble package repository.
@@ -135,7 +133,7 @@ COPY ./macros.d /usr/lib/rpm/macros.d | |||
ARG JENKINS_USERNAME=jenkins | |||
ENV USER=${JENKINS_USERNAME} | |||
ENV HOME=/home/"${JENKINS_USERNAME}" | |||
RUN useradd -m -u 1000 "${JENKINS_USERNAME}" | |||
RUN deluser ubuntu && useradd -m -u 1000 "${JENKINS_USERNAME}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new Ubuntu image has an ubuntu
user with UID 1000, so we have to delete this user first before we can use that UID.
Build is failing due to SSH timeout to pkg.origin.jenkins.io VM caused by actions for jenkins-infra/helpdesk#4196. |
Build is going further, but it fails with the following error:
I'm trying to reproduce to understand this issue |
I can't reproduce this error locally, it is really weird :| |
I'm replaying this build to investigate the failure: please don't take the checks in account until I comment below |
OK so the problem was reported on curl's issue tracker: curl/curl#14154 => This error happens with Ubuntu 24.04 and I'll revert the arm64 change (side benefit: faster builds) and I'll update the PR here to get the build working. |
Testing done
jenkinsci/packaging
Molecule tests pass with this image