Changeset View
Changeset View
Standalone View
Standalone View
swh/provenance/cli.py
Show All 29 Lines | "provenance": { | ||||
# "cls": "api", | # "cls": "api", | ||||
# "storage": { | # "storage": { | ||||
# "cls": "remote", | # "cls": "remote", | ||||
# "url": "http://uffizi.internal.softwareheritage.org:5002", | # "url": "http://uffizi.internal.softwareheritage.org:5002", | ||||
# } | # } | ||||
# Direct access Archive object | # Direct access Archive object | ||||
"cls": "direct", | "cls": "direct", | ||||
"db": { | "db": { | ||||
"host": "db.internal.softwareheritage.org", | "host": "belvedere.internal.softwareheritage.org", | ||||
"port": 5432, | |||||
"dbname": "softwareheritage", | "dbname": "softwareheritage", | ||||
"user": "guest", | "user": "guest", | ||||
}, | }, | ||||
}, | }, | ||||
"storage": { | "storage": { | ||||
# Local PostgreSQL Storage | # Local PostgreSQL Storage | ||||
# "cls": "postgresql", | |||||
# "db": { | |||||
# "host": "localhost", | |||||
# "user": "postgres", | |||||
# "password": "postgres", | |||||
# "dbname": "provenance", | |||||
# }, | |||||
# Local MongoDB Storage | |||||
# "cls": "mongodb", | |||||
# "db": { | |||||
# "dbname": "provenance", | |||||
# }, | |||||
# Remote RabbitMQ/PostgreSQL Storage | |||||
"cls": "rabbitmq", | |||||
"url": "amqp://localhost:5672/%2f", | |||||
"storage_config": { | |||||
"cls": "postgresql", | "cls": "postgresql", | ||||
"db": { | "db": { | ||||
"host": "localhost", | "host": "localhost", | ||||
"user": "postgres", | "user": "postgres", | ||||
"password": "postgres", | "password": "postgres", | ||||
"dbname": "provenance", | "dbname": "provenance", | ||||
}, | }, | ||||
# Local MongoDB Storage | }, | ||||
# "cls": "mongodb", | "batch_size": 100, | ||||
# "db": { | "prefetch_count": 100, | ||||
# "dbname": "provenance", | |||||
# }, | |||||
}, | }, | ||||
} | } | ||||
} | } | ||||
CONFIG_FILE_HELP = f""" | CONFIG_FILE_HELP = f""" | ||||
\b Configuration can be loaded from a yaml file given either as --config-file | \b Configuration can be loaded from a yaml file given either as --config-file | ||||
option or the {CONFIG_ENVVAR} environment variable. If no configuration file | option or the {CONFIG_ENVVAR} environment variable. If no configuration file | ||||
▲ Show 20 Lines • Show All 174 Lines • Show Last 20 Lines |