How to use repository of Redmine with Git on Synology NAS?

Added by William Kim about 1 year ago

Hi all!
I have a question about Repository with Git.

I'm using the Redmine and Git server on Synology NAS, and I want to use repository feature.

I read the link as below, but it doesn't solved(My case is same issue).
http://www.redmine.org/boards/2/topics/41094

I have spent 1 week for this issue... I want to finish that. T_T

Please help me.

Thank you.

Replies (6)

RE: How to use repository of Redmine with Git on Synology NAS? - Added by Bernhard Rohloff about 1 year ago

So you have a 404 error when you try to access your git repository over Redmine, haven't you?
May I start with a question?
What exact steps have you done until now to achieve this?

Kind regards

Bernhard

RE: How to use repository of Redmine with Git on Synology NAS? - Added by William Kim about 1 year ago

Thank you for your reply!

I have tried as follow steps.
(Please understand my English.)

I already created account 'gituser' as group the 'users', and installed the Git server.

1) Access the Synology NAS with Putty, and login 'root'.

2) Create the directory.

mkdir /var/services/homes/gituser/test.git

3) Move into the test.git

cd test.git

4) Init git

git init --bare

5) Set permission

cd ..
chown -R gituser:users test.git

6) Test with SourceTree
It works well. (push, pull, commit are okay)

7) I tried to create the repository, but it works abnormal(404 Error).

Thank you.

Best regards,
William Kim

RE: How to use repository of Redmine with Git on Synology NAS? - Added by Bernhard Rohloff about 1 year ago

The first steps seem to be made.
What are the directory permissions of test.git?

Is the user which is running the Redmine process allowed to access the test.git folder locally?

RE: How to use repository of Redmine with Git on Synology NAS? - Added by William Kim about 1 year ago

Sorry, I don't understand your last question.

I made the user 'gituser' both on Synology Nas and docker's Redmine.

Could you please explain more detail?

Thank you :)

RE: How to use repository of Redmine with Git on Synology NAS? - Added by Bernhard Rohloff about 1 year ago

Ah you have Redmine installed inside Docker.
Did you pass the folder containing your GIT repositories to the docker image.
Normally your docker image isn't allowed to access data on the host.

You don't have to create a gituser inside of Redmine as this has nothing to do with local file access. Just make sure your webserver in the docker image is allowed to read the files inside your repo folders.

This is an article how to pass a directory to docker: https://www.digitalocean.com/community/tutorials/how-to-share-data-between-the-docker-container-and-the-host

As I have no experience with Synology NAS devices I unfortunately can't tell you how to achieve this on your box.

RE: How to use repository of Redmine with Git on Synology NAS? - Added by William Kim about 1 year ago

Thank you for your advise!
I will try to access directly to docker directory.

Thank you :)

(1-6/6)