Today our docker image is based on Centos7 ,Since centos will be EOL in 2024 and no longer has stable release stream. let's move our docker image to be based on ubuntu 20.04 Based on the work done in https://github.com/scylladb/scylla/pull/8730, let's build our docker image based on local packages using buildah Closes #8849
35 lines
870 B
Python
Executable File
35 lines
870 B
Python
Executable File
#!/usr/bin/env python3
|
|
# -*- coding: utf-8 -*-
|
|
|
|
import os
|
|
import sys
|
|
import signal
|
|
import subprocess
|
|
import scyllasetup
|
|
import logging
|
|
import commandlineparser
|
|
|
|
logging.basicConfig(stream=sys.stdout, level=logging.DEBUG, format="%(message)s")
|
|
|
|
supervisord = None
|
|
|
|
def signal_handler(signum, frame):
|
|
supervisord.send_signal(signum)
|
|
|
|
signal.signal(signal.SIGINT, signal_handler)
|
|
signal.signal(signal.SIGTERM, signal_handler)
|
|
|
|
try:
|
|
arguments, extra_arguments = commandlineparser.parse()
|
|
setup = scyllasetup.ScyllaSetup(arguments, extra_arguments=extra_arguments)
|
|
setup.developerMode()
|
|
setup.cpuSet()
|
|
setup.io()
|
|
setup.cqlshrc()
|
|
setup.arguments()
|
|
setup.set_housekeeping()
|
|
supervisord = subprocess.Popen(["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"])
|
|
supervisord.wait()
|
|
except Exception:
|
|
logging.exception('failed!')
|