Containerized development environment for pgweb

From: Yogesh Sharma <yogesh(dot)sharma(at)catprosystems(dot)com>
To: PostgreSQL WWW Mailing List <pgsql-www(at)postgresql(dot)org>
Subject: Containerized development environment for pgweb
Date: 2024-06-21 13:08:04
Message-ID: ddcc84ba-d1b2-4cba-a316-461ee2962c9d@catprosystems.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-www

Hello pgweb team,

Attaching a patch to simplify pgweb dev env setup.

Dockerfile - Main container with Django and PostgreSQL client
docker-compose.yml - to create proper dependency between python and
postgres container
settings_local.py - Development setting, mounted inside container to
override pgweb/settings.py
django_setup_local.sh - this script is executed at start of container
and to setup pgweb specific env

Updated README.rst with commands.

Tested on Fedora 40 with podman as rootless containers. No custom setup
was required.
start - `podman compose --file docker-compose.yml up --detach`
stop - `podman compose --file docker-compose.yml down`

--
Kind Regards,
Yogesh Sharma
PostgreSQL, Linux, and Networking Expert
Open Source Enthusiast and Advocate
PostgreSQL Contributors Team @ RDS Open Source Databases
Amazon Web Services: https://aws.amazon.com

Attachment Content-Type Size
0001-Added-files-requires-to-run-dev-env-in-a-container.patch text/x-patch 4.1 KB

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Célestin Matte 2024-06-21 16:17:29 Re: Making pglister work with exim 4.96+
Previous Message Jonathan S. Katz 2024-06-21 02:43:34 Re: Governance directory page for pg.o