CASSANDRA-20181: Fix cqlsh docker build failure by upgrading Ubuntu base images#4631
Open
arvindKandpal-ksolves wants to merge 1 commit intoapache:trunkfrom
Open
CASSANDRA-20181: Fix cqlsh docker build failure by upgrading Ubuntu base images#4631arvindKandpal-ksolves wants to merge 1 commit intoapache:trunkfrom
arvindKandpal-ksolves wants to merge 1 commit intoapache:trunkfrom
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Description
This PR fixes the build failures for the
cqlshDocker environments in thepylibdirectory. The previous use ofubuntu:bionic(18.04) was causing build errors because it is End-of-Life (EOL) and does not natively support the required Python versions (3.8 - 3.11).Changes
ubuntu:bionictoubuntu:focal(20.04) and updated the Python link to use the default Python 3.8.ubuntu:focalto ensure native support for Python 3.8-minimal.ubuntu:jammy(22.04) and added thedeadsnakes/pparepository to install Python 3.11.Reproduction of Issue
Prior to these changes, running the following commands resulted in errors such as
Unable to locate package python3.11-minimaloralternative path /usr/bin/python3.8 doesn't exist:docker build . -f pylib/Dockerfile.ubuntu.py3 -t test-py3Testing
I have locally verified that all three Dockerfiles build successfully using the following commands:
docker build . -f pylib/Dockerfile.ubuntu.py3 -t test-py3docker build . -f pylib/Dockerfile.ubuntu.py38 -t test-py38docker build . -f pylib/Dockerfile.ubuntu.py311 -t test-py311All builds now complete successfully without manual intervention.
patch by arvindksi274; for CASSANDRA-20181