Skip to content

Commit 32a0d80

Browse files
committed
makes it so we can test persist-cluster-nodes-enabled no
1 parent 3dbee5d commit 32a0d80

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

scripts/docker/kvrocks/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
FROM apache/kvrocks:2.12.1
22
USER root
33

4+
RUN apt-get update && apt-get install -y procps && rm -rf /var/lib/apt/lists/*
5+
46
# Copy your custom kvrocks.conf file into the image
57
COPY kvrocks.conf /var/lib/kvrocks/kvrocks.conf
68

@@ -9,7 +11,8 @@ RUN mkdir /tmp/kvrocks7770 /tmp/kvrocks7771 /tmp/kvrocks7772 /tmp/kvrocks7773
911
RUN echo "kvrocks -c /var/lib/kvrocks/kvrocks.conf --port 7770 --dir /tmp/kvrocks7770 --daemonize yes --cluster-enabled yes --bind 0.0.0.0" >> start.sh
1012
RUN echo "kvrocks -c /var/lib/kvrocks/kvrocks.conf --port 7771 --dir /tmp/kvrocks7771 --daemonize yes --cluster-enabled yes --bind 0.0.0.0" >> start.sh
1113
RUN echo "kvrocks -c /var/lib/kvrocks/kvrocks.conf --port 7772 --dir /tmp/kvrocks7772 --daemonize yes --cluster-enabled yes --bind 0.0.0.0" >> start.sh
12-
RUN echo "kvrocks -c /var/lib/kvrocks/kvrocks.conf --port 7773 --dir /tmp/kvrocks7773 --cluster-enabled yes --bind 0.0.0.0" >> start.sh
14+
RUN echo "kvrocks -c /var/lib/kvrocks/kvrocks.conf --port 7773 --dir /tmp/kvrocks7773 --daemonize yes --cluster-enabled yes --bind 0.0.0.0" >> start.sh
15+
RUN echo "tail -f /dev/null" >> start.sh
1316
RUN chmod +x start.sh
1417

1518
EXPOSE 7770:7770

scripts/docker/kvrocks/kvrocks.conf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ repl-namespace-enabled no
8484
# and dump the cluster nodes into the file if it was changed.
8585
#
8686
# Default: yes
87-
persist-cluster-nodes-enabled yes
87+
persist-cluster-nodes-enabled no
8888

8989
# Set the max number of connected clients at the same time. By default
9090
# this limit is set to 10000 clients. However, if the server is not

scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616
# under the License.
1717
#
1818

19-
cd docker && docker compose -p kvrocks-controller up -d --force-recreate && cd ..
19+
cd docker && docker compose -p kvrocks-controller up -d --force-recreate --build && cd ..

0 commit comments

Comments
 (0)