We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c6943f commit 9be07d5Copy full SHA for 9be07d5
containerd-shim-spin/src/engine.rs
@@ -168,8 +168,10 @@ impl SpinEngine {
168
169
let mut futures_list = Vec::new();
170
let mut trigger_type_map = Vec::new();
171
+ // The `HOSTNAME` environment variable should contain the fully unique container name
172
+ let app_id = std::env::var("HOSTNAME").unwrap_or_else(|_| "unknown".into());
173
for trigger_type in trigger_types.iter() {
- let app = spin_app::App::new("TODO", app.clone());
174
+ let app = spin_app::App::new(&app_id, app.clone());
175
let f = match trigger_type.as_str() {
176
HTTP_TRIGGER_TYPE => {
177
let address_str = env::var(constants::SPIN_HTTP_LISTEN_ADDR_ENV)
0 commit comments