From a4da8709f96b78bd82bdd8b1d51059859fe30529 Mon Sep 17 00:00:00 2001 From: Clement Verna Date: Jan 08 2017 08:49:39 +0000 Subject: Added Dockerfile to create container with pgimport Signed-off-by: Clement Verna --- diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d54779c --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM fedora +MAINTAINER Clement Verna + +RUN dnf install -y dnf-plugins-core && \ + dnf copr enable -y cverna/pagure-importer && \ + dnf install -y python3-pgimport + +ENV LC_ALL=en_GB.UTF-8 diff --git a/README.md b/README.md index 0ba2015..8a1a9e3 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,27 @@ # pagure-importer CLI tool for importing issues etc. from different sources like github to pagure -## Installation in a Virtual Environment +## Installation --- + +#### In a Virtual Environment * Install it using ```pip``` . ```pip install pagure_importer``` +#### Using COPR package * Install it using [copr](https://copr.fedorainfracloud.org/coprs/cverna/pagure-importer/). ``` $ sudo dnf copr enable cverna/pagure-importer $ sudo dnf install python3-pgimport ``` +#### Using Docker +* Build and run a container using the Dockerfile in this repository +``` + $ docker build -t pgimport . + $ docker run -t -i -v ~/.ssh/:/root/.ssh/:Z /bin/bash +``` +* Inside the container you can use the pgimport command. + ## How to run --- 0. Clone the issue tracker for issues from pagure. Use: ```pgimport clone ssh://git@pagure.io/tickets/foobar.git```