-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
b7866d6
commit ca64db4
Showing
1 changed file
with
20 additions
and
3 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,8 +1,25 @@ | ||
FROM restic/restic:0.14.0 | ||
|
||
RUN apk add --no-cache ca-certificates | ||
RUN apk add --no-cache postgresql-client mysql-client bash tar influxdb curl jq | ||
ARG UBUNTU_VERSION="22.04" | ||
ARG RESTIC_VERSION="0.14.0" | ||
|
||
FROM restic/restic:${RESTIC_VERSION} as restic | ||
|
||
FROM ubuntu:${UBUNTU_VERSION} | ||
|
||
ARG MINIO_VERSION="mc.RELEASE.2022-10-29T10-09-23Z" | ||
ARG AWS_CLI_VER="2.8.8" | ||
|
||
# Setting DEBIAN_FRONTEND=noninteractive causes tzdata to assume UTC, which is exactly what we want | ||
RUN export DEBIAN_FRONTEND=noninteractive && apt update && apt install -y --no-install-recommends ca-certificates postgresql-client-14 mariadb-client bash tar influxdb curl jq openssh-client unzip tzdata && rm -rf /var/lib/apt/lists/* | ||
|
||
# Download minio | ||
RUN curl https://dl.min.io/client/mc/release/linux-amd64/$MINIO_VERSION > /usr/bin/mc && chmod +x /usr/bin/mc | ||
|
||
# Copy restic into container | ||
COPY --from=restic /usr/bin/restic /usr/bin/restic | ||
|
||
# Download & Install AWS SDK | ||
WORKDIR /tmp | ||
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64-${AWS_CLI_VER}.zip" -o "awscliv2.zip" && unzip awscliv2.zip && ./aws/install && rm -rf aws awscliv2.zip | ||
|
||
ENTRYPOINT ["/bin/bash"] |