Update Dockerfile base image to Ubuntu 22.04 #1527
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The OME Dockerfiles currently are based on Ubuntu 20.04. This is becoming a security issue because of Ubuntu 20.04 not getting properly supplied with security updates any more. Anything that is not core Ubuntu or Linux kernel is not covered by the LTS promise and package maintainers have largely started dropping the upkeep work for the 20.04 package repository in the past year.
Thus I suggest updating the docker image to 22.04.
This also requires some changes to the misc/prerequisites.sh (especially the check_version + proceed_yn functions) and the scripts for installing the GPU acceleration stuff, as well as testing OME.
I started testing with Dockerfile updated to 22.04 and compiling works, starting as origin works, starting as edge works, rtmp provider works, srt provider works, OVT publisher works, ovt provider works, WebRTC provider works over udp and over tcp, LLHLS provider works, HLS provider works, x264 transcoding works and AAC -> OPUS transcoding works. So far I didn't find any new issues after changing the docker base image to 22.04 and rebuilding the docker images.
However, I don't have any hardware that I could use for testing the GPU acceleration stuff, thus I did not update the
Dockerfile.cuda
and theDockerfile.cuda.local
.This would probably also be a good opportunity to remove any mentions of Ubuntu 18, which is not really usable nowadays anymore anyways, especially once OME also upgrades to ffmpeg 6.1 (which might be needed for the support of Enhanced RTMP for being able to ingest+forward HEVC/AV1 over RTMP). However I decided to exclude that change from this pull request in order to not slow down merging of this change because of fear of breaking any old automated setups.