Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 669 Bytes

README.md

File metadata and controls

18 lines (15 loc) · 669 Bytes

Just subversion client executable from container where svn command can not be installed.

Usage

As svn script

#!/bin/bash
exec docker run --rm \
    -e UID="$(id -u)" -e GID="$(id -g)" -e SVN_USERNAME -e SVN_PASSWORD \
    -v "$(pwd):/workspace" -v "$HOME/.subversion:/home/user/.subversion" \
    profiprog/svn svn $@

or just as an alias

alias svn='docker run --rm -e UID="$(id -u)" -e GID="$(id -g)" -e SVN_USERNAME -e SVN_PASSWORD -v "$(pwd):/workspace" -v "$HOME/.subversion:/home/user/.subversion" profiprog/svn svn'

Whe SVN_USERNAME and SVN_PASSWORD environment variables are deffined subversion client automaticaly use them.