Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions pylib/Dockerfile.ubuntu.py3

This file was deleted.

13 changes: 0 additions & 13 deletions pylib/Dockerfile.ubuntu.py37

This file was deleted.

13 changes: 0 additions & 13 deletions pylib/Dockerfile.ubuntu.py38

This file was deleted.

21 changes: 0 additions & 21 deletions pylib/README.asc
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ This directory contains code primarily for cqlsh. cqlsh uses cqlshlib in this di
== Requirements
. Python 3.6+ (for cqlsh)
. virtualenv
. Docker (optional)

== Running tests

Expand All @@ -22,23 +21,3 @@ You can run tests with a local Cassandra server simply by -

In order to run tests in a virtual environment for cqlshlib, run cassandra-cqlsh-tests.sh in this directory. It will
automatically setup a virtualenv with the appropriate version of Python and run tests inside it.

There are Dockerfiles that can be used to test whether cqlsh works with a default, barebones
Python installation. Assuming Cassandra's source is checked out at `$CASSANDRA_DIR`. To test, first
build the Docker image containing the barebones Python installation -

$ docker build . --file Dockerfile.ubuntu.py3 -t ubuntu-lts-py3

Next, run cqlsh inside the newly built image -

$ docker run -v $CASSANDRA_DIR:/code -it ubuntu-lts-py3:latest /code/bin/cqlsh host.docker.internal

If `host.docker.internal` isn't supported, then you can use `--net="host"` with `docker run`:

$ docker run --net="host" -v $CASSANDRA_DIR:/code -it ubuntu-lts-py3:latest /code/bin/cqlsh

This will try to spawn a cqlsh instance inside the Docker container running Ubuntu LTS (18.04)
with minimal Python installation. It will try to connect to the Cassandra instance running on the
Docker host at port 9042. If you have Cassandra running elsewhere, replace host.docker.internal
with the IP / hostname as usual. Please ensure that the IP / host is accessible from _within_ the
Docker container.