mirror of
https://github.com/moghtech/komodo.git
synced 2026-08-01 18:59:59 -05:00
rename post_image to process_args
This commit is contained in:
@@ -202,7 +202,7 @@ pub fn docker_run_command(
|
||||
ports,
|
||||
network,
|
||||
container_user,
|
||||
post_image,
|
||||
process_args,
|
||||
restart,
|
||||
environment,
|
||||
extra_args,
|
||||
@@ -220,9 +220,9 @@ pub fn docker_run_command(
|
||||
let network = parse_network(network);
|
||||
let restart = parse_restart(restart);
|
||||
let environment = parse_environment(environment);
|
||||
let post_image = parse_post_image(post_image);
|
||||
let process_args = parse_process_args(process_args);
|
||||
let extra_args = parse_extra_args(extra_args);
|
||||
format!("docker run -d --name {name}{container_user}{ports}{volumes}{network}{restart}{environment}{extra_args} {image}{post_image}")
|
||||
format!("docker run -d --name {name}{container_user}{ports}{volumes}{network}{restart}{environment}{extra_args} {image}{process_args}")
|
||||
}
|
||||
|
||||
fn parse_container_user(container_user: &String) -> String {
|
||||
@@ -261,10 +261,10 @@ fn parse_restart(restart: &RestartMode) -> String {
|
||||
format!(" --restart {restart}")
|
||||
}
|
||||
|
||||
fn parse_post_image(post_image: &String) -> String {
|
||||
if post_image.is_empty() {
|
||||
fn parse_process_args(process_args: &String) -> String {
|
||||
if process_args.is_empty() {
|
||||
String::new()
|
||||
} else {
|
||||
format!(" {post_image}")
|
||||
format!(" {process_args}")
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,7 +191,7 @@ export interface DeploymentConfig {
|
||||
environment?: EnvironmentVar[];
|
||||
network: string;
|
||||
restart?: RestartMode;
|
||||
post_image?: string;
|
||||
process_args?: string;
|
||||
container_user?: string;
|
||||
extra_args?: string[];
|
||||
docker_account?: string;
|
||||
@@ -377,7 +377,7 @@ export interface ServerActionState {
|
||||
|
||||
export interface SystemStatsRecord {
|
||||
ts: I64;
|
||||
server_id: string;
|
||||
sid: string;
|
||||
system_load: number;
|
||||
cpu_perc: number;
|
||||
cpu_freq_mhz: number;
|
||||
|
||||
@@ -109,7 +109,7 @@ pub struct DeploymentConfig {
|
||||
|
||||
#[serde(default)]
|
||||
#[builder(default)]
|
||||
pub post_image: String, // empty is no post image
|
||||
pub process_args: String, // empty is no post image
|
||||
|
||||
#[serde(default)]
|
||||
#[builder(default)]
|
||||
|
||||
Reference in New Issue
Block a user