Skip to content

Commit

Permalink
Fix Mongodb backup image build
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed May 12, 2024
1 parent acd9c79 commit ef5c107
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions images/mongodb-s3-backup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,14 @@ FROM ubuntu:22.04

WORKDIR /dump

RUN wget -qO- https://www.mongodb.org/static/pgp/server-7.0.asc | tee /etc/apt/trusted.gpg.d/server-7.0.asc \
&& echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list \
RUN apt update \
&& ln -fs /usr/share/zoneinfo/UTC /etc/localtime \
&& apt update \
&& apt-get install -y tzdata gnupg wget mongodb-mongosh curl unzip \
&& apt-get install -y tzdata gnupg wget curl unzip \
&& dpkg-reconfigure --frontend noninteractive tzdata \
&& wget -qO- https://www.mongodb.org/static/pgp/server-7.0.asc | tee /etc/apt/trusted.gpg.d/server-7.0.asc \
&& echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/7.0 multiverse" | tee /etc/apt/sources.list.d/mongodb-org-7.0.list \
&& apt update \
&& apt-get install -y mongodb-mongosh \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
&& ./aws/install \
Expand Down

0 comments on commit ef5c107

Please sign in to comment.