Search in sources :

Example 1 with DockerImageLabels

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;
}
Also used : DockerImageLabels(org.jboss.tools.openshift.core.server.DockerImageLabels) IResource(com.openshift.restclient.model.IResource)

Example 2 with DockerImageLabels

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);
}
Also used : IServer(org.eclipse.wst.server.core.IServer) DebugContext(org.jboss.tools.openshift.internal.core.server.debug.DebugContext) DockerImageLabels(org.jboss.tools.openshift.core.server.DockerImageLabels)

Aggregations

DockerImageLabels (org.jboss.tools.openshift.core.server.DockerImageLabels)2 IResource (com.openshift.restclient.model.IResource)1 IServer (org.eclipse.wst.server.core.IServer)1 DebugContext (org.jboss.tools.openshift.internal.core.server.debug.DebugContext)1