lib/dockly/build_cache/docker.rb in dockly-1.4.8 vs lib/dockly/build_cache/docker.rb in dockly-1.4.9
- old
+ new
@@ -71,9 +71,11 @@
resp = ""
debug "running command `#{command}` on image #{image.id}"
container = image.run(["/bin/bash", "-lc", "cd #{command_directory} && #{command}"])
container.attach { |source,chunk| resp += chunk }
status = container.wait['StatusCode']
+ debug "`#{command}` returned the following output:"
+ debug resp.strip
debug "`#{command}` exited with status #{status}, resulting container id: #{container.id}"
[status, resp.strip, container]
end
end