types 0.1.3 pass any extra args to docker run command

This commit is contained in:
mbecker20
2023-01-11 05:08:35 +00:00
parent 199a0e0517
commit 89e16ef715
3 changed files with 19 additions and 11 deletions

20
Cargo.lock generated
View File

@@ -393,7 +393,7 @@ dependencies = [
"hmac",
"jwt",
"monitor_helpers 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"monitor_types 0.1.2",
"mungos",
"periphery_client",
"serde",
@@ -587,7 +587,7 @@ name = "db_client"
version = "0.1.0"
dependencies = [
"anyhow",
"monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"monitor_types 0.1.2",
"mungos",
]
@@ -1354,7 +1354,7 @@ version = "0.1.2"
dependencies = [
"anyhow",
"futures-util",
"monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"monitor_types 0.1.2",
"reqwest",
"serde",
"serde_derive",
@@ -1374,7 +1374,7 @@ dependencies = [
"bollard",
"futures",
"futures-util",
"monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"monitor_types 0.1.2",
"rand",
"run_command",
"serde",
@@ -1395,7 +1395,7 @@ dependencies = [
"bollard",
"futures",
"futures-util",
"monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"monitor_types 0.1.2",
"rand",
"run_command",
"serde",
@@ -1418,7 +1418,7 @@ dependencies = [
"envy",
"futures-util",
"monitor_helpers 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"monitor_types 0.1.2",
"run_command",
"serde",
"serde_derive",
@@ -1433,6 +1433,8 @@ dependencies = [
[[package]]
name = "monitor_types"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c83cf1154e1d415c78bc275c6fad9f039ada4cb4a62c9734d39283c6408ccc1a"
dependencies = [
"anyhow",
"bollard",
@@ -1449,9 +1451,7 @@ dependencies = [
[[package]]
name = "monitor_types"
version = "0.1.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "c83cf1154e1d415c78bc275c6fad9f039ada4cb4a62c9734d39283c6408ccc1a"
version = "0.1.3"
dependencies = [
"anyhow",
"bollard",
@@ -1715,7 +1715,7 @@ dependencies = [
"anyhow",
"futures-util",
"monitor_helpers 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)",
"monitor_types 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)",
"monitor_types 0.1.2",
"reqwest",
"serde",
"serde_json",

View File

@@ -1,6 +1,6 @@
[package]
name = "monitor_types"
version = "0.1.2"
version = "0.1.3"
edition = "2021"
authors = ["MoghTech"]
description = "types for the mogh tech monitor"

View File

@@ -97,18 +97,22 @@ pub struct DockerRunArgs {
#[diff(attr(#[serde(skip_serializing_if = "Option::is_none")]))]
pub image: String,
#[serde(default)]
#[diff(attr(#[serde(skip_serializing_if = "vec_diff_no_change")]))]
pub ports: Vec<Conversion>,
#[serde(default)]
#[diff(attr(#[serde(skip_serializing_if = "vec_diff_no_change")]))]
pub volumes: Vec<Conversion>,
#[serde(default)]
#[diff(attr(#[serde(skip_serializing_if = "vec_diff_no_change")]))]
pub environment: Vec<EnvironmentVar>,
#[diff(attr(#[serde(skip_serializing_if = "option_diff_no_change")]))]
pub network: Option<String>,
#[serde(default)]
#[diff(attr(#[serde(skip_serializing_if = "restart_mode_diff_no_change")]))]
pub restart: RestartMode,
@@ -118,6 +122,10 @@ pub struct DockerRunArgs {
#[diff(attr(#[serde(skip_serializing_if = "option_diff_no_change")]))]
pub container_user: Option<String>,
#[serde(default)]
#[diff(attr(#[serde(skip_serializing_if = "vec_diff_no_change")]))]
pub extra_args: Vec<String>,
#[diff(attr(#[serde(skip_serializing_if = "option_diff_no_change")]))]
pub docker_account: Option<String>, // the username of the dockerhub account
}