Skip to content

Commit

Permalink
Allow for custom cmd for backup server for k8 cronjob
Browse files Browse the repository at this point in the history
  • Loading branch information
Pandoks committed Dec 30, 2024
1 parent e970391 commit 4f78455
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions packages/core/src/database/images/backup/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ RUN chmod +x /usr/local/bin/entrypoint.sh
USER pgbackrest

ENTRYPOINT [ "/usr/local/bin/entrypoint.sh" ]

CMD [ "pgbackrest", "server", "--config=/etc/pgbackrest/pgbackrest.conf" ]
2 changes: 1 addition & 1 deletion packages/core/src/database/images/backup/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

/usr/bin/setup_backups.sh

pgbackrest server --config=/etc/pgbackrest/pgbackrest.conf
exec $@

0 comments on commit 4f78455

Please sign in to comment.