Tutorial on building svn server with docker

Tutorial on building svn server with docker

SVN is the abbreviation of subversion, an open source version control system that uses a branch management system for efficient management. In short, it is used for multiple people to jointly develop the same project, share resources, and achieve ultimate centralized management.

1. Search && pull svn mirror

docker search svn #Search for svn images docker pull garethflowers/svn-server #Get images

2. Run the image

docker images #View the image docker run --name svn-server -d -v /Users/xxxx/docker/svn:/var/opt/svn -p 3690:3690 garethflowers/svn-server #Start the image-name #Alias-d #Background run-v #Host and container directory mapping-p #Host and container port mapping

3. Enter the container

docker exec -it svn-server /bin/sh

4. Configure SVN server

Create a resource repository

svnadmin create svn #創建一個目錄為svn的倉庫

Create a successful build file

README.txt conf db format hooks locks

Resource warehouse configuration Modify the svnserve.conf file in the conf directory

anon-access = none # Anonymous users cannot read or write, and can also be set to read-only
auth-access = write # Authorized users can write password-db = passwd # Password file path, relative to the current directory authz-db = authz # Access control file realm = /var/opt/svn/svn # Authentication namespace, which will be displayed in the authentication prompt interface and used as a keyword for the credential cache. You can write the repository name, such as svn

Configure account and password Modify the passwd file in the conf directory

[users]
# harry = harryssecret
# sally = sallyssecret
admin = 123456

Configure account permissions and modify the authz file in the conf directory

[groups]
owner = admin
[/] # / means all repositoriesadmin = rw # User admin has read and write permissions in all repositories[svn:/] # Indicates that the following users have corresponding permissions in all directories of the repository svn@owner = rw # Indicates that users under the owner group have read and write permissions

5. svn pull files

svn co svn://127.0.0.1:3690/svn

Summarize

This is the end of this tutorial on how to build an SVN server with Docker. For more information about Docker SVN server, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope you will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • docker pure-ftp How to build an ftp server
  • Centos7 uses docker to build gitlab server
  • How to build a DNS server with Docker in 1 minute
  • How to migrate docker containers across servers
  • Build a Minecraft server with Docker in 3 minutes
  • How to build svn server in linux
  • Detailed tutorial on building an SVN server (with pictures and text)
  • Building an SVN server from scratch (with pictures and text)

<<:  js and jquery to achieve tab status bar switching effect

>>:  Summary of knowledge points about null in MySQL database

Recommend

Solution to the MySQL server has gone away error

MySQL server has gone away issue in PHP 1. Backgr...

CSS code to achieve background gradient and automatic full screen

CSS issues about background gradient and automati...

Solution to Mysql binlog log file being too large

Table of contents 1. Related binlog configuration...

Based on the special characters in the URL escape encoding

Table of contents Special characters in URLs URL ...

How to view the IP address of the Docker container

I always thought that Docker had no IP address. I...

MySql inserts data successfully but reports [Err] 1055 error solution

1. Question: I have been doing insert operations ...

Practical method of upgrading PHP to 5.6 in Linux

1: Check the PHP version after entering the termi...

CentOS 8.0.1905 installs ZABBIX 4.4 version (verified)

Zabbix Server Environment Platform Version: ZABBI...

A detailed introduction to JavaScript primitive values ​​and wrapper objects

Table of contents Preface text Primitive types Pr...

mysql-canal-rabbitmq installation and deployment super detailed tutorial

Table of contents 1.1. Enable MySQL binlog 1.2. C...

Python MySQL database table modification and query

Python connects to MySQL to modify and query data...

mysql backup script and keep it for 7 days

Script requirements: Back up the MySQL database e...

How to set background blur with CSS

When making some pages, in order to make the page...

Analysis of the Principles of MySQL Slow Query Related Parameters

MySQL slow query, whose full name is slow query l...