Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
mariadb/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
43 lines (34 sloc)
1.05 KB
This file contains 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 tier/centos7base | |
# Define args and set a default value | |
ARG registry=docker.io | |
ARG maintainer=tier | |
ARG imagename=mariadb | |
ARG version=5.5 | |
MAINTAINER $maintainer | |
LABEL Vendor="Internet2" | |
LABEL ImageType="Database" | |
LABEL ImageName=$imagename | |
LABEL ImageOS=centos7 | |
LABEL Version=$version | |
LABEL Build docker build --rm --tag $registry/$maintainer/$imagename . | |
# Install base deps | |
RUN yum -y install --setopt=tsflags=nodocs mariadb-server bind-utils pwgen psmisc hostname vim | |
# Add starters and installers | |
ADD ./container_files /opt | |
RUN rm -rf /etc/my.cnf | |
COPY ./conf/my.cnf /etc | |
# Add Volumes and Set permissions | |
RUN mkdir /opt/shared && chmod 777 /opt/shared && chmod 777 /opt/bin/*.sh | |
# Place VOLUME statement below all changes to /var/lib/mysql | |
VOLUME /var/lib/mysql | |
# Environment variables | |
ENV CREATE_NEW_DATABASE "1" | |
ENV MYSQL_ROOT_PASSWORD "123321" | |
ENV MYSQL_DATABASE "registry" | |
ENV MYSQL_USER "registry_user" | |
ENV MYSQL_PASSWORD "WJzesbe3poNZ91qIbmR7" | |
ENV MYSQL_DATADIR "/var/lib/mysqlmounted" | |
ENV TERM "testterm" | |
# Port | |
EXPOSE 3306 | |
CMD ["/opt/bin/start.sh"] |