blob: 6ae195ee17c6752c59686455a3655cff10e848e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
FROM python:2.7-alpine3.8
RUN pip install cassandra-driver==3.25.0 cqlsh==5.0.4
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
COPY create_keyspaces.cql create_tables.cql start.sh ./
RUN chown sdc:sdc create_keyspaces.cql && \
chown sdc:sdc create_tables.cql && \
chown sdc:sdc start.sh && \
chmod 744 start.sh
USER sdc
ENTRYPOINT ["./start.sh"]
|