diff --git a/src/main/java/io/codeka/gaia/runner/StackRunner.java b/src/main/java/io/codeka/gaia/runner/StackRunner.java index 5233c4fe4..6ee59340c 100644 --- a/src/main/java/io/codeka/gaia/runner/StackRunner.java +++ b/src/main/java/io/codeka/gaia/runner/StackRunner.java @@ -54,13 +54,13 @@ public StackRunner(DockerClient dockerClient, ContainerConfig.Builder containerC private int runContainerForJob(Job job, String script){ try{ - // FIXME This is certainly no thread safe + // FIXME This is certainly no thread safe ! var containerConfig = containerConfigBuilder .env(settings.env()) .build(); // pull the image - dockerClient.pull("hashicorp/terraform:0.11.14"); + dockerClient.pull("hashicorp/terraform:latest"); System.out.println("Create container"); var containerCreation = dockerClient.createContainer(containerConfig); @@ -74,7 +74,6 @@ private int runContainerForJob(Job job, String script){ System.err.println("Starting container"); dockerClient.startContainer(containerId); - final PipedInputStream stdout = new PipedInputStream(); final PipedInputStream stderr = new PipedInputStream(); final PipedOutputStream stdout_pipe = new PipedOutputStream(stdout); diff --git a/src/main/java/io/codeka/gaia/runner/config/DockerConfig.java b/src/main/java/io/codeka/gaia/runner/config/DockerConfig.java index ec0751de4..2a0d1954b 100644 --- a/src/main/java/io/codeka/gaia/runner/config/DockerConfig.java +++ b/src/main/java/io/codeka/gaia/runner/config/DockerConfig.java @@ -30,7 +30,7 @@ DockerClient client(Settings settings) { @Bean ContainerConfig.Builder containerConfig(){ return ContainerConfig.builder() - .image("hashicorp/terraform:0.11.14") + .image("hashicorp/terraform:latest") // bind mounting the docker sock (to be able to use docker provider in terraform) .hostConfig(HostConfig.builder().binds(HostConfig.Bind.builder().from("/var/run/docker.sock").to("/var/run/docker.sock").build()).build()) // resetting entrypoint to empty