Skip to content
Permalink
436051c467
Switch branches/tags

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?
Go to file
 
 
Cannot retrieve contributors at this time
43 lines (34 sloc) 1.05 KB
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"]