Skip to content

Commit 3f965dd

Browse files
Mathieu LAUDEtnyblom
Mathieu LAUDE
authored andcommitted
Adding some documentation to run from Docker.
1 parent bdd0868 commit 3f965dd

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,15 @@ If you have a proper ruleset the tool will create the git repositories for you a
1616

1717
After it is done you likely want to run `git repack -a -d -f` to compress the pack file as it can get quite big.
1818

19+
Running as Docker image
20+
-----------------------
21+
Just mount your SVN folder, plus another working directory where Git repository will be created.
22+
Sample usage with input mounted in /tmp and output produced in /workdir:
23+
```
24+
docker build -t svn2git .
25+
docker run --rm -it -v `pwd`/workdir:/workdir -v /var/lib/svn/project1:/tmp/svn -v `pwd`/conf:/tmp/conf svn2git /usr/local/svn2git/svn-all-fast-export --identity-map /tmp/conf/project1.authors --rules /tmp/conf/project1.rules --add-metadata --svn-branches --debug-rules --svn-ignore --empty-dirs /tmp/svn/
26+
```
27+
1928
Building the tool
2029
-----------------
2130
Run `qmake && make`. You get `./svn-all-fast-export`.

0 commit comments

Comments
 (0)