forked from kartoza/docker-pg-backup
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
26 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
FROM kartoza/postgis:12.1 | ||
MAINTAINER [email protected] | ||
|
||
RUN apt-get -y update; apt-get -y --no-install-recommends install postgresql-client cron | ||
RUN touch /var/log/cron.log | ||
|
||
COPY backups-cron /backups-cron | ||
COPY backups.sh /backups.sh | ||
COPY restore.sh /restore.sh | ||
COPY start.sh /start.sh | ||
RUN chmod 0755 /*.sh | ||
|
||
ENTRYPOINT ["/bin/bash", "/start.sh"] | ||
CMD ["/docker-entrypoint.sh"] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
./build.sh | ||
|
||
docker build -t kartoza/pg-backup:12.0 -f Dockerfile.test . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters