Skip to content

jkager/gitstats-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

f59fb0e · Apr 17, 2023
Apr 17, 2023
Apr 16, 2023
Apr 16, 2023
Apr 16, 2023
Apr 17, 2023
Apr 17, 2023
Apr 17, 2023
Apr 16, 2023
Oct 21, 2008
Oct 21, 2008
Oct 21, 2008
Apr 17, 2023
Apr 17, 2023
Jan 17, 2010
Oct 21, 2008

Repository files navigation

gitstats Docker image

Forked from https://github.com/dmitryn/GitStats to package gitstats in a Docker image with Python 2 and all other prerequisites.

Docker image: jk4ger/gitstats

See the original README for documentation of gitstats itself.

Usage

Run with Docker:

# Path to git repository.
REPO_DIR=$(pwd)

# Path to output directory.
OUTPUT_DIR="$(pwd)/out"

# Run with the current user, to ensure that the output files
# are owned by the user and not by root.
CONTAINER_USER=$(id -u):$(id -g)

# Generate report in output directory.
docker run \
  -v "$REPO_DIR:/repo:ro" \
  -v "$OUTPUT_DIR:/out" \
  --user $CONTAINER_USER \
  --rm \
  jk4ger/gitstats:latest
  
# Open report in browser.
xdg-open "$OUTPUT_DIR/index.html"

Development

Prerequisites:

  • Docker
  • GNU make

Build the Docker image locally and run on this repository with output to ./out:

make run

Run smoke test:

make test

About

Statistics generator for git repositories. Fork of http://gitstats.sourceforge.net/

Resources

Stars

Watchers

Forks

Languages

  • Python 73.3%
  • JavaScript 18.7%
  • CSS 3.2%
  • Makefile 2.8%
  • Dockerfile 1.3%
  • Shell 0.7%