-
Notifications
You must be signed in to change notification settings - Fork 153
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixing Mysql-sidecar example docker file (#548)
- Loading branch information
Ilya Kislenko
committed
Jan 31, 2020
1 parent
411d484
commit d93e589
Showing
1 changed file
with
7 additions
and
2 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,4 +1,9 @@ | ||
ARG TOOLS_IMAGE | ||
FROM registry.access.redhat.com/ubi8/ubi:8.1 as builder | ||
RUN dnf install -y https://dev.mysql.com/get/mysql80-community-release-el8-1.noarch.rpm | ||
RUN dnf install -y mysql-community-client | ||
|
||
FROM $TOOLS_IMAGE | ||
RUN apk -v --update add --no-cache mysql-client && \ | ||
rm -f /var/cache/apk/* | ||
|
||
COPY --from=builder --chown=kanister:kanister /usr/lib64/mysql /usr/lib64/ | ||
COPY --from=builder --chown=kanister:kanister /usr/bin/mysql* /usr/bin/ |