Merge pull request 'Remove unused services' (#25) from remove-unused into main
Reviewed-on: #25
This commit is contained in:
commit
9fc95a78f0
|
@ -9,10 +9,11 @@ def build_packages(default_branch=False, package=None):
|
||||||
:param default_branch: checks out main git branch if True
|
:param default_branch: checks out main git branch if True
|
||||||
:param package: if provided, only builds this package
|
:param package: if provided, only builds this package
|
||||||
"""
|
"""
|
||||||
|
if package:
|
||||||
|
print("[ BUILDING ONLY {} ]".format(package))
|
||||||
build_rust_packages(default_branch=default_branch, package=package)
|
build_rust_packages(default_branch=default_branch, package=package)
|
||||||
print("[ MICROSERVICE PACKAGE ARCHIVE UPDATED ]")
|
print("[ MICROSERVICE PACKAGE ARCHIVE UPDATED ]")
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
@ -24,7 +25,9 @@ if __name__ == '__main__':
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"-p",
|
"-p",
|
||||||
"--package",
|
"--package",
|
||||||
help="Ensure default branch for all repos for build",
|
help="Optionally specify package to build",
|
||||||
|
required=False,
|
||||||
|
default=None
|
||||||
)
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
build_packages(default_branch=args.default, package=args.package)
|
build_packages(default_branch=args.default, package=args.package)
|
|
@ -79,14 +79,6 @@ def build_rust_package(service_path, service_name):
|
||||||
add_deb_to_freight(package_name=package_name, package_path=debian_package_path)
|
add_deb_to_freight(package_name=package_name, package_path=debian_package_path)
|
||||||
|
|
||||||
|
|
||||||
def build_packages(default_branch=False):
|
|
||||||
"""
|
|
||||||
builds all PeachCloud microservices as .deb files and adds them to the freight repo
|
|
||||||
"""
|
|
||||||
build_rust_packages(default_branch=default_branch)
|
|
||||||
print("[ MICROSERVICE PACKAGE ARCHIVE UPDATED ]")
|
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
@ -95,5 +87,12 @@ if __name__ == '__main__':
|
||||||
help="Ensure default branch for all repos for build",
|
help="Ensure default branch for all repos for build",
|
||||||
action="store_true"
|
action="store_true"
|
||||||
)
|
)
|
||||||
|
parser.add_argument(
|
||||||
|
"-p",
|
||||||
|
"--package",
|
||||||
|
help="Optionally specify package to build",
|
||||||
|
required=False,
|
||||||
|
default=None
|
||||||
|
)
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
build_packages(default_branch=args.default)
|
build_rust_packages(default_branch=args.default, package=args.package)
|
|
@ -19,17 +19,9 @@ USER_PATH = "/home/rust"
|
||||||
CARGO_PATH = os.path.join(USER_PATH, ".cargo/bin/cargo")
|
CARGO_PATH = os.path.join(USER_PATH, ".cargo/bin/cargo")
|
||||||
|
|
||||||
SERVICES = [
|
SERVICES = [
|
||||||
{"name": "peach-buttons",
|
# peach-probe is disabled until it is fixed
|
||||||
"repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
|
||||||
{"name": "peach-menu", "repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
|
||||||
{"name": "peach-monitor",
|
|
||||||
"repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
|
||||||
{"name": "peach-network",
|
|
||||||
"repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
|
||||||
{"name": "peach-oled", "repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
|
||||||
{"name": "peach-stats", "repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
|
||||||
# {"name": "peach-probe", "repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
# {"name": "peach-probe", "repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
||||||
{"name": "peach-dyndns-updater", "repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
{"name": "peach-dyndns-updater", "repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
||||||
{"name": "peach-web", "repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
{"name": "peach-web", "repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
||||||
# {"name": "peach-tbot", "repo_url": "https://git.coopcloud.tech/PeachCloud/peach-tbot.git"},
|
{"name": "peach-config", "repo_url": "https://git.coopcloud.tech/PeachCloud/peach-workspace.git"},
|
||||||
]
|
]
|
Loading…
Reference in New Issue