summaryrefslogtreecommitdiffstats
path: root/base_sdc-cqlsh/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'base_sdc-cqlsh/Dockerfile')
-rw-r--r--base_sdc-cqlsh/Dockerfile9
1 files changed, 8 insertions, 1 deletions
diff --git a/base_sdc-cqlsh/Dockerfile b/base_sdc-cqlsh/Dockerfile
index ce779d7..277ed02 100644
--- a/base_sdc-cqlsh/Dockerfile
+++ b/base_sdc-cqlsh/Dockerfile
@@ -1,5 +1,12 @@
FROM openjdk:8-jdk-alpine
+RUN addgroup -g 1000 sdc && adduser -S -u 1000 -G sdc -s /bin/sh sdc
+USER sdc
+RUN mkdir ~/.cassandra/ && \
+ echo '[cql]' > ~/.cassandra/cqlshrc && \
+ echo 'version=3.4.4' >> ~/.cassandra/cqlshrc
+USER root
+
RUN apk add --no-cache py-pip && \
pip install cqlsh==5.0.4 && \
mkdir ~/.cassandra/ && \
@@ -18,4 +25,4 @@ RUN apk add --no-cache py-pip && \
apk update && \
apk add binutils \
libtasn1
-
+USER sdc