mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-20 16:40:35 +00:00
This patch takes a modified version of the Ubuntu 14.04 housekeeping service script and uses it in Docker to validate the current version. To disable the version validation, pass the --disable-version-check flag when running the container. Message-Id: <20180220161231.1630-1-amnon@scylladb.com>
19 lines
1.2 KiB
Python
19 lines
1.2 KiB
Python
import argparse
|
|
|
|
|
|
def parse():
|
|
parser = argparse.ArgumentParser()
|
|
parser.add_argument('--developer-mode', default='1', choices=['0', '1'], dest='developerMode')
|
|
parser.add_argument('--experimental', default=0, choices=['0', '1'])
|
|
parser.add_argument('--seeds', default=None, help="specify seeds - if left empty will use container's own IP")
|
|
parser.add_argument('--cpuset', default=None, help="e.g. --cpuset 0-3 for the first four CPUs")
|
|
parser.add_argument('--smp', default=None, help="e.g --smp 2 to use two CPUs")
|
|
parser.add_argument('--memory', default=None, help="e.g. --memory 1G to use 1 GB of RAM")
|
|
parser.add_argument('--overprovisioned', default='0', choices=['0', '1'], help="run in overprovisioned environment")
|
|
parser.add_argument('--listen-address', default=None, dest='listenAddress')
|
|
parser.add_argument('--broadcast-address', default=None, dest='broadcastAddress')
|
|
parser.add_argument('--broadcast-rpc-address', default=None, dest='broadcastRpcAddress')
|
|
parser.add_argument('--api-address', default=None, dest='apiAddress')
|
|
parser.add_argument('--disable-version-check', default=False, action='store_true', dest='disable_housekeeping', help="Disable version check")
|
|
return parser.parse_args()
|