Public Repository

Last pushed: 4 months ago
Short Description
Short description is empty for this repo.
Full Description

FROM centos:centos7

MAINTAINER The CentOS Project cloud-ops@centos.org
LABEL Vendor="CentOS"
LABEL License=GPLv2
LABEL Version=5.5.41

LABEL Build docker build --rm --tag centos/mariadb55 .

RUN yum -y install --setopt=tsflags=nodocs epel-release && \
yum -y install --setopt=tsflags=nodocs mariadb-server bind-utils pwgen psmisc hostname && \
yum -y erase vim-minimal && \
yum -y update && yum clean all

Fix permissions to allow for running on openshift

COPY fix-permissions.sh ./
RUN ./fix-permissions.sh /var/lib/mysql/ && \
./fix-permissions.sh /var/log/mariadb/ && \
./fix-permissions.sh /var/run/

COPY docker-entrypoint.sh /

ENTRYPOINT ["/docker-entrypoint.sh"]

Place VOLUME statement below all changes to /var/lib/mysql

VOLUME /var/lib/mysql

By default will run as random user on openshift and the mysql user (27)

everywhere else

USER 27

EXPOSE 3306
CMD ["mysqld_safe"]

Docker Pull Command
Owner
shimashi

Comments (0)