|
189 | 189 |
|
190 | 190 | puts colorize_lightblue('Building images (might take a while)... (logging to logfiles/imagebuild.log)') |
191 | 191 | if run_command("#{ENV['DC_CMD']} build #{options['nopull'] ? '' : '--pull'} > logfiles/imagebuild.log 2>&1") != 0 |
192 | | - puts colorize_red('Something went wrong when building the images. Check the log file for the full output, here are the last 10 lines:') |
| 192 | + puts colorize_red('Something went wrong when building the images, check the log file. Here are the last 10 lines:') |
193 | 193 | lines = File.readlines("#{root_loc}/logfiles/imagebuild.log") |
194 | | - last_10 = lines.last(10) |
195 | | - last_10.each { |line| puts line } |
| 194 | + last_ten = lines.last(10) |
| 195 | + last_ten.each { |line| puts line } |
196 | 196 | exit |
197 | 197 | end |
198 | 198 | puts colorize_lightblue('...done') |
|
206 | 206 | # Let's force a recreation of the containers here so we know they're using up-to-date images |
207 | 207 | puts colorize_lightblue('Recreating containers... (logging to logfiles/containercreate.log)') |
208 | 208 | if run_command("#{ENV['DC_CMD']} up --remove-orphans --force-recreate --no-start > logfiles/containercreate.log 2>&1") != 0 |
209 | | - puts colorize_red('Something went wrong when creating the containers. Check the log file for the full output, here are the last 10 lines:') |
| 209 | + puts colorize_red('Something went wrong when creating the containers, check the log file. Here are the last 10 lines:') |
210 | 210 | lines = File.readlines("#{root_loc}/logfiles/containercreate.log") |
211 | | - last_10 = lines.last(10) |
212 | | - last_10.each { |line| puts line } |
| 211 | + last_ten = lines.last(10) |
| 212 | + last_ten.each { |line| puts line } |
213 | 213 | exit |
214 | 214 | end |
215 | 215 | puts colorize_lightblue('...done') |
|
290 | 290 | puts colorize_lightblue('Starting inexpensive services... (logging to logfiles/containerstart.log)') |
291 | 291 | up = run_command("#{ENV['DC_CMD']} up --no-deps --remove-orphans -d #{services_to_start.join(' ')}") |
292 | 292 | if up != 0 |
293 | | - puts colorize_red('Something went wrong when starting the containers. Check the log file for the full output, here are the last 10 lines:') |
| 293 | + puts colorize_red('Something went wrong when starting the containers, check the log file. Here are the last 10 lines:') |
294 | 294 | lines = File.readlines("#{root_loc}/logfiles/containerstart.log") |
295 | | - last_10 = lines.last(10) |
296 | | - last_10.each { |line| puts line } |
| 295 | + last_ten = lines.last(10) |
| 296 | + last_ten.each { |line| puts line } |
297 | 297 | exit |
298 | 298 | end |
299 | 299 | puts colorize_lightblue('...done') |
|
0 commit comments