diff --git a/.devcontainer/backend/Dockerfile b/.devcontainer/backend/Dockerfile index 99cd66d6..662f53b0 100644 --- a/.devcontainer/backend/Dockerfile +++ b/.devcontainer/backend/Dockerfile @@ -56,4 +56,11 @@ https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \ tee /etc/apt/sources.list.d/hashicorp.list RUN apt update RUN apt-get install terraform -RUN terraform -install-autocomplete \ No newline at end of file +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 \ No newline at end of file diff --git a/backend/export/README.md b/backend/export/README.md index a98154fc..b5715ced 100644 --- a/backend/export/README.md +++ b/backend/export/README.md @@ -15,6 +15,20 @@ without modifying test code. ## ✅ 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: ``` bash