-
Notifications
You must be signed in to change notification settings - Fork 20
/
Dockerfile
30 lines (19 loc) · 933 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#Amazon Keyspaces toolkit
ARG CLI_VERSION=latest
FROM amazon/aws-cli:$CLI_VERSION
ENV AWS_KEYSPACES_WORKING_DIR=/root
ENV CASSANDRA_HOME=$AWS_KEYSPACES_WORKING_DIR/cassandra
ENV CQLSHRC_HOME=$AWS_KEYSPACES_WORKING_DIR/.cassandra
WORKDIR $AWS_KEYSPACES_WORKING_DIR
RUN mkdir $AWS_KEYSPACES_WORKING_DIR/bin
#Install jq
RUN yum install -y jq && yum install python3-pip -y && yum clean all
RUN pip3 install cqlsh-expansion==0.9.5
RUN cqlsh-expansion.init
#toolkit helpers
COPY bin/aws-cqlsh-expo-backoff.sh $AWS_KEYSPACES_WORKING_DIR/bin/aws-cqlsh-expo-backoff.sh
COPY bin/aws-sm-cqlsh-expo-backoff.sh $AWS_KEYSPACES_WORKING_DIR/bin/aws-sm-cqlsh-expo-backoff.sh
COPY bin/aws-cqlsh-expansion-expo-backoff.sh $AWS_KEYSPACES_WORKING_DIR/bin/aws-cqlsh-expansion-expo-backoff.sh
COPY bin/aws-sm-cqlsh.sh $AWS_KEYSPACES_WORKING_DIR/bin/aws-sm-cqlsh.sh
ENV PATH="${PATH}:$AWS_KEYSPACES_WORKING_DIR/bin"
ENTRYPOINT ["cqlsh-expansion"]