-
-
Notifications
You must be signed in to change notification settings - Fork 276
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
6 changed files
with
61 additions
and
4 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,2 +1,4 @@ | ||
.git | ||
bin/* | ||
!bin/mysql-operator_linux_amd64 | ||
!bin/mysql-operator-sidecar_linux_amd64 |
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,8 @@ | ||
FROM scratch | ||
|
||
# set expiration time for dev images | ||
# https://support.coreos.com/hc/en-us/articles/115001384693-Tag-Expiration | ||
LABEL quay.expires-after=2d | ||
|
||
COPY ./bin/mysql-operator_linux_amd64 /mysql-operator | ||
ENTRYPOINT ["/mysql-operator"] |
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,32 @@ | ||
# Copy the mysql-operator-sidecar into it's own image | ||
FROM debian:stretch as sidecar | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
apt-transport-https ca-certificates wget \ | ||
gnupg1 dirmngr \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt-key adv --keyserver ha.pool.sks-keyservers.net --recv-keys 9334A25F8507EFA5 | ||
|
||
RUN echo 'deb https://repo.percona.com/apt stretch main' > /etc/apt/sources.list.d/percona.list | ||
|
||
RUN apt-get update \ | ||
&& apt-get install -y --no-install-recommends \ | ||
percona-toolkit percona-xtrabackup-24 unzip \ | ||
&& wget https://github.com/maxbube/mydumper/releases/download/v0.9.5/mydumper_0.9.5-2.stretch_amd64.deb \ | ||
&& dpkg -i mydumper_0.9.5-2.stretch_amd64.deb \ | ||
&& rm -rf mydumper_0.9.5-2.stretch_amd64.deb /var/lib/apt/lists/* \ | ||
&& wget https://downloads.rclone.org/rclone-current-linux-amd64.zip \ | ||
&& unzip rclone-current-linux-amd64.zip \ | ||
&& mv rclone-*-linux-amd64/rclone /usr/local/bin/ \ | ||
&& rm -rf rclone-*-linux-amd64 rclone-current-linux-amd64.zip \ | ||
&& chmod 755 /usr/local/bin/rclone | ||
|
||
# set expiration time for dev images | ||
# https://support.coreos.com/hc/en-us/articles/115001384693-Tag-Expiration | ||
LABEL quay.expires-after=2d | ||
|
||
COPY ./hack/docker/sidecar-entrypoint.sh /usr/local/bin/sidecar-entrypoint.sh | ||
COPY ./bin/mysql-operator-sidecar_linux_amd64 /usr/local/bin/mysql-operator-sidecar | ||
ENTRYPOINT ["/usr/local/bin/sidecar-entrypoint.sh"] |
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,9 @@ | ||
extraArgs: | ||
- --debug | ||
|
||
installCRDs: false | ||
|
||
orchestrator: | ||
topologyPassword: password1 | ||
antiAffinity: soft | ||
replicas: 1 |
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