Skip to content

Commit

Permalink
v3.1.1 (#96)
Browse files Browse the repository at this point in the history
Minor updates
* Using latest base images
* Using nu mktemp
  • Loading branch information
bfren authored Dec 22, 2023
1 parent 497aacc commit aaa57f2
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 18 deletions.
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.0
FROM bfren/alpine-s6:alpine3.18-5.1.1

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

Expand Down
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.0
FROM bfren/alpine-s6:alpine3.19-5.1.1

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

Expand Down
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.0
FROM bfren/alpine-s6:alpine3.19-5.1.1

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

Expand Down
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.0
FROM bfren/alpine-s6:alpine3.19-5.1.1

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

Expand Down
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.0
FROM bfren/alpine-s6:alpine3.19-5.1.1

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

Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.0
3.1.1
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.0"
BASE_VERSION="5.1.1"
echo "Base: ${BASE_VERSION}"

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

# create backup directories
let backup_dir = create_backup_dir
let temp_dir = create_temp_dir
let temp_dir = bf fs make_temp_dir

# dump cluster and save to dump file
let dump_file = $"($temp_dir)/(bf env PG_DUMP_BASENAME).sql"
Expand Down Expand Up @@ -62,13 +62,3 @@ def create_backup_dir [] {
if ($dir | bf fs is_not_dir) { bf write error "Unable to create backup directory." dump/create_backup_dir }
$dir
}

# Create a temporary directory
def create_temp_dir [] {
# create temporary directory
let dir = { ^mktemp -d -t backup.XXXXXX } | bf handle dump/create_temp_dir

# return if directory exists
if ($dir | bf fs is_not_dir) { bf write error "Unable to create temporary directory." dump/create_temp_dir }
$dir
}

0 comments on commit aaa57f2

Please sign in to comment.