Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save davidalger/ad2cf09f80d4e99bdbd802660d3dd476 to your computer and use it in GitHub Desktop.
Save davidalger/ad2cf09f80d4e99bdbd802660d3dd476 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 v2.0.0 --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