mirror of
https://github.com/slurdge/goeland.git
synced 2026-11-11 13:13:58 +00:00
[GH-ISSUE #42] Docker bind volume ownership/permissions and goeland.db #18
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: slurdge/goeland#18
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @kriswilk on GitHub (Jun 11, 2022).
Original GitHub issue: https://github.com/slurdge/goeland/issues/42
Since you now offer a docker image, I put together a
docker-compose.ymlfile containing:Issues I've encountered:
~/docker/volumes/goeland(as user 1000), it gets created by docker as root andconfig.tomlcannot be written to it. Shouldn't it be created automatically by docker as the container user (1000?) and just work?config.tomlis created/edited, successfully, a "permission denied" error occurs when creatinggoeland.db.I admit that I'm pretty new to docker (and to goeland!), so perhaps this is all expected behaviour and I'm "doing it wrong". Either way, I'm hoping for guidance.
P.S. is there a way to default the container to start with the
--run-at-startupflag?@slurdge commented on GitHub (Jun 12, 2022):
Yes it should, I would have to look at it. Probably something to do with running as root or not.
This should work too. Docker image are quite new, so there needs to have more tests. I'll look into it.
My goal is to have an example
docker-compose.ymlfile.Yes, all command line args should be mirrored with environment variables. So if you set
GOELAND_RUN_AT_STARTUP=trueit should do as you wish.@kriswilk commented on GitHub (Jun 12, 2022):
That's a good idea. A minimalist example could be similar to mine but with an even simpler persistent volume alongside the docker-compose.yml file:
Hmm. I just tried this by augmenting my
docker-compose.yml:But it didn't have any effect. Where is this implemented in the code? I can't seem to see where it's pulled from an env variable. Or did you mean that this is a planned feature?
@slurdge commented on GitHub (Jun 12, 2022):
The binding is here:
a3f261360a/config/config.go (L38)But I realize I may need to explicitly create a configuration variable bound to the command line for it to work.
@slurdge commented on GitHub (Aug 4, 2022):
Should be ok now. Sorry for the delay.