forked from LiveCarta/LiveCartaMeta
run scripts
This commit is contained in:
@@ -11,3 +11,10 @@ RUN pip install pymongo \
|
|||||||
requests
|
requests
|
||||||
|
|
||||||
COPY ./ ./
|
COPY ./ ./
|
||||||
|
|
||||||
|
RUN chmod 777 /app/configs/sources.json
|
||||||
|
|
||||||
|
RUN python update.py --config
|
||||||
|
|
||||||
|
RUN python update.py --source test
|
||||||
|
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ class Updater:
|
|||||||
def __init__(self):
|
def __init__(self):
|
||||||
parser = argparse.ArgumentParser(description="Source parser.")
|
parser = argparse.ArgumentParser(description="Source parser.")
|
||||||
parser.add_argument("--config", help='Update config action', action='store_true')
|
parser.add_argument("--config", help='Update config action', action='store_true')
|
||||||
|
parser.add_argument("--source", type=str)
|
||||||
|
|
||||||
self.args = parser.parse_args()
|
self.args = parser.parse_args()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user