-
Notifications
You must be signed in to change notification settings - Fork 519
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
Docker volume mounts aren't explored?? #898
Comments
Environment variables have to be set using https://httpd.apache.org/docs/current/mod/mod_env.html#setenv Apache does not expose the system environment variables to sub-processes. |
I'm not convinced this is/the only issue, but can explore it further. I've also tried setting Edit: Adding |
Ping I'm open to other ideas. Ignoring the env issue, even setting the config file to the path directly did not work. Short of doing this as a developer build (haven't done much with php in a few years) are there any debug flags/logs that can be enabled to help track this down? |
I think I have the same issue, the webpage works but I can't see any repositories. I've configured my repository via config.yml
Which variable should I set via SetEnv? |
@bmagistro Did you figure this out yet? It sure looks like there is a lot in the example docker/nginx/nginx.conf config that isn't going to work the same as a Apache config. I haven't figured out everything you need to translate that to Apache. Also, there doesn't seem to be an Apache config for v2.0.0 anywhere that I have found. |
I have not yet. I will double check the config I had and see what translates. We use both so if it is that simple I should be able to crack it in the next few days if I get some time. |
@bmagistro been playing around with this a bit more. Adding something like this to your image might get you most of the way there. Dockerfile
apache_gitlist.conf
|
This make no difference. It also appears that mod_rewrite may not be in use as there is 1) no As mentioned before, apache can read the volume mount (aliased and exposed) but the php process (not fpm, mod_php -- https://hub.docker.com/_/php) doesn't seem to be able to and I don't seem to get any errors in the logs (yes its turned up to E_ALL). I am opting away from a multi container setup here, I can try to setup the fpm + nginx containers referenced in the repo and see if the behavior is different... |
I'm trying to run v2.0.0 in a docker container mounting in a path to the various git repos but it does not seem to be explored. If I use a local directory, it is traversed and the repos are found. Unfortunately I cannot run gitlist locally/natively easily due to dependencies/conflicts which is why I'm trying to utilize a container with a volume mount. I can confirm that the
www-data
user can access the files in the mount point (su -s /bin/bash www-data; ls /repos
). I did quickly spin up v1.1.1 and it can access the repos via the mount point.Happy to contribute a complete dockerfile + configs back if I can sort this out.
The edit in
sites-enabled
is to update the docroot to..../public
.The text was updated successfully, but these errors were encountered: