Project

General

Profile

git configuration for a redmine on docker

Added by Romain LEON almost 6 years ago

Hello,

I would like to configure GIT on a redmine that runs on a docker image.

I work on a CentOS 7.3 server with an apache in front (proxypass)

My database is on another PG server.

Everything works correctly, except GIT which when I go in "repository" returns a 404 error (My repository is well initialized in --barre.

Thank you


Replies (2)

RE: git configuration for a redmine on docker - Added by Go MAEDA almost 6 years ago

Maybe more details are required for someone to help you.

  • Where are your repositories placed on your filesystem?
  • What configuration did you set on the setting page of the project?
  • What error can you see in logs/production.log?
  • etc

RE: git configuration for a redmine on docker - Added by Romain LEON almost 6 years ago

Thanks for your feedback,

I m running my docker image like this :

docker run --rm -d -p 3000:3000 
-v /applications/git/:/usr/src/redmine/git/ 
-v /applications/redmine/files:/usr/src/redmine/files 
-v /applications/redmine/plugins:/usr/src/redmine/plugins 
-v /applications/redmine/log:/usr/src/redmine/log/ 
--name redmine-test redmine

My repository is placed on my VM in :

/applications/git/
and on my docker image in :
/usr/src/redmine/git/

Apache config :

<VirtualHost *:80>
        ServerName forge.domaine.fr
        ErrorLog /applications/apache-logs/errors.log
        CustomLog /applications/apache-logs/access.log combined

        ProxyPass / http://localhost:3000/
        ProxyPassReverse / http://localhost:3000/
</VirtualHost>

Log/production.log :

Started GET "/projects/test-999/repository" for xxx.xxx.xxx.xxx at 2018-07-03 07:00:30 +0000
Processing by RepositoriesController#show as HTML
  Parameters: {"id"=>"test-999"}
  Current user: adminii (id=21)
  Rendered common/error.html.erb within layouts/base (0.2ms)
Completed 404 Not Found in 60ms (Views: 33.4ms | ActiveRecord: 7.8ms)
    (1-2/2)