From c22bfd5f4cf31e8d252db3216213fd5cc5147ac0 Mon Sep 17 00:00:00 2001 From: Sebastian Bassi Date: Thu, 5 Apr 2018 11:40:31 -0700 Subject: [PATCH 1/2] Adding dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 00000000..d56eeb31 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +FROM python:3.6.5-stretch + +MAINTAINER Sebastian Bassi + +RUN pip install allofplos + +RUN python -m allofplos.update From 6665c0422a3bd04488849d09ad034b8977b26726 Mon Sep 17 00:00:00 2001 From: Sebastian Bassi Date: Thu, 5 Apr 2018 15:31:10 -0700 Subject: [PATCH 2/2] Adding docker information in the readme --- README.rst | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/README.rst b/README.rst index b5c83b30..2eced605 100644 --- a/README.rst +++ b/README.rst @@ -17,7 +17,7 @@ corpus for further analysis. Use this program to download all PLOS XML article files instead of doing web scraping. **NOTE**: This software is not stable, we consider it beta state and will -be in this stage until version 1.0. This means that programming interface +be in this stage until version 1.0. This means that programming interface may change and after a new version a full corpus download may be required. Installation instructions @@ -102,14 +102,14 @@ To get all of the allofplos testing dependencies run: ``(allofplos)$ pip install -U allofplos[test]`` -Then when you run: +Then when you run: ``(allofplos)$ pytest --pyargs allofplos`` It should return something like this: .. code:: - + collected 20 items allofplos/tests/test_corpus.py ............ [ 60%] @@ -117,6 +117,20 @@ It should return something like this: ==================== 20 passed in 0.36 seconds ========================= +Docker image +------------ + +For convenience, we provide a docker image (for Linux and macOS) with the allofplos script plus the whole PLOS corpus pre-downloaded. It can be installed with: + +``$ docker pull plos/allofplos`` + +To use the image, run it like this: + +``$ docker run -it plos/allofplos:latest bash`` + +To generate a new image, use the included Dockerfile: + +``$ docker build -t PLOS/allofplos .`` Community guidelines --------------------