From 8ea0424242e362e426974686cf7ad01fcabe4761 Mon Sep 17 00:00:00 2001 From: Egor Svitin Date: Tue, 7 Feb 2023 10:41:34 +0300 Subject: [PATCH] run scripts --- Dockerfile | 7 +++++++ update.py | 1 + 2 files changed, 8 insertions(+) diff --git a/Dockerfile b/Dockerfile index 4cb171b..2c6d548 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,3 +11,10 @@ RUN pip install pymongo \ requests COPY ./ ./ + +RUN chmod 777 /app/configs/sources.json + +RUN python update.py --config + +RUN python update.py --source test + diff --git a/update.py b/update.py index 8717659..eecdbdb 100644 --- a/update.py +++ b/update.py @@ -7,6 +7,7 @@ class Updater: def __init__(self): parser = argparse.ArgumentParser(description="Source parser.") parser.add_argument("--config", help='Update config action', action='store_true') + parser.add_argument("--source", type=str) self.args = parser.parse_args()