Snippets

Sebastian Sdorra Subversion 1.7 client - Docker

Created by Sebastian Sdorra
FROM debian:wheezy

# svn version
ENV SVN_UID 1000
ENV SVN_GID 1000
ENV SVN_VERSION 1.7.20

# install required dependencies
RUN echo 'debconf debconf/frontend select Noninteractive' | debconf-set-selections \
    && apt-get update \
    && apt-get install -qq -y build-essential openssl libssl-dev wget autoconf unzip python libtool

# install subversion from tarball
RUN cd /usr/local/src \
    && wget -q http://mirror.23media.de/apache/subversion/subversion-${SVN_VERSION}.tar.gz \
    && tar xfz subversion-${SVN_VERSION}.tar.gz \
    && rm -f subversion-${SVN_VERSION}.tar.gz \
    && cd subversion-${SVN_VERSION} \
    && ./get-deps.sh \
    && cd apr/; ./buildconf; cd .. \
    && cd apr-util/; ./buildconf; cd .. \
    && cd apr-util/xml/expat/; ./buildconf.sh; cd ../../.. \
    && ./autogen.sh \
    && ./configure \
    && make \
    && make install

# clean up
RUN apt-get autoremove \
    && apt-get clean \
    && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*

# create user
RUN mkdir /usr/src/app \
    && useradd -d /usr/src/app -u ${SVN_UID} -s /bin/bash -U svn

USER svn
WORKDIR /usr/src/app

CMD svn

Comments (0)

HTTPS SSH

You can clone a snippet to your computer for local editing. Learn more.