-
Notifications
You must be signed in to change notification settings - Fork 129
chore: move to individual systems, add a first go at rocky linux. #4371
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
Merged
Merged
Changes from 8 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
f98edd5
chore: move to individual systems, add a first go at rocky linux.
billy-the-fish 2e7d7fc
Merge branch 'latest' into add-rocky-linux
billy-the-fish 022b836
chore: try and make the ArchLinux note visible.
billy-the-fish f6f9e6b
chore: small changes
billy-the-fish d2e2cc3
chore: update and test.
billy-the-fish 5b16ee3
Merge branch 'latest' into add-rocky-linux
billy-the-fish c4f3f5b
Merge branch 'latest' into add-rocky-linux
billy-the-fish 5c4880e
Merge branch 'latest' into add-rocky-linux
billy-the-fish fe60b6c
chore: remove dev note.
billy-the-fish File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,6 @@ | ||
|
|
||
| ArchLinux packages are built by the community. | ||
|
|
||
| <Procedure> | ||
|
|
||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
|
|
||
| 1. **Update your local repository list** | ||
|
|
||
| ```bash | ||
| sudo apt update | ||
| ``` | ||
|
|
||
| 1. **Install TimescaleDB** | ||
|
|
||
| ```bash | ||
| sudo apt install timescaledb-2-postgresql-17 postgresql-client-17 | ||
| ``` | ||
|
|
||
| To install a specific $TIMESCALE_DB [release][releases-page], set the version. For example: | ||
|
|
||
| `sudo apt-get install timescaledb-2-postgresql-14='2.6.0*' timescaledb-2-loader-postgresql-14='2.6.0*'` | ||
|
|
||
| Older versions of $TIMESCALE_DB may not support all the OS versions listed on this page. | ||
|
|
||
| 1. **Tune your $PG instance for TimescaleDB** | ||
|
|
||
| ```bash | ||
| sudo timescaledb-tune | ||
| ``` | ||
|
|
||
| By default, this script is included with the `timescaledb-tools` package when you install TimescaleDB. Use the prompts to tune your development or production environment. For more information on manual configuration, see [Configuration][config]. If you have an issue, run `sudo apt install timescaledb-tools`. | ||
|
|
||
| 1. **Restart $PG** | ||
|
|
||
| ```bash | ||
| sudo systemctl restart postgresql | ||
| ``` | ||
|
|
||
| 1. **Log in to $PG as `postgres`** | ||
|
|
||
| ```bash | ||
| sudo -u postgres psql | ||
| ``` | ||
| You are in the psql shell. | ||
|
|
||
| 1. **Set the password for `postgres`** | ||
|
|
||
| ```bash | ||
| \password postgres | ||
| ``` | ||
|
|
||
| When you have set the password, type `\q` to exit psql. | ||
|
|
||
|
|
||
| [config]: /self-hosted/:currentVersion:/configuration/ | ||
| [releases-page]: https://packagecloud.io/timescale/timescaledb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
|
|
||
| 1. **Install the latest $PG packages** | ||
|
|
||
| ```bash | ||
| sudo apt install gnupg postgresql-common apt-transport-https lsb-release wget | ||
| ``` | ||
|
|
||
| 1. **Run the $PG package setup script** | ||
|
|
||
| ```bash | ||
| sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh | ||
| ``` | ||
|
|
||
| If you want to do some development on $PG, add the libraries: | ||
| ``` | ||
| sudo apt install postgresql-server-dev-17 | ||
| ``` | ||
|
|
||
|
|
||
|
|
||
| [config]: /self-hosted/:currentVersion:/configuration/ | ||
| [releases-page]: https://packagecloud.io/timescale/timescaledb | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| import SelfHostedDebianStart from "versionContent/_partials/_install-self-hosted-debian-based-start.mdx"; | ||
| import SelfHostedDebianEnd from "versionContent/_partials/_install-self-hosted-debian-based-end.mdx"; | ||
|
|
||
| <Procedure> | ||
|
|
||
| <SelfHostedDebianStart /> | ||
|
|
||
| 1. **Add the $TIMESCALE_DB package** | ||
|
|
||
| ```bash | ||
| echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/timescaledb.list | ||
| ``` | ||
|
|
||
| 1. **Install the $TIMESCALE_DB GPG key** | ||
|
|
||
| ```bash | ||
| wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg | ||
| ``` | ||
|
|
||
| <SelfHostedDebianEnd /> | ||
|
|
||
| </Procedure> | ||
|
|
||
|
|
||
| [config]: /self-hosted/:currentVersion:/configuration/ | ||
| [releases-page]: https://packagecloud.io/timescale/timescaledb |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,32 @@ | ||
| import SelfHostedRedhatXPlatform from "versionContent/_partials/_install-self-hosted-redhat-x-platform.mdx"; | ||
|
|
||
| <Procedure> | ||
|
|
||
| 1. **Install the latest $PG packages** | ||
|
|
||
| ```bash | ||
| sudo yum install https://download.postgresql.org/pub/repos/yum/reporpms/F-$(rpm -E %{fedora})-x86_64/pgdg-fedora-repo-latest.noarch.rpm | ||
| ``` | ||
|
|
||
| 1. **Add the $TIMESCALE_DB repository** | ||
|
|
||
| ```bash | ||
| sudo tee /etc/yum.repos.d/timescale_timescaledb.repo <<EOL | ||
| [timescale_timescaledb] | ||
| name=timescale_timescaledb | ||
| baseurl=https://packagecloud.io/timescale/timescaledb/el/9/\$basearch | ||
| repo_gpgcheck=1 | ||
| gpgcheck=0 | ||
| enabled=1 | ||
| gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey | ||
| sslverify=1 | ||
| sslcacert=/etc/pki/tls/certs/ca-bundle.crt | ||
| metadata_expire=300 | ||
| EOL | ||
| ``` | ||
|
|
||
| <SelfHostedRedhatXPlatform /> | ||
|
|
||
| </Procedure> | ||
|
|
||
| [config]: /self-hosted/:currentVersion:/configuration/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,48 @@ | ||
|
|
||
| 1. **Install TimescaleDB** | ||
|
|
||
| To avoid errors, **do not** install $TDB_APACHE and $TDB_COMMUNITY at the same time. | ||
|
|
||
| ```bash | ||
| sudo dnf install -y postgresql16-server postgresql16-contrib timescaledb-2-postgresql-16 | ||
| ``` | ||
|
|
||
| 1. **Initialize the $PG instance** | ||
|
|
||
| ```bash | ||
| sudo /usr/pgsql-16/bin/postgresql-16-setup initdb | ||
| ``` | ||
|
|
||
| 1. **Tune your $PG instance for TimescaleDB** | ||
|
|
||
| ```bash | ||
| sudo timescaledb-tune --pg-config=/usr/pgsql-16/bin/pg_config | ||
| ``` | ||
|
|
||
| This script is included with the `timescaledb-tools` package when you install TimescaleDB. | ||
| For more information, see [configuration][config]. | ||
|
|
||
| 1. **Enable and start $PG** | ||
|
|
||
| ```bash | ||
| sudo systemctl enable postgresql-16 | ||
| sudo systemctl start postgresql-16 | ||
| ``` | ||
|
|
||
| 1. **Log in to $PG as `postgres`** | ||
|
|
||
| ```bash | ||
| sudo -u postgres psql | ||
| ``` | ||
| You are now in the psql shell. | ||
|
|
||
| 1. **Set the password for `postgres`** | ||
|
|
||
| ```bash | ||
| \password postgres | ||
| ``` | ||
|
|
||
| When you have set the password, type `\q` to exit psql. | ||
|
|
||
|
|
||
| [config]: /self-hosted/:currentVersion:/configuration/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,65 @@ | ||
|
|
||
| 1. **Update your local repository list** | ||
|
|
||
| ```bash | ||
| sudo yum update | ||
| ``` | ||
|
|
||
| 1. **Install TimescaleDB** | ||
|
|
||
| To avoid errors, **do not** install $TDB_APACHE and $TDB_COMMUNITY at the same time. | ||
|
|
||
| ```bash | ||
| sudo yum install timescaledb-2-postgresql-17 postgresql17 | ||
| ``` | ||
|
|
||
| <!-- hack until we have bandwidth to rewrite this linting rule --> | ||
|
|
||
| <!-- markdownlint-disable TS007 --> | ||
| <Highlight type="note"> | ||
| On Red Hat Enterprise Linux 8 and later, disable the built-in $PG module: | ||
|
|
||
| `sudo dnf -qy module disable postgresql` | ||
| </Highlight> | ||
|
|
||
| <!-- markdownlint-enable TS007 --> | ||
|
|
||
| 1. **Initialize the $PG instance** | ||
|
|
||
| ```bash | ||
| sudo /usr/pgsql-17/bin/postgresql-17-setup initdb | ||
| ``` | ||
|
|
||
| 1. **Tune your $PG instance for TimescaleDB** | ||
|
|
||
| ```bash | ||
| sudo timescaledb-tune --pg-config=/usr/pgsql-17/bin/pg_config | ||
| ``` | ||
|
|
||
| This script is included with the `timescaledb-tools` package when you install TimescaleDB. | ||
| For more information, see [configuration][config]. | ||
|
|
||
| 1. **Enable and start $PG** | ||
|
|
||
| ```bash | ||
| sudo systemctl enable postgresql-17 | ||
| sudo systemctl start postgresql-17 | ||
| ``` | ||
|
|
||
| 1. **Log in to $PG as `postgres`** | ||
|
|
||
| ```bash | ||
| sudo -u postgres psql | ||
| ``` | ||
| You are now in the psql shell. | ||
|
|
||
| 1. **Set the password for `postgres`** | ||
|
|
||
| ```bash | ||
| \password postgres | ||
| ``` | ||
|
|
||
| When you have set the password, type `\q` to exit psql. | ||
|
|
||
|
|
||
| [config]: /self-hosted/:currentVersion:/configuration/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
|
|
||
| import SelfHostedRedhatXPlatform from "versionContent/_partials/_install-self-hosted-redhat-x-platform.mdx"; | ||
|
|
||
| <Procedure> | ||
|
|
||
| 1. **Install the latest $PG packages** | ||
|
|
||
| ```bash | ||
| sudo yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-$(rpm -E %{rhel})-x86_64/pgdg-redhat-repo-latest.noarch.rpm | ||
| ``` | ||
|
|
||
| 1. **Add the $TIMESCALE_DB repository** | ||
|
|
||
| ```bash | ||
| sudo tee /etc/yum.repos.d/timescale_timescaledb.repo <<EOL | ||
| [timescale_timescaledb] | ||
| name=timescale_timescaledb | ||
| baseurl=https://packagecloud.io/timescale/timescaledb/el/$(rpm -E %{rhel})/\$basearch | ||
| repo_gpgcheck=1 | ||
| gpgcheck=0 | ||
| enabled=1 | ||
| gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey | ||
| sslverify=1 | ||
| sslcacert=/etc/pki/tls/certs/ca-bundle.crt | ||
| metadata_expire=300 | ||
| EOL | ||
| ``` | ||
|
|
||
| <SelfHostedRedhatXPlatform /> | ||
|
|
||
|
|
||
| </Procedure> | ||
|
|
||
| [config]: /self-hosted/:currentVersion:/configuration/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,51 @@ | ||
|
|
||
| import SelfHostedRocky from "versionContent/_partials/_install-self-hosted-redhat-rocky.mdx"; | ||
|
|
||
| $COMPANY supports Rocky Linux 8 and 9 on amd64 only. | ||
|
|
||
| <Procedure> | ||
|
|
||
| 1. **Update your local repository list** | ||
|
|
||
| ```bash | ||
| sudo dnf update -y | ||
| sudo dnf install -y epel-release | ||
| ``` | ||
|
|
||
| 1. **Install the latest $PG packages** | ||
|
|
||
| ```bash | ||
| sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm | ||
| ``` | ||
|
|
||
| 1. **Add the $TIMESCALE_DB repository** | ||
|
|
||
| ```bash | ||
| sudo tee /etc/yum.repos.d/timescale_timescaledb.repo <<EOL | ||
| [timescale_timescaledb] | ||
| name=timescale_timescaledb | ||
| baseurl=https://packagecloud.io/timescale/timescaledb/el/9/\$basearch | ||
| repo_gpgcheck=1 | ||
| gpgcheck=0 | ||
| enabled=1 | ||
| gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey | ||
| sslverify=1 | ||
| sslcacert=/etc/pki/tls/certs/ca-bundle.crt | ||
| metadata_expire=300 | ||
| EOL | ||
| ``` | ||
|
|
||
| 1. **Disable the built-in PostgreSQL module** | ||
|
|
||
| This is for Rocky Linux 9 only. | ||
|
|
||
| ```bash | ||
| sudo dnf module disable postgresql -y | ||
| ``` | ||
|
|
||
| <SelfHostedRocky /> | ||
|
|
||
|
|
||
| </Procedure> | ||
|
|
||
| [config]: /self-hosted/:currentVersion:/configuration/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| import SelfHostedDebianStart from "versionContent/_partials/_install-self-hosted-debian-based-start.mdx"; | ||
| import SelfHostedDebianEnd from "versionContent/_partials/_install-self-hosted-debian-based-end.mdx"; | ||
|
|
||
| <Procedure> | ||
|
|
||
| <SelfHostedDebianStart /> | ||
|
|
||
| ```bash | ||
| echo "deb https://packagecloud.io/timescale/timescaledb/ubuntu/ $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/timescaledb.list | ||
| ``` | ||
|
|
||
| 1. **Install the $TIMESCALE_DB GPG key** | ||
|
|
||
| ```bash | ||
| wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg | ||
| ``` | ||
|
|
||
| For Ubuntu 21.10 and earlier use the following command: | ||
|
|
||
| `wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo apt-key add -` | ||
|
|
||
| <SelfHostedDebianEnd /> | ||
|
|
||
|
|
||
| </Procedure> | ||
|
|
||
|
|
||
| [config]: /self-hosted/:currentVersion:/configuration/ | ||
| [releases-page]: https://packagecloud.io/timescale/timescaledb |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.