Article directory
This article refers to the YouTube tutorial "SVN service can also be used under Synology 7.0, which can be built in a few simple steps | Zuo Zuo Technology Journal | Playing with Synology Series Videos" , because the versions used are different, the water log is used as a note.
0. Preface
The latest version of Synology does not yet provide an official version of the SVN server suite. Fortunately, there is a third-party version of Docker. The following is the whole process from installation to access.
1. Install SVN Server
The installation process of Docker is omitted (first confirm whether your Synology supports Docker).
Search for SVN in Docker's Registry, garethflowers
the version used in this article is to
double-click to install
2. Configure SVN Server
Choose Use the same network as Dock Host
the same network settings as Docker, so you don't need to configure the port of SVN Server (this is slightly different from the reference video, but there is no problem with the test)
give this container a name
Add a folder for this container, if not, you can create a new one. The folder I chose is SVN in the Docker directory. Your project will be created in this folder later.
Note the configuration folder as shown below
/var/opt/svn
Go to the Container list to see the running SVN-Server
3. Create a repository
Use Launch with command in Terminal to create a new project
The command format for creating a new project is as follows ⬇:
svnadmin create /var/opt/svn/项目名
After the creation is complete, there will be an additional svnadmin in the list on the left
At this point, you can see the newly created project repository in FileStation
4. Project configuration
svnserve.conf file
Modify the following 3 places, which represent:
- Disable anonymous access
- Allow authorized login and read and write
- Specify a password profile
- Specify Rights Profile
passwd file
Username and password settings are relatively simple, as shown below ⬇:
authz file
Configuration of file access permissions, set according to your project
5. Access the SVN project on the work PC
Project access address format:svn://NAS的局域网IP地址/MyProject
Enter the password you just set in the passwd file
) and
you're done!