Docker builds SVN service
1. Download the image and configure the mapping directory
- Execute the following commands to pull the image and mount the configuration
docker run \
--name my-svn-server \
--detach \
--volume /home/data/svn:/var/opt/svn \
--publish 3690:3690 \
garethflowers/svn-server
2. Create a new SVN repository
- Use svnadmin within your container to create and manage repositories.
- For example, to create a repository named new-repo container my-svn-server, use the following command:
docker exec -it my-svn-server svnadmin create new-repo
- After the creation is completed, it will look like this:
3.Permission adjustment
- Modify the svnserve.conf file
[general]
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz
realm = /var/opt/svn/huiyeai-repo
[users]
admin = adminhuiyeai123
[groups]
owner = admin
[/]
[huiyeai-repo:/]
admin = rw
@owner = rw
4. File access
- Download the svn tool for testing and log in with the admin user to complete.
svn co svn://127.0.0.1:3690/my_repos_name