[ 
https://issues.apache.org/jira/browse/CASSANDRA-20181?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18061019#comment-18061019
 ] 

Michael Semb Wever commented on CASSANDRA-20181:
------------------------------------------------

I would be in favour of finding existing public docker images for different 
python versions, and updating the readme to reference them.

We don't need to be asking the user to have to build docker images themselves 
to do this.
We don't need to be keeping these dockerfiles ourselves (and regularly having 
to fix/update them).
And we don't need these dockerfiles to be testing different versions of python 
in our CI (the testing scripts from 5.0 already provide that capability).  And 
we definitely shouldn't be placing the QA burden of cqlsh working on different 
python versions on the user with manual testing.

> Instructions in pylib/README.asc for building Docker images to run cqlsh in 
> are not up-to-date
> ----------------------------------------------------------------------------------------------
>
>                 Key: CASSANDRA-20181
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-20181
>             Project: Apache Cassandra
>          Issue Type: Bug
>          Components: CQL/Interpreter
>            Reporter: lanqing yang
>            Assignee: Arvind Kandpal
>            Priority: Normal
>              Labels: lhf
>             Fix For: 4.0.x, 4.1.x, 5.0.x, 5.x
>
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> # Hi, i am trying to build and test cqlsh locally following this 
> [guide|https://github.com/lyang24/cassandra/blob/8fd44ca8fc9e0b0e94932bcd855e2833bf6ca3cb/pylib/README.asc#L34]
>  . I bypassed this with setting the python directory to 3.6 in the docker 
> file.
> should we fix the python version in the install command?
> i.e. apt-get install -y python3.8 python3.8-minimal
> {code:java}
> 11.37 update-alternatives: error: alternative path /usr/bin/python3.8 doesn't 
> exist
> ------
> Dockerfile.ubuntu.py3:18
> --------------------
>   16 |     #
>   17 |     FROM ubuntu:bionic
>   18 | >>> RUN apt-get update && apt-get install -y python3-minimal && 
> update-alternatives --install /usr/bin/python python /usr/bin/python3.8 1
>   19 |     
> --------------------
> ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install 
> -y python3-minimal && update-alternatives --install /usr/bin/python python 
> /usr/bin/python3.8 1" did not complete successfully: exit code: 2
> {code}
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to