Skip to content

Commit b24a822

Browse files
authored
v1.4.1 (#16)
Minor updates * Adding generate-dockerfiles.sh * Using latest base images
1 parent 5b1f257 commit b24a822

File tree

6 files changed

+50
-4
lines changed

6 files changed

+50
-4
lines changed

12/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/alpine-s6:alpine3.15-3.2.0
1+
FROM bfren/alpine-s6:alpine3.15-3.2.2
22

33
ARG BF_IMAGE
44
ARG BF_VERSION

13/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/alpine-s6:alpine3.15-3.2.0
1+
FROM bfren/alpine-s6:alpine3.15-3.2.2
22

33
ARG BF_IMAGE
44
ARG BF_VERSION

14/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM bfren/alpine-s6:alpine3.15-3.2.0
1+
FROM bfren/alpine-s6:alpine3.15-3.2.2
22

33
ARG BF_IMAGE
44
ARG BF_VERSION

Dockerfile.esh

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
FROM bfren/alpine-s6:alpine3.15-<%= ${BASE_REVISION} %>
2+
3+
ARG BF_IMAGE
4+
ARG BF_VERSION
5+
6+
ENV \
7+
# set to "1" to compress backup sql files
8+
POSTGRESQL_BACKUP_COMPRESS_FILES="0" \
9+
# the number of days after which backups will be deleted
10+
POSTGRESQL_BACKUP_KEEP_FOR_DAYS="28"
11+
12+
EXPOSE 5432
13+
14+
COPY ./overlay /
15+
COPY ./<%= ${POSTGRESQL_MINOR} %>/POSTGRESQL_BUILD /tmp/VERSION
16+
17+
RUN bf-install
18+
19+
VOLUME [ "/data", "/backup" ]

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.0
1+
1.4.1

generate-dockerfiles.sh

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
#!/bin/bash
2+
3+
set -euo pipefail
4+
5+
docker pull bfren/alpine
6+
7+
BASE_REVISION="3.2.2"
8+
echo "Base: ${BASE_REVISION}"
9+
10+
POSTGRESQL_VERSIONS="12 13 14"
11+
for V in ${POSTGRESQL_VERSIONS} ; do
12+
13+
echo "PostgreSQL ${V}"
14+
15+
DOCKERFILE=$(docker run \
16+
-v ${PWD}:/ws \
17+
bfren/alpine esh \
18+
"/ws/Dockerfile.esh" \
19+
BASE_REVISION=${BASE_REVISION} \
20+
POSTGRESQL_MINOR=${V}
21+
)
22+
23+
echo "${DOCKERFILE}" > ./${V}/Dockerfile
24+
25+
done
26+
27+
echo "Done."

0 commit comments

Comments
 (0)