blob: aa6460c71ca7b37490708243ac6b4d052d259642 (
plain)
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
31
|
FROM cassandra:3.11.15
# Install necessary packages
RUN apt-get -o Acquire::Check-Valid-Until=false update && \
apt-get -y --no-install-recommends install \
apt-transport-https \
curl \
wget \
perl \
python3 \
python3-pip \
ntp && \
apt-get -y autoremove && \
pip3 install cqlsh==6.1.0 && \
rm -rf "/opt/cassandra/bin/cqlsh*"
# Copy scripts or configuration files
RUN mkdir /root/scripts
COPY scripts /root/scripts
RUN chmod +x /root/scripts/*
RUN cp -pr /root/scripts/ready_probe.sh /var/lib/ready_probe.sh
RUN chmod +x /var/lib/ready_probe.sh
# Copy startup script
COPY startup.sh /root/
# Set executable permissions for the startup script
RUN chmod 770 /root/startup.sh
# Define the entrypoint for the container
ENTRYPOINT [ "/root/startup.sh" ]
|