-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
38 additions
and
9 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 |
---|---|---|
@@ -0,0 +1,23 @@ | ||
ARG MYSQL_VERSION | ||
|
||
FROM mysql:${MYSQL_VERSION}-debian | ||
# Make all apt-get commands non-interactive. Setting this as an ARG will apply to the entire | ||
# build phase, but not leak into the final image and run phase. | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
|
||
# MySQL 5.7 has been EOL'd and is no longer being built by the official mysql docker maintainers: | ||
# https://github.com/docker-library/mysql/pull/1019 | ||
# Copy the gpg key from the latest MySQL image. | ||
COPY --from=mysql:8.0-debian /etc/apt/keyrings/mysql.gpg /etc/apt/keyrings/mysql.gpg | ||
|
||
# Install the MySQL test package so that we can get test plugins. | ||
# https://github.com/docker-library/mysql/issues/1040 | ||
RUN set -eux \ | ||
# Install MySQL test package. | ||
&& apt-get update \ | ||
&& apt-get install --yes mysql-community-test | ||
|
||
# This is the final stage inwhich we copy the plugins from the test stage. Doing it this way allows | ||
# us to not have to install the test package in the final image since we only need the plugins. | ||
FROM mysql:${MYSQL_VERSION}-debian | ||
COPY --from=0 /usr/lib/mysql/plugin/ /usr/lib/mysql/plugin/ |
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
Binary file not shown.
Binary file not shown.