Skip to content

Commit

Permalink
feat: add rclone mover to volsync
Browse files Browse the repository at this point in the history
Signed-off-by: Devin Buhl <devin@buhl.casa>
  • Loading branch information
onedr0p committed Nov 18, 2023
1 parent d713a33 commit f6c2078
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions apps/volsync/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ RUN \
&& go install -a -ldflags "-X=main.volsyncVersion=v${VERSION}" github.com/backube/volsync@v${VERSION} \
&& upx /go/bin/volsync

FROM docker.io/rclone/rclone:1.64.2 as rclone
FROM docker.io/restic/restic:0.16.2 as restic

FROM public.ecr.aws/docker/library/alpine:3.18
Expand All @@ -27,18 +28,23 @@ ARG CHANNEL

RUN \
apk add --no-cache \
acl \
bash \
ca-certificates \
curl \
tzdata \
&& \
curl -fsSL "https://github.com/backube/volsync/archive/refs/tags/v${VERSION}.tar.gz" \
| tar xzf - -C /tmp --strip-components=1 \
&& mkdir -p /mover-rclone \
&& cp /tmp/mover-rclone/active.sh /mover-rclone/ \
&& chmod a+rx /mover-rclone/*.sh \
&& mkdir -p /mover-restic \
&& cp /tmp/mover-restic/entry.sh /mover-restic/ \
&& chmod a+rx /mover-restic/*.sh \
&& rm -rf /tmp/*

COPY --from=rclone /usr/local/bin/rclone /usr/local/bin/rclone
COPY --from=restic /usr/bin/restic /usr/local/bin/restic
COPY --from=builder /go/bin/volsync /manager

Expand Down

0 comments on commit f6c2078

Please sign in to comment.