Skip to content

Commit

Permalink
quickfix to be able to start a openshift workspace container. Providi…
Browse files Browse the repository at this point in the history
…ng a hard coded container running status. https://issues.jboss.org/browse/CHE-280

Signed-off-by: Sun Seng David Tan <sutan@redhat.com>
  • Loading branch information
sunix committed Jun 1, 2017
1 parent e3d1ee2 commit cbb2b70
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
import org.eclipse.che.plugin.docker.client.json.ContainerCreated;
import org.eclipse.che.plugin.docker.client.json.ContainerInfo;
import org.eclipse.che.plugin.docker.client.json.ContainerListEntry;
import org.eclipse.che.plugin.docker.client.json.ContainerState;
import org.eclipse.che.plugin.docker.client.json.Event;
import org.eclipse.che.plugin.docker.client.json.Filters;
import org.eclipse.che.plugin.docker.client.json.HostConfig;
Expand Down Expand Up @@ -1341,9 +1342,17 @@ private ContainerInfo createContainerInfo(Service svc,
info.setNetworkSettings(networkSettings);
info.setHostConfig(hostConfig);
info.setImage(imageInfo.getConfig().getImage());

quickFixSetContainerRunningStatus(info);

return info;
}

private void quickFixSetContainerRunningStatus(ContainerInfo info) {
ContainerState containerState = new ContainerState();
containerState.setStatus("running");
info.setState(containerState);
}

private void cleanUpWorkspaceResources(String deploymentName) throws IOException {

Expand Down

0 comments on commit cbb2b70

Please sign in to comment.