-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/metal-stack/backup-restor…
…e-sidecar into meilisearch-support
- Loading branch information
Showing
24 changed files
with
184 additions
and
364 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
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,29 +1,12 @@ | ||
FROM golang:1.21 as builder | ||
WORKDIR /work | ||
COPY .git .git | ||
COPY api api | ||
COPY cmd cmd | ||
COPY go.mod . | ||
COPY go.sum . | ||
COPY Makefile . | ||
RUN make | ||
|
||
# TODO: remove tini in a future release, not required anymore since pre- and post-exec-cmd flags | ||
FROM krallin/ubuntu-tini as ubuntu-tini | ||
|
||
# rethinkdb backup/restore requires the python client library | ||
# let's make small binaries of these commands in order not to blow up the image size | ||
FROM rethinkdb:2.4.1 as rethinkdb-python-client-builder | ||
WORKDIR /work | ||
RUN apt update && apt install -y python3-pip | ||
RUN pip3 install pyinstaller==4.3.0 rethinkdb | ||
COPY build/rethinkdb-dump.spec rethinkdb-dump.spec | ||
COPY build/rethinkdb-restore.spec rethinkdb-restore.spec | ||
RUN pyinstaller rethinkdb-dump.spec \ | ||
&& pyinstaller rethinkdb-restore.spec | ||
FROM ghcr.io/metal-stack/rethinkdb-backup-tools-build:v2.4.1 as rethinkdb-backup-tools | ||
|
||
FROM alpine:3.18 | ||
# TODO: remove tini in a future release, not required anymore since pre- and post-exec-cmd flags | ||
RUN apk add --no-cache tini ca-certificates | ||
COPY --from=builder /work/bin/backup-restore-sidecar /backup-restore-sidecar | ||
COPY bin/backup-restore-sidecar /backup-restore-sidecar | ||
COPY --from=ubuntu-tini /usr/local/bin/tini-static /ubuntu/tini | ||
COPY --from=rethinkdb-python-client-builder /work/dist/rethinkdb-dump /work/dist/rethinkdb-restore /rethinkdb/ | ||
COPY --from=rethinkdb-backup-tools /rethinkdb-dump /rethinkdb-restore /rethinkdb/ | ||
CMD ["/backup-restore-sidecar"] |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.