docker-compose 部署svn服务器
已安装docker、docker-compose环境服务器
docker-composede yml文件
svn:
image: garethflowers/svn-server
container_name: svn-server
ports:
- "3690:3690"
volumes:
- "/data/svn:/var/opt/svn"
restart: always
SVN-server配置
启动及下载:sudo docker-compose -f svn-server.yml up -d
查看svn容器:sudo docker ps
进入svn容器内部:sudo docker exec -it svn-server sh
创建仓库目录:/var/opt/svn # mkdir wwb
初始化仓库:/var/opt/svn # svnadmin create /var/opt/svn/wwb/
进入仓库目录验证是否初始化成功:
/var/opt/svn # cd wwb/
/var/opt/svn/wwb # cd conf/
/var/opt/svn/wwb/conf # ls
authz hooks-env.tmpl passwd svnserve.conf
配置svnserve.conf中文件将anon-acces = read、auth-acces = write、password-db = passwd注释拿掉且,空格去掉,顶格处理(重要,否则启动报错)
/var/opt/svn/wwb/conf # vi svnserve.conf
配置SVN登录用户密码
/var/opt/svn/wwb/conf # vi passwd
退出容器:/var/opt/svn/wwb/conf # exit
报错处理
修改svnserve.conf时,打开注释时,配置的前面有空格,应该顶格写
ubuntu18.04安装SVN客户端
sudo apt install rabbitvcs-cli rabbitvcs-core rabbitvcs-gedit rabbitvcs-nautilus