Created
August 25, 2018 17:53
-
-
Save ericvhileman/176d61b09e2befc851644265b079fadc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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