Skip to content

Commit

Permalink
Adding galera packages and exposing ports
Browse files Browse the repository at this point in the history
This PR adds the necessary package and exposes the ports required to run
Galera.

Testing was done in this repository:
https://github.com/jcpowermac/mariadb-ha-poc/blob/master/Dockerfile
  • Loading branch information
jcpowermac committed Feb 6, 2018
1 parent 4104865 commit b47f7d7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 10.2/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,14 @@ LABEL summary="$SUMMARY" \
usage="docker run -d -e MYSQL_USER=user -e MYSQL_PASSWORD=pass -e MYSQL_DATABASE=db -p 3306:3306 centos/mariadb-102-centos7" \
maintainer="SoftwareCollections.org <[email protected]>"

EXPOSE 3306
EXPOSE 3306 4567 4568 4444

# This image must forever use UID 27 for mysql user so our volumes are
# safe in the future. This should *never* change, the last test is there
# to make sure of that.
RUN yum install -y centos-release-scl-rh && \
yum-config-manager --enable centos-sclo-rh-testing && \
INSTALL_PKGS="rsync tar gettext hostname bind-utils groff-base shadow-utils rh-mariadb102" && \
INSTALL_PKGS="rsync tar gettext hostname bind-utils groff-base shadow-utils rh-mariadb102 rh-mariadb102-galera which" && \
yum install -y --setopt=tsflags=nodocs $INSTALL_PKGS && \
rpm -V $INSTALL_PKGS && \
yum clean all && \
Expand Down

0 comments on commit b47f7d7

Please sign in to comment.