Skip to content

Commit

Permalink
Simulate broker crash
Browse files Browse the repository at this point in the history
Signed-off-by: Dmitrii Petukhov <[email protected]>
  • Loading branch information
bbpetukhov committed Dec 7, 2024
1 parent 4a21edb commit 0dd1e1b
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions bmq-sdk/src/test/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,14 @@ RUN mkdir -p /tmp/cores
COPY config/ /etc/local/bmq/

EXPOSE 30114

RUN echo "/usr/local/bin/bmqbrkr /etc/local/bmq &" > /tmp/startup.h
RUN echo "BROKER_PID=$!" >> /tmp/startup.h
RUN echo "sleep 30" >> /tmp/startup.h
RUN echo "kill -QUIT $BROKER_PID" >> /tmp/startup.h
RUN chmod +x /tmp/startup.sh
CMD ["/tmp/startup.sh"]

CMD [ "/usr/local/bin/bmqbrkr" \
, "/etc/local/bmq" \
]
# CMD [ "/usr/local/bin/bmqbrkr" \
# , "/etc/local/bmq" \
# ]

0 comments on commit 0dd1e1b

Please sign in to comment.