How do I integrate a Gitea repository?
Hello, I've been trying to connect a Gitea repository on my local network to a Redmine server. Both are Linux containers under Proxmox, and Redmine was installed through TurnKey Linux (https://www.turnkeylinux.org/redmine).
For simplicity's sake, let's assume:
- Gitea is on IP 192.168.10.15 and Redmine 192.168.10.25.
- Both use a pfSense install to route IPs to Nginx Proxy Manager on IP 192.168.10.35, then to websites mygitea.local.com and myredmine.local.com.
- I can route Redmine's SSH connection straight to Gitea with /etc/hosts. I could connect and exchange keys, but remote repositories are not found at all with git clone [SSH URL given by Gitea].
- SSH URL is gitea@gitea.local.com:project/redmine.git
- executing RAILS_ENV shows this log too.
root@redmine .../www/redmine# RAILS_ENV=production bundle exec rails about About your application's environment Rails version 6.1.7.7 Ruby version ruby 3.2.4 (2024-04-23 revision af471c0e01) [x86_64-linux] RubyGems version 3.5.9 Rack version 2.2.9 Middleware ActionDispatch::HostAuthorization, Rack::ContentLength, Rack::Sendfile, ActionDispatch::Static, ActionDispatch::Executor, ActiveSupport::Cache::Strategy::LocalCache::Middleware, Rack::Runtime, Rack::MethodOverride, ActionDispatch::RequestId, RequestStore::Middleware, ActionDispatch::RemoteIp, Rails::Rack::Logger, ActionDispatch::ShowExceptions, ActionDispatch::DebugExceptions, ActionDispatch::ActionableExceptions, ActionDispatch::Callbacks, ActionDispatch::Cookies, ActionDispatch::Session::CookieStore, ActionDispatch::Flash, ActionDispatch::ContentSecurityPolicy::Middleware, ActionDispatch::PermissionsPolicy::Middleware, Rack::Head, Rack::ConditionalGet, Rack::ETag, Rack::TempfileReaper Application root /var/www/redmine Environment production Database adapter mysql2 Database schema version 20231012112407
Is this doable? Am I missing big time on instructions? A plugin like GitRemote doesn't seem to recognize external repositories, any input is much appreciated.
Replies (2)
RE: How do I integrate a Gitea repository? - Added by Holger Just 13 days ago
To integrate git repositories into redmine, the full git repository must be available to the Redmine server in the filesystem. Remote Git repositories are not supported (neither via http nor ssh)
To integrate external Git repositories into Redmine, usually you would setup a process outside of Redmine which pulls repository changes of remote repositories to the Redmine server (e.g. regularly via a cron job or via some other custom procedure).
RE: How do I integrate a Gitea repository? - Added by sys min1 10 days ago
Thanks for your answer! I managed to create a local, bare repository on Redmine, which gave some trouble (error 404, it may get its own writeup).
Reading Gitea webhooks for the time being, it seems a pull to Redmine and pushing edits from Gitea's side might work. Both need cronjobs as you suggested to keep a single repository up to date.
Happy New Year :)