use of org.jboss.tools.openshift.core.server.DockerImageLabels in project jbosstools-openshift by jbosstools.
the class OpenShiftLaunchController method getDockerImageLabels.
private DockerImageLabels getDockerImageLabels(OpenShiftServerBehaviour beh, IProgressMonitor monitor) {
IResource resource = OpenShiftServerUtils.getResource(beh.getServer(), monitor);
DockerImageLabels metadata = DockerImageLabels.getInstance(resource, beh);
waitForDockerImageLabelsReady(metadata, monitor);
return metadata;
}
use of org.jboss.tools.openshift.core.server.DockerImageLabels in project jbosstools-openshift by jbosstools.
the class OpenShiftLaunchController method createDebugContext.
protected DebugContext createDebugContext(OpenShiftServerBehaviour beh, IProgressMonitor monitor) {
monitor.subTask("Initialising debugging...");
DockerImageLabels imageLabels = getDockerImageLabels(beh, monitor);
IServer server = beh.getServer();
String devmodeKey = StringUtils.defaultIfBlank(OpenShiftServerUtils.getDevmodeKey(server), imageLabels.getDevmodeKey());
String debugPortKey = StringUtils.defaultIfBlank(OpenShiftServerUtils.getDebugPortKey(server), imageLabels.getDevmodePortKey());
String debugPort = StringUtils.defaultIfBlank(OpenShiftServerUtils.getDebugPort(server), imageLabels.getDevmodePortValue());
return new DebugContext(beh.getServer(), devmodeKey, debugPortKey, debugPort);
}
Aggregations