Skip to content

Commit

Permalink
Merge pull request #2 from Leen15/support-pg-14
Browse files Browse the repository at this point in the history
Add support for PostgreSQL 14
  • Loading branch information
arizz96 committed Oct 30, 2022
2 parents d200944 + e51f270 commit 20765d0
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 13 deletions.
25 changes: 13 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,25 @@
FROM ruby:2.7-slim

ARG CH_version=19.3.4
ARG CH_VERSION=19.3.4
ARG PG_VERSION=14

RUN apt-get update -y && \
RUN apt-get update && \
apt-get install -y \
wget htop lbzip2 gnupg2 build-essential \
libxml2-dev libxslt-dev liblzma-dev zlib1g-dev patch libpq5 cron \
locales tzdata && \
libxml2-dev libxslt-dev liblzma-dev zlib1g-dev \
patch libpq5 cron locales tzdata && \
echo "deb http://repo.yandex.ru/clickhouse/deb/stable/ main/" > /etc/apt/sources.list.d/clickhouse.list && \
apt-key adv --keyserver keyserver.ubuntu.com --recv E0C56BD4 && \
echo "deb http://apt.postgresql.org/pub/repos/apt/ stretch-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
echo "deb http://apt.postgresql.org/pub/repos/apt/ bullseye-pgdg main" > /etc/apt/sources.list.d/pgdg.list && \
wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | apt-key add - && \
apt-get update -y && \
apt-get update && \
apt-get install -y \
postgresql-client-12 \
postgresql-client-$PG_VERSION \
mariadb-client \
clickhouse-client=$CH_version \
clickhouse-common-static=$CH_version \
&& rm -rf /var/lib/apt/lists/* /var/cache/debconf && apt-get clean

clickhouse-client=$CH_VERSION \
clickhouse-common-static=$CH_VERSION && \
rm -rf /var/lib/apt/lists/* /var/cache/debconf && \
apt-get clean

# Create workdir
RUN mkdir /backup
Expand All @@ -43,4 +44,4 @@ ADD crontab /etc/cron.d/backup-cron
RUN chmod 0644 /etc/cron.d/backup-cron

# Run the command on container startup
ENTRYPOINT /backup/run_cron.sh
ENTRYPOINT /backup/run_cron.sh
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ With a valid `AWS_KEEP_FOR_DAYS` backups older than that days are deleted automa
It also have a `BACKUP_PRIORITY` params for set the backup priority with ionice and nice values.

At the moment, it supports:
- PostgreSQL (pg_dump, versions 9.6 -> 12)
- PostgreSQL (pg_dump, versions <= 14)
- MySQL (mysqldump, versions 5.7+ )
- ClickHouse (versions 19+)

Expand Down

0 comments on commit 20765d0

Please sign in to comment.