docker entrypoint script #894
Tunnisteet
Ei tunnisteita
A: API
A: Backend
A: Federation
A: Front-End
A: I18N
A: Meta
A: Security
Build
C: Bug
C: Discussion
C: Enhancement
C: Feature
Compatibility
Dependency
Design
Documentation
Good first issue
Help welcome
Mobile
Rendering
S: Blocked
S: Duplicate
S: Incomplete
S: Instance specific
S: Invalid
S: Needs Voting/Discussion
S: Ready for review
Suggestion
S: Voted on Loomio
S: Wontfix
Ei merkkipaalua
Ei projektia
Ei käsittelijää
2 osallistujaa
Ilmoitukset
Määräpäivä
Määräpäivää ei ole asetettu.
Riippuvuudet
Riippuvuuksia ei asetettu.
Viittaus: Plume/Plume#894
Ladataan…
Lisää taulukko
Viittaa uudessa ongelmassa
Ei kuvausta.
Poista haara "%!s()"
Haaran poistaminen on pysyvä toimenpide. Vaikka poistettu haara voi jäädä olemaan lyhyeksi ajaksi, ennen kuin todellisesti poistetaan, poistoa EI VOI perua useimmiten. Jatketaanko?
Hi,
here is a entrypoint script for plume sqlite version. Need to be improved and extended for postgresql database initialization / check.
Suggestions for improvements?
Briefly looks good! Thanks.
A few things:
We don't need generate
.env
file. Variable in.env
are read by Plume program as they are environemnt variables. If you may get vars from environment variables directly, you don't need write them down to the file.How about running
plm migration run
optional? Sometime the command places burdon on database. Administrators should want to choose when they run it.Hi,
I'll change and test that. Also will extend the official postgres image for some tests with my entrypoint script. My own postgres image (musl static) still fails to build.
Updated script
$PLM_INSTALL
) because can't check pgsql tables with plumeorg/plume or plm (related to #901)Postgres instance installed and reachable, but need a way to check pgsql initialized or not instead of a ENV VAR needed just first time... I don't like such a variable and also don't like to install pg cli tools for just such a simple check. Maybe it could be done by add db subcommands to plm (#901)?
It works with plumeorg/plume:latest image and postgres db. Create a test image
The change about migration looks good.
Can you create a pull request, though this is second time saying? It's difficult for me to track changes from issue comments. Surely learning Git is not easy. But adding entry script and continuing to modify it is easy even if you are not familiar with Git because Gitea allows you to edit files in your browser.
Gitea itself doesn't have documentation for that. But GitHub's ones are so helpful:
Can you consider it? Thanks.
I'll take a look and create a pull request, but need some time to finish other tasks first.
I have to learnhow to useh git and create pull requests anyway :)