Users sometimes need to run their own yaml configuration files, and it is currently annoying to deploy modified files on docker. One possible solution is to bind mount the file into the docker container using the -v switch, just like we already do for for the data volume. The problem with the aforementioned approach is that we have to change the yaml file to insert the addresses, and that will change the file in the host (or fail to happen, if we bind mount it read-only). The solution I am proposing is to avoid touching the yaml file inside the container altogether. Instead, we can deploy the address-related arguments that we currently write to the yaml file as Scylla options. Fixes #2113 Signed-off-by: Glauber Costa <glauber@scylladb.com> Message-Id: <1490195141-19940-1-git-send-email-glauber@scylladb.com>
21 lines
487 B
Python
Executable File
21 lines
487 B
Python
Executable File
#!/usr/bin/env python3
|
|
import os
|
|
import sys
|
|
import scyllasetup
|
|
import logging
|
|
import commandlineparser
|
|
|
|
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, format="%(message)s")
|
|
|
|
try:
|
|
arguments = commandlineparser.parse()
|
|
setup = scyllasetup.ScyllaSetup(arguments)
|
|
setup.developerMode()
|
|
setup.cpuSet()
|
|
setup.io()
|
|
setup.cqlshrc()
|
|
setup.arguments()
|
|
os.system("/usr/bin/supervisord -c /etc/supervisord.conf")
|
|
except:
|
|
logging.exception('failed!')
|