From c8d29181929fbd99753b927e4101353310cb736a Mon Sep 17 00:00:00 2001 From: Zachary Vance Date: Fri, 27 Aug 2021 20:28:15 -0700 Subject: [PATCH] docs --- README | 13 ++++++++----- run-docker.sh | 1 + 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/README b/README index 013501b..e02c734 100644 --- a/README +++ b/README @@ -1,15 +1,18 @@ -Requirements on debian: +extract plaintext from scihub zip files, and send it back to my server - apt-get install python3 python3-pika python3-tqdm poppler-utils +Requirements: +- python3 +- python3: pika 0.11 (NOT newer) +- python3: poppler-utils +- on debian: apt-get install python3 python3-pika poppler-utils To run on your machine: - ./main.py sm worker + TMPDIR=/ssd/2/tmp ./main.py sm worker # TMPDIR defaults to /tmp To run in a docker container: - 1. Edit run-docker.sh. Set a bandwidth limit and working directory - 2. sudo run-docker.sh + sudo WORKDIR=/ssd/2/tmp BWLIMIT=150mbit ./run-docker.sh # Set a bandwidth limit and working directory. WORKDIR defaults to /tmp on host Notes: diff --git a/run-docker.sh b/run-docker.sh index ddcb944..d52d67f 100755 --- a/run-docker.sh +++ b/run-docker.sh @@ -12,6 +12,7 @@ BWLIMIT=${BWLIMIT:-150mbit} docker rm mqlg || true docker build -t mqlg:latest . docker run \ + --rm \ --restart=no \ --detach \ --name=mqlg \ -- 2.47.3