forked from mysql/mysql-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
genOracleLinux executed
- Loading branch information
Showing
13 changed files
with
633 additions
and
208 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,34 @@ | ||
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; version 2 of the License. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
FROM oraclelinux:7-slim | ||
|
||
ENV PACKAGE_URL http://repo.mysql.com/yum/mysql-5.5-community/docker/x86_64/mysql-community-server-minimal-5.5.55-2.el7.x86_64.rpm | ||
ARG PACKAGE_URL=https://repo.mysql.com/yum/mysql-5.5-community/docker/x86_64/mysql-community-server-minimal-5.5.57-2.el7.x86_64.rpm | ||
ARG PACKAGE_URL_SHELL="" | ||
|
||
# Install server | ||
RUN rpmkeys --import http://repo.mysql.com/RPM-GPG-KEY-mysql \ | ||
&& yum install -y $PACKAGE_URL \ | ||
&& yum install -y libpwquality \ | ||
&& rm -rf /var/cache/yum/* | ||
RUN mkdir /docker-entrypoint-initdb.d | ||
RUN rpmkeys --import https://repo.mysql.com/RPM-GPG-KEY-mysql \ | ||
&& yum install -y $PACKAGE_URL $PACKAGE_URL_SHELL libpwquality \ | ||
&& yum clean all \ | ||
&& mkdir /docker-entrypoint-initdb.d | ||
|
||
VOLUME /var/lib/mysql | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
COPY healthcheck.sh /healthcheck.sh | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
HEALTHCHECK CMD /healthcheck.sh | ||
EXPOSE 3306 | ||
CMD ["mysqld"] | ||
|
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#!/bin/bash | ||
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; version 2 of the License. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
|
||
# The mysql-init-complete file is touched by the entrypoint file before the | ||
# main server process is started | ||
if [ -f /mysql-init-complete ]; # The entrypoint script touches this file | ||
then # Ping server to see if it is ready | ||
mysqladmin --defaults-extra-file=/healthcheck.cnf ping | ||
else # Initialization still in progress | ||
exit 1 | ||
fi |
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,19 +1,34 @@ | ||
# Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved. | ||
# | ||
# This program is free software; you can redistribute it and/or modify | ||
# it under the terms of the GNU General Public License as published by | ||
# the Free Software Foundation; version 2 of the License. | ||
# | ||
# This program is distributed in the hope that it will be useful, | ||
# but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
# GNU General Public License for more details. | ||
# | ||
# You should have received a copy of the GNU General Public License | ||
# along with this program; if not, write to the Free Software | ||
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA | ||
FROM oraclelinux:7-slim | ||
ENV PACKAGE_URL https://repo.mysql.com/yum/mysql-5.6-community/docker/x86_64/mysql-community-server-minimal-5.6.36-2.el7.x86_64.rpm | ||
|
||
# Install server | ||
RUN rpmkeys --import http://repo.mysql.com/RPM-GPG-KEY-mysql \ | ||
&& yum install -y $PACKAGE_URL \ | ||
&& yum install -y libpwquality \ | ||
&& rm -rf /var/cache/yum/* | ||
ARG PACKAGE_URL=https://repo.mysql.com/yum/mysql-5.6-community/docker/x86_64/mysql-community-server-minimal-5.6.37-2.el7.x86_64.rpm | ||
ARG PACKAGE_URL_SHELL="" | ||
|
||
RUN mkdir /docker-entrypoint-initdb.d | ||
# Install server | ||
RUN rpmkeys --import https://repo.mysql.com/RPM-GPG-KEY-mysql \ | ||
&& yum install -y $PACKAGE_URL $PACKAGE_URL_SHELL libpwquality \ | ||
&& yum clean all \ | ||
&& mkdir /docker-entrypoint-initdb.d | ||
|
||
VOLUME /var/lib/mysql | ||
|
||
COPY docker-entrypoint.sh /entrypoint.sh | ||
COPY healthcheck.sh /healthcheck.sh | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
HEALTHCHECK CMD /healthcheck.sh | ||
EXPOSE 3306 | ||
CMD ["mysqld"] | ||
|
Oops, something went wrong.