Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save davidalger/1c095cbcbae7c0038612a337475d141b to your computer and use it in GitHub Desktop.
Save davidalger/1c095cbcbae7c0038612a337475d141b to your computer and use it in GitHub Desktop.
FROM debian:jessie
ENV BUILD_PKG "automake bzip2 cmake make g++ gcc git-core libssl-dev patch binutils"
RUN apt-get update && apt-get install -y \
libssl1.0.0 openssl ssl-cert $BUILD_PKG \
vim mysql-client && \
cd /usr/local/src && \
git clone -b 2018-04-01 --depth 1 --single-branch https://github.com/google/re2.git && \
git clone -b v1.4.8 --depth 1 --single-branch https://github.com/sysown/proxysql.git && \
cd ./re2 && make && make install && cd .. && \
cd ./proxysql && make && make install && cd && \
rm -rf /usr/local/src/proxysql /usr/local/src/re2 && apt-get remove -y --purge $BUILD_PKG && \
rm -rf /var/lib/apt/lists/* && rm -rf /var/cache/apt/archives/*.deb && \
apt-get autoremove -y
ADD proxysql.conf /etc/proxysql.cnf
WORKDIR /root
CMD ["proxysql", "-f"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment