Created
August 25, 2018 17:55
-
-
Save ericvhileman/a1e5e470e4b053b22f0f2fb963a7bbd7 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 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