Skip to content

Commit 92bb1e1

Browse files
committed
Add rclone to the sidecar image, fixes #162
1 parent 7e3c23d commit 92bb1e1

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Dockerfile.sidecar

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,15 @@ RUN echo 'deb https://repo.percona.com/apt stretch main' > /etc/apt/sources.list
2626

2727
RUN apt-get update \
2828
&& apt-get install -y --no-install-recommends \
29-
percona-toolkit percona-xtrabackup-24 \
29+
percona-toolkit percona-xtrabackup-24 unzip \
3030
&& wget https://github.com/maxbube/mydumper/releases/download/v0.9.5/mydumper_0.9.5-2.stretch_amd64.deb \
3131
&& dpkg -i mydumper_0.9.5-2.stretch_amd64.deb \
32-
&& rm -rf mydumper_0.9.5-2.stretch_amd64.deb /var/lib/apt/lists/*
32+
&& rm -rf mydumper_0.9.5-2.stretch_amd64.deb /var/lib/apt/lists/* \
33+
&& wget https://downloads.rclone.org/rclone-current-linux-amd64.zip \
34+
&& unzip rclone-current-linux-amd64.zip \
35+
&& mv rclone-*-linux-amd64/rclone /usr/local/bin/ \
36+
&& rm -rf rclone-*-linux-amd64 rclone-current-linux-amd64.zip \
37+
&& chmod 755 /usr/local/bin/rclone
3338

3439
COPY ./hack/docker/sidecar-entrypoint.sh /usr/local/bin/sidecar-entrypoint.sh
3540
COPY --from=builder /go/src/github.com/presslabs/mysql-operator/mysql-operator-sidecar /usr/local/bin/mysql-operator-sidecar

0 commit comments

Comments
 (0)