| From: | "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org> |
|---|---|
| To: | Yogesh Sharma <yogesh(dot)sharma(at)catprosystems(dot)com>, PostgreSQL WWW Mailing List <pgsql-www(at)postgresql(dot)org> |
| Subject: | Re: Containerized development environment for pgweb |
| Date: | 2024-06-25 16:21:35 |
| Message-ID: | badd631c-a752-4068-a969-548f4dd67a1c@postgresql.org |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-www |
On 6/21/24 9:08 AM, Yogesh Sharma wrote:
> 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`
This generally looks good to me. A few comments:
* Authentication - are we able to use "peer" auth instead of requiring a
password? Though IIRC that may be challenging if we're using composable
containers.
* Otherwise, do we have a way to dynamically/securely generate the
password?
Thanks,
Jonathan
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Justin Clift | 2024-06-26 08:06:51 | Re: Containerized development environment for pgweb |
| Previous Message | Jeremy Schneider | 2024-06-24 21:13:47 | seattle user group website |