File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM apache/kvrocks:2.12.1
22USER 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
57COPY kvrocks.conf /var/lib/kvrocks/kvrocks.conf
68
@@ -9,7 +11,8 @@ RUN mkdir /tmp/kvrocks7770 /tmp/kvrocks7771 /tmp/kvrocks7772 /tmp/kvrocks7773
911RUN 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
1012RUN 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
1113RUN 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
1316RUN chmod +x start.sh
1417
1518EXPOSE 7770:7770
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff line change 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 ..
You can’t perform that action at this time.
0 commit comments