https://github.com/computate-org/computate_postgres
https://github.com/computate-org/computate_postgres
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/computate-org/computate_postgres
- Owner: computate-org
- Created: 2020-12-18T16:04:50.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-01-17T17:53:11.000Z (over 3 years ago)
- Last Synced: 2025-04-09T10:23:12.532Z (about 1 year ago)
- Size: 33.2 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Install postgres
## Install the latest Python and setup a new Python virtualenv
```bash
pkcon install -y git
pkcon install -y python3-pip
pkcon install -y python3-virtualenv
virtualenv-3 ~/python
source ~/python/bin/activate
echo "source ~/python/bin/activate" | tee -a ~/.bashrc
```
## Install the latest Ansible
```bash
pip install setuptools_rust wheel
pip install --upgrade pip
pip install ansible selinux setools
```
## Install the PostgreSQL dependencies
```bash
pkcon install -y gcc
pkcon install -y make
pkcon install -y git
pkcon install -y bison
pkcon install -y flex
pkcon install -y readline-devel
pkcon install -y zlib-devel
pkcon install -y systemd-devel
pkcon install -y libxml2-devel
pkcon install -y libxslt-devel
pkcon install -y openssl-devel
pkcon install -y perl-core
pkcon install -y libselinux-devel
pkcon install -y container-selinux
```
## Install the postgres ansible role
### Create a directory for the ansible role.
```bash
install -d ~/.ansible/roles/computate.computate_postgres
```
### Clone the postgres ansible role.
```bash
git clone git@github.com:computate-org/computate_postgres.git ~/.ansible/roles/computate.computate_postgres
```
## Run the postgres ansible playbook to install the application locally
```bash
cd ~/.ansible/roles/computate.computate_postgres
ansible-playbook install.yml
```