Skip to content

Commit

Permalink
Retire postgresql 13 since it is not available in alpine repos anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
th0th committed Jun 18, 2024
1 parent 6f62131 commit 412add8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM alpine:3
WORKDIR /root

RUN apk update && \
apk add bash curl pigz postgresql13-client postgresql14-client postgresql15-client postgresql16-client rclone
apk add bash curl pigz postgresql14-client postgresql15-client postgresql16-client rclone

COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
| POSTGRES_PASSWORD || | Postgres server password |
| POSTGRES_PORT | | 5432 | Postgres server port |
| POSTGRES_USER | | postgres | Postgres server user |
| POSTGRES_VERSION | | 16 | Postgres server version (13, 14, 15 or 16) |
| POSTGRES_VERSION | | 16 | Postgres server version (14, 15 or 16) |
| WEBGAZER_HEARTBEAT_URL | | | [WebGazer Heartbeat Monitor](https://www.webgazer.io/services/cron-job-monitoring) URL |

### Running
Expand Down
2 changes: 1 addition & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ POSTGRES_USER="${POSTGRES_USER:-postgres}"
POSTGRES_VERSION="${POSTGRES_VERSION:-16}"

# validate environment variables
POSTGRES_VERSIONS=(13 14 15 16)
POSTGRES_VERSIONS=(14 15 16)

if [[ ! " ${POSTGRES_VERSIONS[*]} " =~ " ${POSTGRES_VERSION} " ]]; then
echo "error: POSTGRES_VERSION can be one of these: ${POSTGRES_VERSIONS[*]}"
Expand Down

0 comments on commit 412add8

Please sign in to comment.