Skip to content

Instantly share code, notes, and snippets.

@skord
Created June 18, 2018 23:04
Show Gist options
  • Save skord/97718b3e89e3976575e17b888a0f1a22 to your computer and use it in GitHub Desktop.
Save skord/97718b3e89e3976575e17b888a0f1a22 to your computer and use it in GitHub Desktop.
maxscale dockerfile
FROM centos:7
ENV MAXSCALE_VERSION=2.2.9
ENV MAXSCALE_PKG_REV=1
RUN yum install -y https://downloads.mariadb.com/MaxScale/${MAXSCALE_VERSION}/rhel/7/x86_64/maxscale-${MAXSCALE_VERSION}-${MAXSCALE_PKG_REV}.rhel.7.x86_64.rpm
RUN mkdir -p /tmp/maxadmin
CMD ["maxscale", "-f", "/etc/maxscale.cnf", "-l", "stdout", "-d", "-U", "root"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment