From 6975532232f78a6cde80435de19d80e39d75e76f Mon Sep 17 00:00:00 2001 From: dcorral Date: Thu, 6 Nov 2025 19:51:08 +0100 Subject: [PATCH] Persist keys on container restart --- docker-compose.yml | 5 +++++ src/main.rs | 12 ++++++------ 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 71a22d8..cad497e 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,3 +9,8 @@ services: cap_add: - SYS_CHROOT restart: unless-stopped + volumes: + - ssh-keys:/etc/ssh + +volumes: + ssh-keys: diff --git a/src/main.rs b/src/main.rs index 76deca2..0aa00c0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -12,12 +12,12 @@ use std::io::stdout; fn main() -> Result<(), Box> { enable_raw_mode()?; - let (width, height) = crossterm::terminal::size()?; - if width < 15 || height < 15 { - disable_raw_mode()?; - println!("Your console is too small."); - return Ok(()); - } + // let (width, height) = crossterm::terminal::size()?; + // if width < 15 || height < 15 { + // disable_raw_mode()?; + // println!("Your console is too small."); + // return Ok(()); + // } let mut stdout = stdout(); execute!(stdout, EnterAlternateScreen)?; let backend = CrosstermBackend::new(stdout);