mirror of
https://github.com/moghtech/komodo.git
synced 2026-04-30 22:56:21 -05:00
support docker buildx build and passing arbitrary extra args
This commit is contained in:
@@ -7,7 +7,7 @@ use types::{
|
||||
Conversion, Deployment, DockerContainerStats, DockerRunArgs, EnvironmentVar, Log, RestartMode,
|
||||
};
|
||||
|
||||
use crate::helpers::run_monitor_command;
|
||||
use crate::helpers::{run_monitor_command, docker::parse_extra_args};
|
||||
|
||||
use super::docker_login;
|
||||
|
||||
@@ -197,12 +197,3 @@ fn parse_post_image(post_image: &Option<String>) -> String {
|
||||
String::new()
|
||||
}
|
||||
}
|
||||
|
||||
fn parse_extra_args(extra_args: &Vec<String>) -> String {
|
||||
let args = extra_args.join(" ");
|
||||
if args.len() > 0 {
|
||||
format!(" {args}")
|
||||
} else {
|
||||
args
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user