From e0d0aec644c1adefa86bfcd7842de340365646fd Mon Sep 17 00:00:00 2001 From: djalal Date: Fri, 18 Dec 2015 13:15:46 +0100 Subject: [PATCH 1/4] use as dockerized command --- Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..e3d4b47 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,6 @@ +FROM python:2 + +RUN pip install --upgrade setuptools && pip install --upgrade pip && pip install github-pr-stats + +ENTRYPOINT [ "github-pr-stats" ] + From a72fe39889626b3fd74eee31f9da6373027c9d76 Mon Sep 17 00:00:00 2001 From: djalal Date: Fri, 18 Dec 2015 13:22:00 +0100 Subject: [PATCH 2/4] update README with Docker section --- README.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/README.md b/README.md index 5f5ae43..24b8663 100644 --- a/README.md +++ b/README.md @@ -51,6 +51,16 @@ or [$]> easy_install github-pr-stats +or via Docker : + +Use it as a container by building it first + + docker build -t git-pr-stats . + +And then launch the command like this : + + docker run -v ~/.gitconfig:/root/.gitconfig --rm -it github-pr-stats --version + # Hacking I highly recommend using virtualenv: From 64440a7902475917e0758ef76520e943283af71a Mon Sep 17 00:00:00 2001 From: djalal Date: Fri, 18 Dec 2015 13:29:13 +0100 Subject: [PATCH 3/4] fix typo --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24b8663..a17e94d 100644 --- a/README.md +++ b/README.md @@ -55,7 +55,7 @@ or via Docker : Use it as a container by building it first - docker build -t git-pr-stats . + docker build -t github-pr-stats . And then launch the command like this : From c1382ba25ecf5eed692f497da2f0ec2061482c47 Mon Sep 17 00:00:00 2001 From: djalal Date: Mon, 21 Dec 2015 18:02:32 +0100 Subject: [PATCH 4/4] Add git binary --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index e3d4b47..c28f17a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM python:2 +RUN apt-get update && apt-get install -q -y git + RUN pip install --upgrade setuptools && pip install --upgrade pip && pip install github-pr-stats ENTRYPOINT [ "github-pr-stats" ]