Skip to content

Commit

Permalink
Set local time before installing tzdata
Browse files Browse the repository at this point in the history
  • Loading branch information
Pyrofab committed May 12, 2024
1 parent 9f54dd2 commit acd9c79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion images/mongodb-s3-backup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ 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 \
&& ln -fs /usr/share/zoneinfo/UTC /etc/localtime \
&& apt update \
&& apt-get install -y tzdata gnupg wget mongodb-mongosh curl unzip \
&& ln -fs /usr/share/zoneinfo/UTC /etc/localtime \
&& dpkg-reconfigure --frontend noninteractive tzdata \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
Expand Down
2 changes: 1 addition & 1 deletion images/postgresql-s3-backup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ FROM ubuntu:22.04
WORKDIR /dump

RUN apt update \
&& apt-get install -y tzdata postgresql-client curl unzip \
&& ln -fs /usr/share/zoneinfo/UTC /etc/localtime \
&& apt-get install -y tzdata postgresql-client curl unzip \
&& dpkg-reconfigure --frontend noninteractive tzdata \
&& curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" \
&& unzip awscliv2.zip \
Expand Down

0 comments on commit acd9c79

Please sign in to comment.