Closed jessereynolds closed 9 years ago
Probably because of https://github.com/docker/docker/issues/4036
@Hobbsee couched the docker run
calls in a loop and a detection of "Cannot start container" in the docker output. I meddled with that a bit too. But now it seems that Mixlib::ShellOut.new() runs the command but is then unable to tell if it succeeded or not (cmd.exitstatus appears to return nil, and cmd.error? returns true, even after a successful docker run of the build rake task.
Couple of issues with this one:
while docker_attempts > 0 || success
The refactor changed this to checking only docker_attempts, and docker_success wasn't used to break out of the loop any more. Thus, infinite successful builds.
16:45 Failed build of Flapjack v1.3.0rc1 for debian wheezy package (experimental) in 17m 41s, log: http://is.gd/LvoRYS
It built the package just fine but was unable to start the docker container to execute the tests.