@@ -88,17 +88,14 @@ impl DockerCompose {
8888 println ! ( "(This may take 10-20 minutes on first build)" ) ;
8989 println ! ( ) ;
9090
91- // Build images silently
91+ // Build with LIVE output instead of silent
9292 let build_status = Command :: new ( "docker" )
9393 . arg ( "compose" )
9494 . arg ( "--profile" )
9595 . arg ( profile)
9696 . arg ( "build" )
97- . arg ( "-q" ) // Quiet mode
9897 . current_dir ( & self . project_dir )
99- . stdout ( Stdio :: null ( ) ) // Discard stdout
100- . stderr ( Stdio :: null ( ) ) // Discard stderr
101- . status ( )
98+ . status ( ) // This shows output in real-time!
10299 . map_err ( |e| ZecKitError :: Docker ( format ! ( "Failed to start build: {}" , e) ) ) ?;
103100
104101 if !build_status. success ( ) {
@@ -107,27 +104,21 @@ impl DockerCompose {
107104
108105 println ! ( "✓ Images built successfully" ) ;
109106 println ! ( ) ;
110- } else {
111- println ! ( "✓ Using cached Docker images (already built)" ) ;
112- println ! ( " Use --fresh to force rebuild" ) ;
113- println ! ( ) ;
114107 }
115108
116- // Start services
109+ // Start services with live output
117110 println ! ( "Starting containers..." ) ;
118- let output = Command :: new ( "docker" )
111+ Command :: new ( "docker" )
119112 . arg ( "compose" )
120113 . arg ( "--profile" )
121114 . arg ( profile)
122115 . arg ( "up" )
123116 . arg ( "-d" )
124117 . current_dir ( & self . project_dir )
125- . output ( ) ?;
126-
127- if !output. status . success ( ) {
128- let error = String :: from_utf8_lossy ( & output. stderr ) ;
129- return Err ( ZecKitError :: Docker ( error. to_string ( ) ) ) ;
130- }
118+ . status ( ) ?
119+ . success ( )
120+ . then_some ( ( ) )
121+ . ok_or_else ( || ZecKitError :: Docker ( "Failed to start containers" . into ( ) ) ) ?;
131122
132123 Ok ( ( ) )
133124 }
0 commit comments