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

Install and configure pgbackrest on patroni cluster #3251

Merged
merged 70 commits into from
Nov 22, 2023
Merged
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
b759d11
Install pgbackrest and configure
conbrad Nov 15, 2023
e79ab01
Bump postgis
conbrad Nov 15, 2023
4428141
Try again
conbrad Nov 15, 2023
85b6288
Again
conbrad Nov 15, 2023
307e54b
Merge branch 'main' into task/patroni-pgbackrest
conbrad Nov 15, 2023
642b7bb
Point patroni to new image
conbrad Nov 15, 2023
e1e4ab8
Make object store docker args
conbrad Nov 15, 2023
08e7ab1
Remove required object store fields from build
conbrad Nov 15, 2023
109d55e
Try with build args
conbrad Nov 15, 2023
de4f016
Try with env variables
conbrad Nov 15, 2023
efe25d2
Move sudio
conbrad Nov 15, 2023
5661a46
Change perms on pgbackrest.conf
conbrad Nov 15, 2023
b2dd25a
Create a pgbackrest folder
conbrad Nov 15, 2023
9c2c9ac
Move configuration to command
conbrad Nov 16, 2023
8dc91bf
Try embedding in dockerfile
conbrad Nov 16, 2023
474cea1
New append command
conbrad Nov 16, 2023
5af0472
Change config location
conbrad Nov 16, 2023
08c3568
again
conbrad Nov 16, 2023
5493719
pgbackrest in init
conbrad Nov 16, 2023
c3ad5fa
set data path in init
conbrad Nov 16, 2023
1978249
Newlines
conbrad Nov 16, 2023
46ecc9a
Remove -e flag
conbrad Nov 16, 2023
e1f0d91
more db details
conbrad Nov 16, 2023
4847daa
try again
conbrad Nov 16, 2023
85895e1
fix
conbrad Nov 17, 2023
dd3c64f
Put it in if block
conbrad Nov 17, 2023
ca288e1
Delete command
conbrad Nov 17, 2023
c9c1c5c
commit it
conbrad Nov 17, 2023
70f6ff3
another
conbrad Nov 17, 2023
d0b997e
postgres user
conbrad Nov 17, 2023
bb58c71
Redundant commands
conbrad Nov 17, 2023
af7cc10
postgres user
conbrad Nov 17, 2023
a5d342c
ssh config
conbrad Nov 17, 2023
fdec4d8
fix user
conbrad Nov 17, 2023
de963d2
CMD not Entrypoint
conbrad Nov 17, 2023
f6601a5
try again
conbrad Nov 17, 2023
6440126
simplify
conbrad Nov 17, 2023
5b4046f
Undo user change
conbrad Nov 17, 2023
9d1d1f2
remove ports
conbrad Nov 17, 2023
418888c
No config
conbrad Nov 18, 2023
abd3814
Undo folder ops
conbrad Nov 18, 2023
8796b5b
no pgbackrest
conbrad Nov 18, 2023
c2b2e4f
Back to basics
conbrad Nov 18, 2023
171569b
Remove post init
conbrad Nov 18, 2023
4890a1e
Add back ppgbackrest
conbrad Nov 20, 2023
3386bbf
Add init_postgis back
conbrad Nov 20, 2023
eba5e9f
file ownership
conbrad Nov 20, 2023
6ab11b4
ssh stuff
conbrad Nov 20, 2023
f5887b5
Add start ssh script
conbrad Nov 20, 2023
513d665
Udno startssh
conbrad Nov 21, 2023
9e088ed
Try before
conbrad Nov 21, 2023
3853b67
Add back config
conbrad Nov 21, 2023
80e48ed
Without ssh
conbrad Nov 21, 2023
59ca670
Fix path
conbrad Nov 21, 2023
ee99f95
add pg path
conbrad Nov 21, 2023
908de14
newline
conbrad Nov 21, 2023
0be6326
init commands
conbrad Nov 21, 2023
9827049
Dyanmically configure cluster
conbrad Nov 21, 2023
55874e5
Quote name
conbrad Nov 21, 2023
101583c
Add name
conbrad Nov 21, 2023
e6d3c8e
Parameterize data dir
conbrad Nov 21, 2023
ed0606c
Update params
conbrad Nov 21, 2023
5a6cc78
bak
conbrad Nov 21, 2023
44fda8f
back
conbrad Nov 21, 2023
233655d
cleanup
conbrad Nov 21, 2023
913d5a3
Delete
conbrad Nov 21, 2023
0330eee
Merge branch 'main' into task/patroni-pgbackrest
conbrad Nov 22, 2023
e6764ca
Quote vars
conbrad Nov 22, 2023
7aae2c9
Update readme and tagged version
conbrad Nov 22, 2023
322cca4
Update stanza reference
conbrad Nov 22, 2023
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
Prev Previous commit
Next Next commit
Bump postgis
conbrad committed Nov 15, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
commit e79ab014480ba8b46c48b3d51336470120e4625c
2 changes: 1 addition & 1 deletion openshift/patroni-postgis/README.md
Original file line number Diff line number Diff line change
@@ -11,7 +11,7 @@ The WPS pipeline currently assumes the existence of an appropriately tagged patr

```bash
# Build a patroni imagestream:
oc -n e1e498-tools process -f openshift/build.yaml -p OBJECT_STORE_SERVER="server" -p OBJECT_STORE_BUCKET="bucket" -p OBJECT_STORE_USER_ID="uid" -p OBJECT_STORE_SECRET="sec" | oc -n e1e498-tools apply -f -
oc -n e1e498-tools process -f openshift/build.yaml -p OBJECT_STORE_SERVER="server" -p OBJECT_STORE_BUCKET="bucket" -p OBJECT_STORE_USER_ID="uid" -p OBJECT_STORE_SECRET="sec" -p GIT_REF="<branch>" | oc -n e1e498-tools apply -f -
# Tag the old imagestream so we can keep it around if we need to revert:
oc -n e1e498-tools tag patroni-postgres:v12 patroni-postgres:v12-<date deprecated, e.g. 20200826>
# Tag the new imagestream (it won't be used until the pods get re-created):
2 changes: 1 addition & 1 deletion openshift/patroni-postgis/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -3,7 +3,7 @@
FROM image-registry.openshift-image-registry.svc:5000/bcgov/patroni-postgres:12.4-latest

ENV POSTGIS_MAJOR 3
ENV POSTGIS_VERSION 3.3.1+dfsg-1.pgdg100+1
ENV POSTGIS_VERSION 3.4.0+dfsg-1.pgdg110+1

# Switch to root user for package installs
USER 0