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

Add pgBackRest v2.53. #48

Merged
merged 1 commit into from
Jul 28, 2024
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
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
pgbackrest_version: ["2.49", "2.50", "2.51", "2.52", "2.52.1"]
pgbackrest_version: ["2.50", "2.51", "2.52", "2.52.1", "2.53"]
env:
latest_version: "2.52.1"
latest_version: "2.53"
download_url: "https://github.com/pgbackrest/pgbackrest/archive/release"
steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
BACKREST_VERSIONS = 2.49 2.50 2.51 2.52 2.52.1
TAG?=2.52.1
BACKREST_VERSIONS = 2.49 2.50 2.51 2.52 2.52.1 2.53
TAG?=2.53
BACKREST_DOWNLOAD_URL = https://github.com/pgbackrest/pgbackrest/archive/release
BACKREST_GPDB_VERSIONS = 2.47_arenadata4 2.50_arenadata4 2.52_arenadata4
TAG_GPDB?=2.52_arenadata4
Expand Down
32 changes: 16 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@ The repository contains information for the last 5 releases of pgBackRest. If ne

Supported pgBackRest version tags:

* `2.52.1`, `latest`
* `2.53`, `latest`
* `2.53-alpine`
* `2.52.1`
* `2.52.1-alpine`
* `2.52`
* `2.52-alpine`
* `2.51`
* `2.51-alpine`
* `2.50`
* `2.50-alpine`
* `2.49`
* `2.49-alpine`


The repository also contains information for releases of pgBackRest fork with Greenplum support (see [pgbackrest/pull/1833](https://github.com/pgbackrest/pgbackrest/pull/1833)). Details - [build with Greenplum support](#build-with-greenplum-support).
Expand Down Expand Up @@ -84,10 +84,10 @@ docker run --rm pgbackrest:51 pgbackrest help
### Injecting inside

```bash
docker run --rm -it pgbackrest:2.52.1 bash
docker run --rm -it pgbackrest:2.53 bash

pgbackrest@cac1f58b56f2:/$ pgbackrest version
pgBackRest 2.52.1
pgBackRest 2.53
```

### Example for Dedicated Repository Host
Expand All @@ -103,7 +103,7 @@ docker run --rm \
-v ~/.ssh/id_rsa:/home/pgbackrest/.ssh/id_rsa \
-v /etc/pgbackrest:/etc/pgbackrest \
-v /var/lib/pgbackrest:/var/lib/pgbackrest \
pgbackrest:2.52.1 \
pgbackrest:2.53 \
pgbackrest backup --stanza demo --type full --log-level-console info
```

Expand All @@ -130,7 +130,7 @@ docker run --rm \
-v /etc/pgbackrest:/etc/pgbackrest \
-v /var/lib/pgbackrest:/var/lib/pgbackrest \
-v /tmp/pgbackrest:/tmp/pgbackrest \
pgbackrest:2.52.1 \
pgbackrest:2.53 \
pgbackrest backup --stanza demo --type full --log-level-console info
```

Expand Down Expand Up @@ -166,7 +166,7 @@ docker run -d \
-v /var/lib/pgbackrest:/var/lib/pgbackrest \
-p 8432:8432 \
--name backrest_server \
pgbackrest:2.52.1
pgbackrest:2.53
```

##### Run container with TLS server in background for pgBackRest execution over TLS
Expand All @@ -178,7 +178,7 @@ docker run --rm \
-e BACKREST_HOST_TYPE=tls \
-v /etc/pgbackrest:/etc/pgbackrest \
-v /var/lib/pgbackrest:/var/lib/pgbackrest \
pgbackrest:2.52.1 \
pgbackrest:2.53 \
pgbackrest backup --stanza demo --type full --log-level-console info
```

Expand All @@ -197,7 +197,7 @@ docker run --rm \
-v /var/lib/postgresql/12/main:/var/lib/postgresql/12/main \
-v /var/lib/pgbackrest:/var/lib/pgbackrest \
-v /var/run/postgresql/.s.PGSQL.5432:/var/run/postgresql/.s.PGSQL.5432 \
pgbackrest:2.52.1 \
pgbackrest:2.53 \
pgbackrest backup --stanza demo --type full --log-level-console info
```

Expand All @@ -217,7 +217,7 @@ docker run -d \
-v /var/lib/pgbackrest:/var/lib/pgbackrest \
-p 8432:8432 \
--name backrest_server \
pgbackrest:2.52.1
pgbackrest:2.53
```

Performing a backup:
Expand All @@ -230,28 +230,28 @@ docker run --rm \
-v /etc/pgbackrest/pgbackrest.conf:/etc/pgbackrest/pgbackrest.conf \
-v /etc/pgbackrest/cert:/etc/pgbackrest/cert \
-v /var/lib/pgbackrest:/var/lib/pgbackrest \
pgbackrest:2.52.1 \
pgbackrest:2.53 \
pgbackrest backup --stanza demo --type full --log-level-console info
```

## Build

```bash
make build_version TAG=2.52.1
make build_version TAG=2.53
```

```bash
make build_version_alpine TAG=2.52.1
make build_version_alpine TAG=2.53
```

or

```bash
docker build -f Dockerfile --build-arg BACKREST_VERSION=2.52.1 --build-arg BACKREST_COMPLETION_VERSION=v0.9 -t pgbackrest:2.52.1 .
docker build -f Dockerfile --build-arg BACKREST_VERSION=2.53 --build-arg BACKREST_COMPLETION_VERSION=v0.9 -t pgbackrest:2.53 .
```

```bash
docker build -f Dockerfile.alpine --build-arg BACKREST_VERSION=2.52.1 --build-arg BACKREST_COMPLETION_VERSION=v0.9 -t pgbackrest:2.52.1-alpine .
docker build -f Dockerfile.alpine --build-arg BACKREST_VERSION=2.53 --build-arg BACKREST_COMPLETION_VERSION=v0.9 -t pgbackrest:2.53-alpine .
```

## Build with Greenplum support
Expand Down
2 changes: 1 addition & 1 deletion e2e_tests/.env
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
TAG=2.52.1
TAG=2.53
PG_VERSION=16
IMAGE_TAG_MINIO=RELEASE.2023-09-07T02-05-02Z
IMAGE_TAG_MINIO_MC=RELEASE.2023-09-07T22-48-55Z
Expand Down
2 changes: 1 addition & 1 deletion e2e_tests/conf/pg/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BACKREST_VERSION="2.52.1"
ARG BACKREST_VERSION="2.53"
ARG CONTAINER_TYPE="ssh"
ARG PG_VERSION="16"

Expand Down
2 changes: 1 addition & 1 deletion e2e_tests/conf/sftp/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG BACKREST_VERSION="2.52.1"
ARG BACKREST_VERSION="2.53"

FROM pgbackrest:${BACKREST_VERSION}
RUN apt-get update -y \
Expand Down
Loading