-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
svn Dockerfile 생성 docker_container_check.sh 스크립트 수정 Readme 수정
- Loading branch information
Showing
4 changed files
with
55 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
.DS_Store |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
FROM ubuntu:18.04 | ||
FROM alpine:3.10.3 | ||
|
||
MAINTAINER Andamiro <dlfrb2002@gmail.com> | ||
MAINTAINER gymbombom <gymbombom@kakao.com> | ||
|
||
RUN apt-get update -y | ||
RUN apt-get upgrade -y | ||
RUN apk update | ||
RUN apk upgrade | ||
|
||
RUN apk add subversion | ||
|
||
RUN apt-get install vim -y | ||
RUN apt-get install net-tools -y | ||
RUN apt-get install language-pack-ko -y | ||
RUN apt-get install subversion -y | ||
RUN mkdir -p /home/svn/share | ||
RUN chmod 777 /home/svn | ||
RUN chmod 777 /home/svn/share | ||
|
||
|
||
RUN useradd -ms /bin/bash svn | ||
|
||
EXPOSE 3690 | ||
|
||
VOLUME ["/home/svn/share"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,38 @@ | ||
# build command | ||
docker build --tag svn:1 . | ||
1. dockerfile Build | ||
cd dockerfile_path | ||
sudo docker build --tag rasp_svn:1 . | ||
|
||
|
||
2. volume setting | ||
(연결할 volume의 directory 구조는 아래와 같음) | ||
(repos directory 하위에 repository를 위치시킨다.) | ||
|
||
share/ - | ||
repos/ | ||
|
||
|
||
3. docker run | ||
docker run -it -p 3690:3690 -v /home/pi/share/svn/share:/home/svn/share --name svn rasp_svn:1 /bin/ash | ||
|
||
|
||
4. svn daemon start | ||
/usr/bin/svnserve -d -r /home/svn/share/repos | ||
|
||
|
||
|
||
5.svn repository create | ||
/usr/bin/svnadmin create --fs-type fsfs /home/svn/share/repos/test; | ||
|
||
|
||
6.config 파일 수정 | ||
# /home/svn/share/repos/test/conf/svnserve.conf | ||
|
||
anon-access = read | ||
auth-access = write | ||
password-db = passwd | ||
|
||
|
||
7.passwd 수정 | ||
# /home/svn/share/repos/test/conf/passwd | ||
|
||
# run command | ||
docker run -it -p 3690:3690 -v /home/pi/svn:/home/svn/repos --name svn svn:1 /bin/bash | ||
|