Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/computate-org/computate_postgres
https://github.com/computate-org/computate_postgres
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/computate-org/computate_postgres
- Owner: computate-org
- Created: 2020-12-18T16:04:50.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2023-01-17T17:53:11.000Z (about 2 years ago)
- Last Synced: 2024-11-05T15:38:45.392Z (3 months ago)
- Size: 33.2 KB
- Stars: 1
- Watchers: 3
- 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 [email protected]: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
```