Skip to content

Commit

Permalink
Introduce discrete docker-compose pull step. Refs #188
Browse files Browse the repository at this point in the history
  • Loading branch information
rnorth committed Aug 2, 2016
1 parent 76c14ab commit 496479d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
import org.slf4j.LoggerFactory;
import org.slf4j.profiler.Profiler;
import org.testcontainers.DockerClientFactory;
import org.testcontainers.containers.output.OutputFrame;
import org.testcontainers.containers.output.Slf4jLogConsumer;
import org.testcontainers.containers.startupcheck.IndefiniteWaitOneShotStartupCheckStrategy;
import org.testcontainers.utility.Base58;
Expand Down Expand Up @@ -78,13 +77,19 @@ public void starting(Description description) {
profiler.setLogger(logger());
profiler.start("Docker compose container startup");

pullImages();
applyScaling(); // scale before up, so that all scaled instances are available first for linking
createServices();
registerContainersForShutdown();
startAmbassadorContainers(profiler);

}

private void pullImages() {
getDockerCompose("pull")
.start();
}


private void createServices() {
// Start the docker-compose container, which starts up the services
Expand Down

0 comments on commit 496479d

Please sign in to comment.