By default Scylla docker runs without the security features. This patch adds support for the user to supply different params values for the authenticator and authorizer classes and allowing to setup a secure Scylla in Docker. For example if you want to run a secure Scylla with password and authorization: docker run --name some-scylla -d scylladb/scylla --authenticator PasswordAuthenticator --authorizer CassandraAuthorizer Update the Docker documentation with the new command line options. Signed-off-by: Noam Hasson <noam@scylladb.com> Message-Id: <20180620122340.30394-1-noam@scylladb.com>
22 lines
1.5 KiB
Python
22 lines
1.5 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=None, choices=['0', '1'],
|
|
help="run in overprovisioned environment. By default it will run in overprovisioned mode unless --cpuset is specified")
|
|
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")
|
|
parser.add_argument('--authenticator', default=None, dest='authenticator', help="Set authenticator class")
|
|
parser.add_argument('--authorizer', default=None, dest='authorizer', help="Set authorizer class")
|
|
return parser.parse_args()
|