mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 11:03:59 +00:00
- Add build-context helper to copy Docker context safely (ignore runtime data, keep symlinks) - Update UI and core actions to use ~/.prole/build and shared copy helper - Add/adjust tests and scripts; introduce knoe ops helpers and update manifests Co-authored-by: Junie <junie@jetbrains.com>
32 lines
611 B
Python
32 lines
611 B
Python
from __future__ import annotations
|
|
|
|
from ..context import KnoeContext
|
|
from ..legacy_shell import run_script
|
|
|
|
|
|
_SCRIPT = "init_registry.sh"
|
|
|
|
|
|
def initialize(ctx: KnoeContext):
|
|
return run_script(ctx, _SCRIPT, "initialize")
|
|
|
|
|
|
def start(ctx: KnoeContext):
|
|
return run_script(ctx, _SCRIPT, "start")
|
|
|
|
|
|
def update(ctx: KnoeContext):
|
|
return run_script(ctx, _SCRIPT, "update")
|
|
|
|
|
|
def restart(ctx: KnoeContext):
|
|
return run_script(ctx, _SCRIPT, "restart")
|
|
|
|
|
|
def stop(ctx: KnoeContext):
|
|
return run_script(ctx, _SCRIPT, "stop")
|
|
|
|
|
|
def status(ctx: KnoeContext):
|
|
return run_script(ctx, _SCRIPT, "status")
|