-
-
Notifications
You must be signed in to change notification settings - Fork 50
Update ClusterFuzzLite Dockerfile to Ubuntu 25.04 #2119
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
base: master
Are you sure you want to change the base?
Update ClusterFuzzLite Dockerfile to Ubuntu 25.04 #2119
Conversation
|
These needs to be done together: #2115 |
|
As we aren’t installing Ubuntu 25.04, Puthon 3.13 need to be installed manually. |
|
.clusterfuzzlite/Dockerfile is still using Python 3.12. Python 3.13 need to be explicitly installed. |
Install and use Python 3.13 in ClusterFuzzLite Dockerfile
I attempted to install Python 3.13 in .clusterfuzzlite/Dockerfile using apt and ppa:deadsnakes/ppa, but the OSS-Fuzz base image for ubuntu-24-04 does not provide python3.13 packages (CI failed with E: Unable to locate package python3.13). I’ve reverted that change so the ClusterFuzzLite build works as before. I’m happy to update this Dockerfile again with a Python 3.13 installation method that matches your preferred approach for this project (e.g., compiling from source or following an existing OSS-Fuzz pattern). Please let me know how you’d like to handle Python 3.13 here.
|
sir, I tried installing Python 3.13 in .clusterfuzzlite/Dockerfile using apt, but the OSS-Fuzz base image for ubuntu-24-04 doesn’t provide python3.13, so CI failed. I’ve reverted that change so this PR keeps the current working setup. Could you please suggest the best way to add Python 3.13 to the ClusterFuzzLite image (e.g., compiling from source or following an existing OSS-Fuzz pattern)? I’m happy to update the Dockerfile once I know your preferred approach. |
|
It’s still possible to install puthon 3.13 you used need to add the right apt repositories |
|
sudo apt update && sudo apt upgrade -y |
|
Haven’t tested this. So you may need to adjust a bit. Tell me if it is too difficult for you. |
|
@Adarshkumar0509 have a look at the documentation for working on the fuzzer https://github.com/OWASP/cornucopia/tree/master/scripts#developing-fuzzers It’s worthwhile setting up the fuzzers locally and testing it there. |
|
Regarding your issue, instead of: apt-get install -y python3.13-pip Try python3.13 -m ensurepip --upgrade |
.clusterfuzzlite/Dockerfile
Outdated
| # Atheris only supports python 3.11 https://github.com/google/atheris/blob/master/README.md#installation-instructions | ||
|
|
||
| # Try to add deadsnakes and install Python 3.13, but don't fail if packages are missing | ||
| RUN set -eux; \ |
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.
lets go back to have it was use python3 instead of python1.3
It works for now so let’s just leave it at that.
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.
It may be that I’ll have to pick this up later.
|
@Adarshkumar0509 create a new pull-request and update the branch with master. It could be that the fuzzing has gone a bit stray. Remember to configure git commit signing: https://docs.github.com/en/authentication/managing-commit-signature-verification/signing-commits |
|
@Adarshkumar0509 please ensure that your commits are signed. |
|
Sorry about that, and thanks for the reminder. I’ll set up commit signing following the GitHub documentation and make sure all my future commits to this repository are properly signed. |
This pull request updates
.clusterfuzzlite/Dockerfile. It originally proposed using thegcr.io/oss-fuzz-base/base-builder-python:ubuntu-25-04base image, but that tag is not yet available, so the Dockerfile has been reverted to the existingubuntu-24-04base image.Changes:
ubuntu-24-04.Rationale:
ubuntu-25-04base-builder image, which causes the ClusterFuzzLite build to fail.Refs #2105
Related PR: #2115 (main Dockerfile Python upgrade).