public void pushImage( String dockerServer, String imageName, String registryAccount, boolean forceTagging, boolean keepTaggedImage) { selectImage(dockerServer, imageName); new ContextMenu("Push...").select(); new WaitUntil(new ShellWithTextIsAvailable("Push Image"), TimePeriod.NORMAL); Combo combo = new DefaultCombo(); combo.setSelection(registryAccount); new CheckBox("Force tagging image with selected registry").toggle(forceTagging); new CheckBox("Keep tagged image upon completion").toggle(keepTaggedImage); new FinishButton().click(); }
public void openImageSearchDialog( String dockerConnectionName, String register, String imageName) { DockerExplorer de = this; de.open(); de.getConnection(dockerConnectionName); new ContextMenu("Pull...").select(); new WaitUntil(new ShellWithTextIsAvailable("Pull Image"), TimePeriod.NORMAL); Combo combo = new DefaultCombo(); combo.setSelection(register); // enter image name in dialog new LabeledText(IMAGE_NAME).setFocus(); new LabeledText(IMAGE_NAME).setText(imageName); new PushButton("Search...").click(); }
public void pullImage(String dockerServerURI, String register, String imageName) { DockerExplorer de = this; de.open(); de.getConnection(dockerServerURI); new ContextMenu("Pull...").select(); new WaitUntil(new ShellWithTextIsAvailable("Pull Image"), TimePeriod.NORMAL); // select register Combo combo = new DefaultCombo(); combo.setSelection(register); // enter image name in dialog new LabeledText(IMAGE_NAME).setFocus(); new LabeledText(IMAGE_NAME).setText(imageName); new PushButton("Finish").click(); AbstractWait.sleep(TimePeriod.getCustom(5)); new WaitWhile(new JobIsRunning(), TimePeriod.VERY_LONG); }