Skip to content

Commit

Permalink
fix(s3): use env vars (#1037)
Browse files Browse the repository at this point in the history
* fix(s3): use env vars

* fix(s3): use env vars
  • Loading branch information
Julien Bouquillon authored Aug 3, 2023
1 parent ccb1d63 commit d0e157f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions s3-client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ RUN apt-get update && \
RUN groupadd -g 1001 ubuntu && useradd -rm -d /home/ubuntu -s /bin/bash -g ubuntu -G sudo -u 1001 ubuntu
ENV HOME=/home/ubuntu

# install AWS CLI
RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && \
unzip awscliv2.zip && \
./aws/install
Expand Down
2 changes: 1 addition & 1 deletion s3-client/dump-upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

set -ex

pg_dump -v -Fc --no-owner --no-acl "$DATABASE_URL" |
pg_dump -v -Fc --no-owner --no-acl |
gzip |
aws s3 cp - "${DESTINATION_PATH}/$(date +"%Y-%m-%dT%H:%M:%S%:z").psql.gz"

0 comments on commit d0e157f

Please sign in to comment.