Skip to content

Commit

Permalink
Updated documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
XAMPPRocky committed Jun 10, 2019
1 parent 64b4936 commit 3d68640
Show file tree
Hide file tree
Showing 2 changed files with 65 additions and 1 deletion.
64 changes: 64 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
FROM microsoft/dotnet:2.2.1-aspnetcore-runtime

RUN apt update && apt install apt-utils apt-transport-https dirmngr wget curl gnupg software-properties-common -y --no-install-recommends

## Workaround for apt/jre issues
RUN mkdir -p /usr/share/man/man1
RUN apt install apt-utils -y --no-install-recommends

## Install JRE
RUN apt install default-jre -y --no-install-recommends

# Powershell
RUN curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add -
RUN sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/microsoft-debian-stretch-prod stretch main" > /etc/apt/sources.list.d/microsoft.list'
RUN apt update && apt install powershell -y --no-install-recommends

# Git: install from sources to get latest
RUN apt install make libssl-dev libghc-zlib-dev libcurl4-gnutls-dev libexpat1-dev libpcre2-dev gettext unzip -y --no-install-recommends
RUN export USE_LIBPCRE=yes && \
cd /usr/src/ && \
wget https://github.com/git/git/archive/v2.20.1.tar.gz -O git.tar.gz && \
tar -xf git.tar.gz && \
cd git-* && \
make prefix=/usr/local all && \
make prefix=/usr/local install

# Git LFS
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | bash
RUN apt install -y git-lfs

# Git settings
RUN git config --global diff.renameLimit 999999
RUN git config --global user.email '[email protected]'
RUN git config --global user.name 'caflow'

# Git-SVN dependencies
RUN apt install -y libsvn-perl
RUN export PERL_MM_USE_DEFAULT=1 && cpan Term::ReadKey

# Cloc
RUN wget -O /usr/bin/cloc https://github.com/AlDanial/cloc/releases/download/1.80/cloc-1.80.pl && chmod +x /usr/bin/cloc

# Python
# cvs2git does not work with Python 3.x.
RUN apt install python2.7 python-pip -y --no-install-recommends

# CVS
RUN apt install cvs -y

# cvs2git
RUN cd /usr/src/ && \
wget http://cvs2svn.tigris.org/files/documents/1462/49543/cvs2svn-2.5.0.tar.gz -O cvs2svn.tar.gz && \
tar -xzf cvs2svn.tar.gz && \
cd cvs2svn-2.5.0/ && \
make install

# Ruby & Linguist
RUN apt install ruby-full build-essential libicu-dev cmake pkg-config -y --no-install-recommends
RUN gem install github-linguist --no-ri --no-rdoc
RUN gem install bugspots

# Tokei
RUN wget https://github.com/XAMPPRocky/tokei/releases/download/v9.1.1/tokei-v9.1.1-x86_64-unknown-linux-gnu.tar.gz
RUN tar -xvzf tokei-v9.1.1-x86_64-unknown-linux-gnu.tar.gz && mv tokei /usr/bin
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
//!
//! fn main() {
//! // The paths to search. Accepts absolute, relative, and glob paths.
//! let paths = &["**/*.rs"];
//! let paths = &["src", "tests"];
//! // Exclude any path that contains any of these strings.
//! let excluded = &["target"];
//! // `Config` allows you to configure what is searched and counted.
Expand Down

0 comments on commit 3d68640

Please sign in to comment.