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
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM python:2.7-alpine3.8
FROM python:3.11-alpine3.22

WORKDIR /scripts

ENV CQLVERSION="3.4.4" \
ENV CQLVERSION="3.4.7" \
CQLSH_HOST="cassandra" \
CQLSH_PORT="9042"

RUN pip install -Ivq cqlsh==5.0.4 \
RUN pip install -Ivq cqlsh==6.2.0 \
&& apk add --no-cache bash \
&& echo 'alias cqlsh="cqlsh --cqlversion ${CQLVERSION} $@"' >> /.bashrc \
&& mkdir /.cassandra
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

# defaults for cqlsh
export CQLVERSION=${CQLVERSION:-"3.4.4"}
export CQLVERSION=${CQLVERSION:-"3.4.7"}
export CQLSH_HOST=${CQLSH_HOST:-"cassandra"}
export CQLSH_PORT=${CQLSH_PORT:-"9042"}

Expand Down