Technical essay: The whole process record of Docker version SVN server on Synology from construction to access

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).
insert image description here
Search for SVN in Docker's Registry, garethflowersthe version used in this article is to
insert image description here
double-click to install

insert image description here

2. Configure SVN Server

Choose Use the same network as Dock Hostthe 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)

insert image description here

give this container a name
insert image description here

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.
insert image description here

insert image description here

Note the configuration folder as shown below

/var/opt/svn

insert image description here
insert image description here
Go to the Container list to see the running SVN-Server

insert image description here

3. Create a repository

Use Launch with command in Terminal to create a new project
insert image description here

insert image description here

insert image description here
The command format for creating a new project is as follows ⬇:

svnadmin create /var/opt/svn/项目名

insert image description here

After the creation is complete, there will be an additional svnadmin in the list on the left
insert image description here

At this point, you can see the newly created project repository in FileStation

insert image description here

insert image description here

4. Project configuration

insert image description here

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

insert image description here

passwd file

Username and password settings are relatively simple, as shown below ⬇:

insert image description here

authz file

Configuration of file access permissions, set according to your project

insert image description here

5. Access the SVN project on the work PC

Project access address format:svn://NAS的局域网IP地址/MyProject

insert image description here
Enter the password you just set in the passwd file
insert image description here) and
you're done!

insert image description here

Guess you like

Origin blog.csdn.net/hello_tute/article/details/126443277