File tree Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Expand file tree Collapse file tree 3 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -37,3 +37,7 @@ COPY --from=builder /app/target/release/delta_update /usr/bin/del
37
37
COPY --from=builder /app/target/release/dump_json /usr/bin/dump_json
38
38
COPY --from=builder /app/target/release/fix_invalid_submissions /usr/bin/fix_invalid_submissions
39
39
COPY --from=builder /app/target/release/run_server /usr/bin/run_server
40
+
41
+
42
+ RUN apt-get update && apt-get install -y awscli postgresql-client
43
+ ADD ./scripts/sql-backup.sh /usr/bin/sql-backup.sh
Original file line number Diff line number Diff line change 1
1
#! /bin/sh
2
2
3
- psql ${DATABASE_URL } -c " \copy submissions TO './submissions.csv' WITH (FORMAT CSV, HEADER)"
3
+ psql ${SQL_URL } -c " \copy submissions TO './submissions.csv' WITH (FORMAT CSV, HEADER)"
4
4
gzip submissions.csv
5
5
aws s3 cp submissions.csv.gz s3://kenkoooo/submissions.csv.gz --acl public-read
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments