diff --git a/3.0/Dockerfile b/3.0/Dockerfile index 4b265a7..7f03bc5 100644 --- a/3.0/Dockerfile +++ b/3.0/Dockerfile @@ -19,7 +19,7 @@ RUN set -eux; \ # "free" is used by cassandra-env.sh procps \ # "cqlsh" needs a python interpreter - python \ + python2 \ # "ip" is not required by Cassandra itself, but is commonly used in scripting Cassandra's configuration (since it is so fixated on explicit IP addresses) iproute2 \ # Cassandra will automatically use numactl if available diff --git a/3.11/Dockerfile b/3.11/Dockerfile index e270d0a..6d9f1fe 100644 --- a/3.11/Dockerfile +++ b/3.11/Dockerfile @@ -19,7 +19,7 @@ RUN set -eux; \ # "free" is used by cassandra-env.sh procps \ # "cqlsh" needs a python interpreter - python \ + python2 \ # "ip" is not required by Cassandra itself, but is commonly used in scripting Cassandra's configuration (since it is so fixated on explicit IP addresses) iproute2 \ # Cassandra will automatically use numactl if available diff --git a/Dockerfile.template b/Dockerfile.template index 50ffccd..8674e6b 100644 --- a/Dockerfile.template +++ b/Dockerfile.template @@ -19,9 +19,12 @@ RUN set -eux; \ {{ # python3 is only supported in 4.0+ # https://issues.apache.org/jira/browse/CASSANDRA-10190 + # https://github.com/apache/cassandra/blob/cassandra-3.11.16/bin/cqlsh#L18-L26 + # https://github.com/apache/cassandra/blob/cassandra-3.0.29/bin/cqlsh#L18-L26 + # (only looking for/accepting Python 2.7 specifically) if major < 4 then ( -}} - python \ + python2 \ {{ ) else ( -}} python3 \ {{ ) end -}}