Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion 12/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM bfren/alpine-s6:alpine3.18-5.1.3
FROM bfren/alpine-s6:alpine3.18-5.1.4

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-postgresql"

Expand Down
2 changes: 1 addition & 1 deletion 12/overlay/tmp/POSTGRESQL_BUILD
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.17-r0
12.18-r0
2 changes: 1 addition & 1 deletion 12/overlay/tmp/POSTGRESQL_MINOR
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12.17
12.18
2 changes: 1 addition & 1 deletion 13/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM bfren/alpine-s6:alpine3.19-5.1.3
FROM bfren/alpine-s6:alpine3.19-5.1.4

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-postgresql"

Expand Down
2 changes: 1 addition & 1 deletion 13/overlay/tmp/POSTGRESQL_BUILD
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13.13-r0
13.14-r0
2 changes: 1 addition & 1 deletion 13/overlay/tmp/POSTGRESQL_MINOR
Original file line number Diff line number Diff line change
@@ -1 +1 @@
13.13
13.14
2 changes: 1 addition & 1 deletion 14/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM bfren/alpine-s6:alpine3.19-5.1.3
FROM bfren/alpine-s6:alpine3.19-5.1.4

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-postgresql"

Expand Down
2 changes: 1 addition & 1 deletion 14/overlay/tmp/POSTGRESQL_BUILD
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.10-r0
14.11-r0
2 changes: 1 addition & 1 deletion 14/overlay/tmp/POSTGRESQL_MINOR
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14.10
14.11
2 changes: 1 addition & 1 deletion 15/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM bfren/alpine-s6:alpine3.19-5.1.3
FROM bfren/alpine-s6:alpine3.19-5.1.4

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-postgresql"

Expand Down
2 changes: 1 addition & 1 deletion 15/overlay/tmp/POSTGRESQL_BUILD
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.5-r0
15.6-r0
2 changes: 1 addition & 1 deletion 15/overlay/tmp/POSTGRESQL_MINOR
Original file line number Diff line number Diff line change
@@ -1 +1 @@
15.5
15.6
2 changes: 1 addition & 1 deletion 16/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM bfren/alpine-s6:alpine3.19-5.1.3
FROM bfren/alpine-s6:alpine3.19-5.1.4

LABEL org.opencontainers.image.source="https://github.com/bfren/docker-postgresql"

Expand Down
2 changes: 1 addition & 1 deletion 16/overlay/tmp/POSTGRESQL_BUILD
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.1-r0
16.2-r0
2 changes: 1 addition & 1 deletion 16/overlay/tmp/POSTGRESQL_MINOR
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.1
16.2
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ See [For Backups](#for-backups) for configuration variables.

| Volume | Purpose |
| --------- | ------------------------------------------------------------------------------------------------- |
| `/data` | Data files. |
| `/backup` | Backup files (also used for export / import scripts - see [helper functions](#helper-functions)). |
| `/data` | Data files. |

## Environment Variables

Expand All @@ -51,8 +51,8 @@ See [For Backups](#for-backups) for configuration variables.
| --------------------- | ------ | ---------------------------------------------------------------------------------------------------------------- | --------- |
| `BF_PG_APPLICATION` | string | Application name - will be used as `BF_PG_DATABASE`, `BF_PG_PASSWORD` and `BF_PG_USERNAME` if they are not set. | *None* |
| `BF_PG_DATABASE` | string | Database name(s) - multiple databases can be separated by a comma. | *None* |
| `BF_PG_PASSWORD` | string | Application password. | *None* |
| `BF_PG_USERNAME` | string | Application username. | *None* |
| `BF_PG_PASSWORD` | string | Application password - required if `BF_PG_APPLICATION` is not | *None* |
| `BF_PG_USERNAME` | string | Application username - required if `BF_PG_APPLICATION` is not used. | *None* |

## Helper Functions

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.5
3.1.6
2 changes: 1 addition & 1 deletion generate-dockerfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -euo pipefail

docker pull bfren/alpine

BASE_VERSION="5.1.3"
BASE_VERSION="5.1.4"
echo "Base: ${BASE_VERSION}"

POSTGRESQL_VERSIONS="12 13 14 15 16"
Expand Down
4 changes: 2 additions & 2 deletions overlay/etc/nu/scripts/bf-postgresql/dump.nu
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ export def main [] {

# move files to backup directory
bf write debug $" .. moving files to ($backup_dir)" dump
mv $"($temp_dir)/*" $backup_dir
echo $"($temp_dir)/*" | mv $in $backup_dir

# delete temporary directory
bf write debug $" .. deleting ($temp_dir)" dump
rm -rf $temp_dir
bf del force $temp_dir

# cleanup old backup files
bf write debug " .. removing expired backup files" dump
Expand Down
4 changes: 2 additions & 2 deletions overlay/etc/nu/scripts/bf-postgresql/restore.nu
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export def main [] {
# delete data files
let data = bf env PG_DATA
bf write debug " .. deleting data files" restore
rm -rf $"($data)/*"
bf del force $"($data)/*"

# restart the PostgreSQL service
bf write debug " .. reinitialising cluster" restore
Expand All @@ -46,7 +46,7 @@ export def main [] {

# unset restoring variable and delete dump file
bf env unset $restoring
rm -f $dump_file.path
bf del force $dump_file.path

# if we get here there have been no errors
bf write ok "Done." restore
Expand Down