In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
This article will explain in detail the example of how to build a svn server with docker. The editor thinks it is very practical, so I share it with you for reference. I hope you can get something after reading this article.
SVN is the abbreviation of subversion, is an open source version control system, through the efficient management of branch management system, in short, it is used for multiple people to jointly develop the same project, to achieve shared resources, to achieve the final centralized management.
1. Search & & pull svn image
Docker search svn # search svn image docker pull garethflowers/svn-server # to get image
two。 Run Mirror
Docker images # View Mirror docker run-- name svn-server-d-v / Users/xxxx/docker/svn:/var/opt/svn-p 3690 Users/xxxx/docker/svn:/var/opt/svn 3690 garethflowers/svn-server # Boot Image-name # alias-d # background Operation-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 the svn server
Create a resource repository
Svnadmin create svn # create a repository with directory svn
Create a successful build file
README.txt conf db format hooks locks
Modify the svnserve.conf file in the conf directory for resource repository configuration
Anon-access = none # anonymous users cannot read or write, or can be set to read-only readauth-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, will be displayed in the authentication prompt interface and cached as a keyword for credentials You can write the warehouse name such as svn
Configure account and password to modify passwd file in conf directory
[users] # harry = harryssecret# sally = sallyssecretadmin = 123456
Configure account permissions and modify the authz file under the conf directory
[groups] owner = admin [/] # / indicates that all warehouses admin = rw # user admin has read and write permissions in all warehouses [svn:/] # means that the following users have corresponding permissions in all directories of warehouse svn @ owner = rw # means that users under the owner group have read and write permissions
5. Svn pull files
Svn co svn://127.0.0.1:3690/svn
This is the end of this article on "docker's method of building a svn server". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.