forked from docker/midPoint_container
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Adapt demo/complex to TIER-supported MariaDB
(needs MariaDB support of extra SQL scripts i.e. PR docker#8-11 to work)
Showing
8 changed files
with
2,554 additions
and
2,642 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,10 @@ | ||
FROM centos:centos7 | ||
|
||
LABEL author="tier-packaging@internet2.edu <tier-packaging@internet2.edu>" | ||
|
||
RUN yum install -y epel-release \ | ||
&& yum update -y \ | ||
&& yum install -y mariadb-server mariadb \ | ||
&& yum clean all \ | ||
&& rm -rf /var/cache/yum | ||
FROM tier/mariadb:mariadb10 | ||
|
||
COPY container_files/seed-data/ /seed-data/ | ||
|
||
RUN mysql_install_db \ | ||
&& chown -R mysql:mysql /var/lib/mysql/ \ | ||
&& sed -i 's/^\(bind-address\s.*\)/# \1/' /etc/my.cnf \ | ||
&& sed -i 's/^\(log_error\s.*\)/# \1/' /etc/my.cnf \ | ||
&& sed -i 's/\[mysqld\]/\[mysqld\]\ncharacter_set_server = utf8/' /etc/my.cnf \ | ||
&& sed -i 's/\[mysqld\]/\[mysqld\]\ncollation_server = utf8_general_ci/' /etc/my.cnf \ | ||
&& sed -i 's/\[mysqld\]/\[mysqld\]\nport = 3306/' /etc/my.cnf \ | ||
&& cat /etc/my.cnf \ | ||
&& echo "/usr/bin/mysqld_safe &" > /tmp/config \ | ||
&& echo "mysqladmin --silent --wait=30 ping || exit 1" >> /tmp/config \ | ||
&& echo "mysql -e 'GRANT ALL PRIVILEGES ON *.* TO \"root\"@\"%\" WITH GRANT OPTION;'" >> /tmp/config \ | ||
&& echo "mysql -e 'CREATE DATABASE sis CHARACTER SET utf8 COLLATE utf8_bin;'" >> /tmp/config \ | ||
&& bash /tmp/config \ | ||
&& rm -f /tmp/config \ | ||
&& mysql sis < /seed-data/persons.sql \ | ||
&& mysql sis < /seed-data/courses.sql | ||
|
||
EXPOSE 3306 | ||
ENV MYSQL_DATABASE sis | ||
ENV MYSQL_USER sis_user | ||
ENV MYSQL_PASSWORD 49321420423 | ||
ENV MYSQL_DATADIR /var/lib/mysql | ||
ENV AFTER_FIRST_TIME_SQL /seed-data/persons-and-courses.sql | ||
|
||
CMD mysqld_safe |
2,540 changes: 0 additions & 2,540 deletions
2,540
demo/complex/sources/container_files/seed-data/courses.sql
This file was deleted.
Oops, something went wrong.
2,543 changes: 2,543 additions & 0 deletions
2,543
...ces/container_files/seed-data/persons.sql → ...r_files/seed-data/persons-and-courses.sql
Large diffs are not rendered by default.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.