Skip to content

Commit

Permalink
Retire the version 12 and add 16
Browse files Browse the repository at this point in the history
  • Loading branch information
th0th committed Jan 14, 2024
1 parent 21d6fab commit 173eb73
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 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 postgresql12-client postgresql13-client postgresql14-client postgresql15-client rclone
apk add bash curl pigz postgresql13-client 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 | | 15 | Postgres server version (12, 13, 14 or 15) |
| POSTGRES_VERSION | | 16 | Postgres server version (13, 14, 15 or 16) |
| WEBGAZER_PULSE_URL | | | [WebGazer Pulse](https://www.webgazer.io/pulse) URL |

### Running
Expand Down
4 changes: 2 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ AWS_S3_STORAGE_CLASS="${AWS_S3_STORAGE_CLASS:-STANDARD_IA}"
POSTGRES_HOST="${POSTGRES_HOST:-postgres}"
POSTGRES_PORT="${POSTGRES_PORT:-5432}"
POSTGRES_USER="${POSTGRES_USER:-postgres}"
POSTGRES_VERSION="${POSTGRES_VERSION:-15}"
POSTGRES_VERSION="${POSTGRES_VERSION:-16}"

# validate environment variables
POSTGRES_VERSIONS=(12 13 14 15)
POSTGRES_VERSIONS=(13 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 173eb73

Please sign in to comment.