Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Docker deployment svn

2025-02-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

To reduce the image size, the container used is alpine+svn, which is less than 20m and can be pulled directly:

Dockerfile is as follows:

Among them, xxx is the image name of the picture, but it is said that the forbidden word is too much.

From xxxWORKDIR / home/svnRUN apk update & &\ apk add-no-cache subversionCMD ["/ usr/bin/svnserve", "--daemon", "--foreground", "--root", "/ home/svn"]

Using the previously encapsulated Alpine image, time zone, etc., has been modified. The SVN address is / home/svn; account password is not defined. You need to modify it after running it.

After creating a container, you need to connect to the container and create a warehouse under the path / home/svn, for example:

Svnadmin create repository, and configure account password permissions, etc.

You can use: svn://IP:PORT/repository

Note:

Configure svn after creating the container:

# cd / home/svn#svnadmin create repository#vi repository/conf/svnserver.confanon-access = none # Anonymous user unreadable auth-access = write # Login user writable password-db = passwd # enable passwd configuration authz-db = authz # enable permission authz configuration # vi repository/conf/passwdadmin = adminpassword # configure account password # vi repository/conf/authzadmingroup = admin # admin user belongs to admingroup group [repository:/] @ admingroup = Rw* = r # Warehouse repository admingroup group has rw permission Other groups have read permission

Remember to restart the svn container after modifying the configuration. If you use k8s and configure persistent storage, remember to give permission to the mount disk, or the upload will fail.

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report