Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Adds `postgresql` and `postgresql-devel` to image `ov` (#4664)

Vivek Khatrie3a45d6cc2f0
diff --git a/docker/dev_env/Dockerfile b/docker/dev_env/Dockerfile
index 445c729fb..e4f448fa7 100644
--- a/docker/dev_env/Dockerfile
+++ b/docker/dev_env/Dockerfile
@@ -34,11 +34,13 @@ ENV PATH="${PNPM_BIN}:${N_PREFIX}/bin:${PDM_PYTHONS}:${HOME}/.local/bin:${PATH}"
# - pipx: Python CLI app installer
# - nodejs: language runtime (includes npm but not Corepack)
# - docker*: used to interact with host Docker socket
+# - postgresql*: required to connect to PostgreSQL databases
#
# pipx dependencies:
# - httpie: CLI HTTP client
# - pdm, pipenv: Python package managers
# - pre-commit: Git pre-commit and pre-push hook manager
+# - pgcli: PostgreSQL CLI
#
# Node dependencies:
# - n: Node.js distribution manager
@@ -56,6 +58,7 @@ RUN mkdir /pipx \
python3.12 pipx \
docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin \
unzip \
+ postgresql postgresql-devel \
&& dnf clean all \
&& pipx install --global \
httpie \
diff --git a/documentation/general/general_setup.md b/documentation/general/general_setup.md
index cc8d37b68..59f73d52d 100644
--- a/documentation/general/general_setup.md
+++ b/documentation/general/general_setup.md
@@ -125,6 +125,10 @@ ones you might see used throughout the documentation:
- [`httpie`](https://httpie.io/docs/cli) is a command line HTTP client. Like
cURL but with a lot of conveniences and easier to remember. Try `http --help`
for info.
+- ['psql'] (https://www.postgresql.org/docs/current/app-psql.html) is the
+ PostgreSQL client.
+- ['pgcli] (https://www.pgcli.com/docs) is a command line interface for Postgres
+ with auto-completion and syntax highlighting.
````{admonition} Bring your own tools
:class: tip