본문 바로가기
[IT]

도커 SVN 셋팅

by DDBobD 2021. 10. 28.
728x90
반응형
$docker pull elleflorio/svn-server

$docker volume create svn-root

$docker run -dit --name svn-server -v svn-root:/home/svn -p 7443:80 -p 3690:3690 -w /home/svn elleflorio/svn-server

$docker update --restart=unless-stopped svn-server

$docker exec -t svn-server htpasswd -b /etc/subversion/passwd <id> <passwd>

http://<ip>:7443/svn

$docker exec -it svn-server <id> create <repo>

http://<ip>:7443/svn/<repo>

$docker exec -it svn-server sh

$vi /home/svn/<repo>/conf/passwd
<id> = <passwd>

$vi /home/svn/<repo>/conf/authz
[groups]
<group> = <id>, <id>, <id>
[repository:/baz/fuz]
@<group> = rw
[/]
@<group> = rw

$vi /home/svn/<repo>/conf/svnserve.conf
anon-access = read
auth-access = write
password-db = passwd
authz-db = authz

$vi /etc/subversion/subversion-access-control
[groups]
<group> = <id>, <id>, <id>

$chown -R apache.apache /home/svn/

$exit
728x90
반응형

'[IT]' 카테고리의 다른 글

Pycharm SVN 연동  (0) 2021.11.26
도커 웹뷰(portainer) 셋팅하기  (0) 2021.11.03
우분투 도커 환경셋팅  (0) 2021.10.14
우분투 하드디스크 마운트  (0) 2021.10.12
우분투 설치  (0) 2021.10.07