Enhancement request: don't refer to initdb from git repository
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 62/100
Research direction
Start with compose.yml and any other compose files in the repo, focusing on the initdb volume mount referenced in the issue. Check where the Postgres seed is consumed by the container startup and whether any scripts assume the seed file is a mounted git-path dependency. Update the compose/service setup so the seed is provisioned without that mount (and document the chosen flow), then run docker compose up to verify the local stack starts cleanly without the repository seed volume.
Written by the indexing model from the issue text.
Description
Is your enhancement request related to a problem? Please describe.
I wanted to have a simple Docker setup for local use that wasn't intended for development but for using DejaCode. Therefore I had no need for building a Docker container or having a build environment. I was looking for a simple Docker Compose file with the necessary containers that exist.
I was surprised by the explicit volume mount of the Postgresql database seed:
https://github.com/aboutcode-org/dejacode/blob/c3399c8056d05eb0fbff13604ae4b3e8229a3bc0/compose.yml#L12
In this way the Docker compose files have a dependency on this git repository. This mount is present in all Docker compose files in this repository.
In the setup I came up with, I finally added the database seed to get it running. https://codeberg.org/nicorikken/aboutcode-locally
I'm surprised of the additional complexity of managing this database seed in a container-based setup. I would have expected a more implicit setup.
What are the benefits of the requested enhancement?
If the database seed would have been managed from within the built containers, the docker-compose setup would be simpler and would need nothing more than a docker-compose.yml file or maybe an nginx config and environment file if they aren't embedded into the compose file.
Describe the solution you would like
I would expect Dejacode to manage the database seed. I see a few options:
- Ship the database seed within the container. This risks the database seed having become outdated.
- Download the database seed at boot. This risks the download being blocked by the network. A manual install could be documented.
Additional notes
None
- Dominant language
- Python
- Stars
- 53
- Forks
- 32
- Avg merge
- 16h 44m
- Merged PRs (30d)
- 10
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from aboutcode-org/dejacode
-
Unify product Clone, "Save as new" and admin "Save as new" into a single clone featurePossibly taken @d4rshnn claimed this 10 days ago. Open
Difficulty 4/5 3-5 days Newbie friendliness 45/100
aboutcode-org/dejacode#603 ·
Maintainers usually reply within 1 day
-
Enhancement request: Refine License Category - Copyleft LimitedMay be free again @hesa claimed this 138 days ago, and no pull request is open. Opendesign needed enhancement
aboutcode-org/dejacode#499 · 13 comments · 3 assignees ·
Maintainers usually reply within 1 day
-
BUG: Product overview page splits product with many versions across pagesMay be free again A pull request for this issue was closed without being merged. Openbug design needed enhancement
Difficulty 3/5 1-2 days Newbie friendliness 45/100
aboutcode-org/dejacode#460 ·
Maintainers usually reply within 1 day
-
design needed
Difficulty 5/5 Over a week Newbie friendliness 20/100
aboutcode-org/dejacode#452 · 2 comments ·
Maintainers usually reply within 1 day
-
Enhancement request: Introduce ability to ignore (bypass) Product Object PermissionsMay be free again @hesa claimed this 153 days ago, and no pull request is open. Opendesign needed enhancement
aboutcode-org/dejacode#386 · 12 comments · 1 reaction · 1 assignee ·
Maintainers usually reply within 1 day
All issues in aboutcode-org/dejacode
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
mohanraj00/entelos#200 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
-
sweep
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
bketelsen/truenas-mcp#77 ·
Maintainers usually reply within 1 day
-
Console writes URL credentials to the local log, though AGENTS.md says secrets never reach diskOpen
Difficulty 1/5 Under an hour Newbie friendliness 86/100
sandbox-quantum/switch#2163 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
openedx/xblock-lti-consumer#765 ·
Maintainers usually reply within 1 day