added postgres to docker & added to readme

This commit is contained in:
Khalim Conn-Kowlessar 2026-02-27 18:58:59 +00:00
parent 551e7beb74
commit 8db3d29850
2 changed files with 22 additions and 1 deletions

View file

@ -56,4 +56,11 @@ https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
tee /etc/apt/sources.list.d/hashicorp.list tee /etc/apt/sources.list.d/hashicorp.list
RUN apt update RUN apt update
RUN apt-get install terraform RUN apt-get install terraform
RUN terraform -install-autocomplete RUN terraform -install-autocomplete
# Install postgres
RUN apt install -y wget gnupg2 lsb-release
RUN echo "deb http://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
RUN wget -qO - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
RUN apt update
RUN apt install -y postgresql-14

View file

@ -15,6 +15,20 @@ without modifying test code.
## ✅ Prerequisites ## ✅ Prerequisites
### Devcontainer
Postgres install is included in the devcontainer, so no additional setup is needed.
Running
```bash
make test
```
Will instigate the test suite, which will automatically start a temporary PostgreSQL instance.
### Local MacOS
1. Install PostgreSQL via Homebrew: 1. Install PostgreSQL via Homebrew:
``` bash ``` bash