From 2d60a08b3d88a0ddd8ec21f0f2d5c80fff604ead Mon Sep 17 00:00:00 2001 From: Andrei Ismail Date: Sat, 20 Jun 2015 12:02:31 +0200 Subject: [PATCH] #291 Always run ProxySQL with gdbserver The purpose is to drop the user running the tests into an interactive console to debug a crashed ProxySQL test. --- scenarios/base/proxysql/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scenarios/base/proxysql/Dockerfile b/scenarios/base/proxysql/Dockerfile index 553eecad2..748b17b61 100644 --- a/scenarios/base/proxysql/Dockerfile +++ b/scenarios/base/proxysql/Dockerfile @@ -8,6 +8,8 @@ RUN apt-get update && apt-get install -y\ make\ g++\ gcc\ + gdb\ + gdbserver\ git\ libmysqlclient-dev\ libssl-dev\ @@ -22,4 +24,4 @@ RUN mkdir -p /var/run/proxysql ADD ./proxysql.cnf /etc/ WORKDIR /opt/proxysql/src -CMD ["/opt/proxysql/src/proxysql", "--initial"] \ No newline at end of file +CMD ["gdbserver", "0.0.0.0:2345", "/opt/proxysql/src/proxysql", "--initial"] \ No newline at end of file