mirror of
https://github.com/jmcorgan/fips.git
synced 2026-08-09 00:04:54 +00:00
sidecar: build FIPS from source in Docker, handle fipstop terminal init
- Add multi-stage Dockerfile: Rust builder stage compiles FIPS with --no-default-features --features tui (excludes BLE/libdbus) - Move build context to repo root so Dockerfile can access Cargo.toml/src - Add .dockerignore to exclude target/, .git/, testing/ from context - Fix UDP port mapping to 2121:2121 - Delete scripts/build.sh cross-compile workflow - Simplify README setup steps (no local Rust toolchain needed) - Replace ratatui::init() with try_init() for clean error on terminal init failure (e.g. Docker on macOS Sequoia)
This commit is contained in:
committed by
Johnathan Corgan
parent
8e38d889fa
commit
7224ce34f6
@@ -121,7 +121,10 @@ fn main() {
|
||||
.expect("failed to create tokio runtime");
|
||||
|
||||
let client = ControlClient::new(&socket_path);
|
||||
let mut terminal = ratatui::init();
|
||||
let mut terminal = ratatui::try_init().unwrap_or_else(|e| {
|
||||
eprintln!("fipstop: failed to initialize terminal: {e}");
|
||||
std::process::exit(1);
|
||||
});
|
||||
let mut app = App::new(refresh);
|
||||
let events = EventHandler::new(refresh);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user