Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v3.1.0 #95

Merged
merged 5 commits into from
Dec 9, 2023
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 .github/workflows/dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
fail-fast: false
matrix:
postgresql: [ "12", "13", "14", "15" ]
postgresql: [ "12", "13", "14", "15", "16" ]
runs-on: ubuntu-latest
steps:
-
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
postgresql: [ "12", "13", "14", "15" ]
postgresql: [ "12", "13", "14", "15", "16" ]
runs-on: ubuntu-latest
steps:
-
Expand Down
1 change: 1 addition & 0 deletions 12/ALPINE_EDITION
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.18
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.0.5
FROM bfren/alpine-s6:alpine3.18-5.1.0

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.18-5.0.5
FROM bfren/alpine-s6:alpine3.19-5.1.0

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.18-5.0.5
FROM bfren/alpine-s6:alpine3.19-5.1.0

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.18-5.0.5
FROM bfren/alpine-s6:alpine3.19-5.1.0

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

Expand Down
21 changes: 21 additions & 0 deletions 16/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM bfren/alpine-s6:alpine3.19-5.1.0

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

ARG BF_IMAGE
ARG BF_VERSION

EXPOSE 5432

COPY ./overlay /
COPY ./16/overlay /

ENV \
# set to "1" to compress backup sql files
BF_PG_BACKUP_COMPRESS_FILES="0" \
# the duration for which backups will be kept
BF_PG_BACKUP_KEEP_FOR="28day"

RUN bf-install

VOLUME [ "/backup", "/data" ]
1 change: 1 addition & 0 deletions 16/overlay/tmp/POSTGRESQL_BUILD
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.1-r0
1 change: 1 addition & 0 deletions 16/overlay/tmp/POSTGRESQL_MINOR
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
16.1
2 changes: 1 addition & 1 deletion Dockerfile.esh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM bfren/alpine-s6:alpine3.18-<%= ${BASE_VERSION} %>
FROM bfren/alpine-s6:alpine<%= ${ALPINE_EDITION} %>-<%= ${BASE_VERSION} %>

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.0.0
3.1.0
2 changes: 1 addition & 1 deletion VERSION_MINOR
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.0
3.1
11 changes: 9 additions & 2 deletions generate-dockerfiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,26 @@ set -euo pipefail

docker pull bfren/alpine

BASE_VERSION="5.0.5"
BASE_VERSION="5.1.0"
echo "Base: ${BASE_VERSION}"

POSTGRESQL_VERSIONS="12 13 14 15"
POSTGRESQL_VERSIONS="12 13 14 15 16"
for V in ${POSTGRESQL_VERSIONS} ; do

echo "PostgreSQL ${V}"
ALPINE_EDITION_FILE="${V}/ALPINE_EDITION"
if [ -f "${ALPINE_EDITION_FILE}" ] ; then
ALPINE_EDITION=`cat ${ALPINE_EDITION_FILE}`
else
ALPINE_EDITION="3.19"
fi

DOCKERFILE=$(docker run \
-v ${PWD}:/ws \
-e BF_DEBUG=0 \
bfren/alpine esh \
"/ws/Dockerfile.esh" \
ALPINE_EDITION=${ALPINE_EDITION} \
BASE_VERSION=${BASE_VERSION} \
POSTGRESQL_MAJOR=${V}
)
Expand Down
2 changes: 1 addition & 1 deletion run.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

IMAGE=`cat VERSION`
POSTGRESQL=${1:-15}
POSTGRESQL=${1:-16}

docker buildx build \
--load \
Expand Down