-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't run docker without POSTGRES_DATABASE set (using mysql only) #10037
Comments
Thank you for your report; the issue you have reported has just been fixed.
|
Thank you for the quick fix! Can you tell me how I can pull the latest docker build to use it? I tried updating my docker config to use
Which did pull a new image. But it doesn't seem to respect the new variable:
And indeed, line 54 is in the old file, it should be 55 in the new file. So it seems the fix isn't included in that docker build, despite the github sha's matching...? |
You need to wait for the tomorrow build, bleeding containers are typically updated once a day. |
Oh ok, thank you! |
Alright, so I have a new error now 😅 I am now using I can see it is now pulling in the settings override file, which is as I posted above. (I temporarily uncommented the comment to intentionally trigger an error, so I can be sure it is executing the override file above. I then reverted the comment so it would execute OK) But, even though it loads the override file, it is still trying to do something with postgres:
1003 uid is user I am running the docker instance as ( |
WeblateOrg/docker#1980 might fix this. |
Cool, I can give it a test once it's dockered up somewhere and report back to you :) |
Thanks, that got me through initial database setup using Next, I got an error:
But I was able to resolve it by following this tip and modify my docker-compose
However, then I got into this problem:
And indeed, conf.d does not have relevant permissions for my 1003 uid:
so I ended up configuring only UID and not GID. Though it seems worrying to run in the root group, I saw some references that it's not uncommon in docker, and that resolved both above issues:
That allowed me to get up and running and things seem to be mostly working (able to pull a github repo.) However, when trying to set up an SSH key, I get the error
And unfortunately I don't seem to get anything relevant in the logs. Directory permissions seem consistent with everything else, so it should have permission to write in there:
I even tried blowing the folder up and setting full 777 permission, but doesn't seem to be related. Any ideas how I can resolve the ssh key gen error so I can push to github? |
I ended up giving up on running on a non-1000 UID and that allowed me to work around the ssh key issue. IMO it'd be both cleaner for host filesystem mapping and also enhanced security if UID parameter was supported in the docker version. |
The output can be present, but blank, so make sure we give a reasonable error message. See #10037
The error message should be better with d857a43. Running under a different user has never been tested, so there might be some glitches in that, I've created WeblateOrg/docker#1988 to track this. |
Great, thank you :) |
Describe the issue
Hello,
I am trying to set up weblate via docker.
I see in the docker doc there are env vars for postgre but not mysql. So I try to set them in
settings_override.py
, but it does not seem this file is being included yet?How can I run the docker install with mysql? (I will not use postgre)
Thank you!
I already tried
Steps to reproduce the behavior
in docker-compose:
in /home/weblate/weblate-data/settings-override.py:
Expected behavior
No response
Screenshots
No response
Exception traceback
How do you run Weblate?
Docker container
Weblate versions
docker compose doesn't work since it can't start up, but it's docker image ID 95d3c152d7a2 created 10 days ago
Weblate deploy checks
Can't run since it's stuck restarting
Additional context
No response
The text was updated successfully, but these errors were encountered: