Skip to content

Commit fce61c4

Browse files
committed
fixing discover domain and base image inspect bugs
1 parent 76f0a38 commit fce61c4

File tree

4 files changed

+14
-5
lines changed

4 files changed

+14
-5
lines changed

electron/app/js/witCreate.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,14 @@ async function createImage(currentWindow, stdoutChannel, stderrChannel, createCo
2323
DOCKER_BUILDKIT: '0',
2424
WLSIMG_BLDDIR: app.getPath('temp')
2525
};
26+
// imagetool only honors the lower-cased versions of these variables...
2627
if (httpsProxyUrl) {
2728
env['HTTPS_PROXY'] = httpsProxyUrl;
29+
env['https_proxy'] = httpsProxyUrl;
2830
}
2931
if (bypassProxyHosts) {
3032
env['NO_PROXY'] = bypassProxyHosts;
33+
env['no_proxy'] = bypassProxyHosts;
3134
}
3235

3336
const result = {

webui/src/js/models/image-definition.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ define(['knockout', 'utils/observable-properties', 'utils/validation-helper'],
135135
host = window.api.k8s.getRegistryAddressFromImageTag(value);
136136
}
137137
this.internal.baseImageRegistryAddress.observable(host);
138+
139+
// any time the baseImage changes, reset these fields...
140+
this.baseImageInspected.observable(false);
141+
this.customBaseImageContents.observable([]);
138142
});
139143

140144
this.auxBaseImage.observable.subscribe(value => {
@@ -183,12 +187,14 @@ define(['knockout', 'utils/observable-properties', 'utils/validation-helper'],
183187
}
184188
};
185189

190+
// Ignore the customBaseImageContents field if using custom base image is turned off...
186191
this.baseImageContentsIncludesJava = () => {
187-
return this.customBaseImageContents.value.includes('javaHome');
192+
return this.useCustomBaseImage.value && this.customBaseImageContents.value.includes('javaHome');
188193
};
189194

195+
// Ignore the customBaseImageContents field if using custom base image is turned off...
190196
this.baseImageContentsIncludesMiddleware = () => {
191-
return this.customBaseImageContents.value.includes('oracleHome');
197+
return this.useCustomBaseImage.value && this.customBaseImageContents.value.includes('oracleHome');
192198
};
193199
}
194200

webui/src/js/utils/wdt-discoverer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ function (WdtActionsBase, ko, project, wktConsole, dialogHelper, projectIO, i18n
2121
// open the discover configuration dialog.
2222
async startDiscoverDomain(online) {
2323
const discoverConfig = {'online': online};
24-
dialogHelper.openDialog('wdt-discover', discoverConfig);
24+
dialogHelper.openDialog('discover-dialog', discoverConfig);
2525
}
2626

2727
// the dialog will call this when the OK button is clicked.

webui/src/js/views/image-design-view.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ <h6 class="wkt-subheading"><oj-bind-text value="[[labelMapper('jdk-installer-tit
159159
</div>
160160
</oj-bind-if>
161161

162-
<oj-bind-if test="[[customImageDoesNotContainsOracleHome]]">
162+
<oj-bind-if test="[[customImageDoesNotContainsOracleHome() == true]]">
163163
<div class="oj-panel">
164164
<h6 class="wkt-subheading"><oj-bind-text value="[[labelMapper('fmw-installer-title')]]"></oj-bind-text></h6>
165165
<oj-form-layout max-columns="1" direction="row">
@@ -187,7 +187,7 @@ <h6 class="wkt-subheading"><oj-bind-text value="[[labelMapper('fmw-installer-tit
187187
</div>
188188

189189
<div>
190-
<oj-bind-if test="[[customImageDoesNotContainsOracleHome]]">
190+
<oj-bind-if test="[[customImageDoesNotContainsOracleHome() === true]]">
191191
<div class="oj-panel">
192192
<h6 class="wkt-subheading"><oj-bind-text value="[[labelMapper('patches-title')]]"></oj-bind-text></h6>
193193
<oj-form-layout max-columns="1" direction="row">

0 commit comments

Comments
 (0)