Commit 1e4673e
committed
feat: add rpm to goreleaser build
Adds an RPM output to our goreleaser build.
To create a test build of the RPM, run:
```sh
goreleaser-test-release
```
This will create a `dist` directory with release artifacts, including
RPMs for both amd64 and arm64.
To install and use the RPM:
```sh
sudo su -
dnf install -y epel-release dnf
dnf config-manager --set-enabled crb
dnf update -y --allowerasing
dnf install -y https://dnf.pgedge.com/reporpm/pgedge-release-latest.noarch.rpm
dnf install -y \
pgedge-postgresql18 \
pgedge-spock50_18 \
pgedge-snowflake_18 \
pgedge-lolor_18 \
pgedge-postgresql18-contrib \
pgedge-pgbackrest \
pgedge-python3-psycopg2 \
python3-pip
pip install 'patroni[etcd,jsonlogger]==4.1.0'
rpm -i <path to rpm file>
systemctl start pgedge-control-plane.service
```
From there, you can interact with it as normal, e.g.:
```sh
curl http://localhost:3000/v1/cluster/init
```
Keep in mind that the host ID will default to the machine's short
hostname.
To tail the control-plane logs, do:
```
journalctl -u pgedge-control-plane.service --follow
```
PLAT-4591 parent d41571c commit 1e4673e
3 files changed
Lines changed: 38 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
29 | 47 | | |
30 | 48 | | |
31 | 49 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
0 commit comments